9 changed files with 171 additions and 15 deletions
@ -0,0 +1,53 @@ |
|||
package com.qs.serve.modules.pms.entity.dto; |
|||
|
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* 订单报工单 实体类 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Data |
|||
public class PmsOrderSubmitSaveBo implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 订单产线编码 */ |
|||
@NotBlank(message = "产线编码不能为空") |
|||
@Length(max = 32,message = "产线编码长度不能超过32字") |
|||
private String orderProductSn; |
|||
|
|||
/** 订单工序编码 */ |
|||
@NotBlank(message = "订单工序编码不能为空") |
|||
@Length(max = 32,message = "订单工序编码长度不能超过32字") |
|||
private String orderProcessSn; |
|||
|
|||
/** 完成数量 */ |
|||
@NotNull(message = "完成数量不能为空") |
|||
private BigDecimal finishedQty; |
|||
|
|||
/** 损坏数量 */ |
|||
@NotNull(message = "损坏数量不能为空") |
|||
private BigDecimal damagedQty; |
|||
|
|||
/** 人为损坏数量 */ |
|||
@NotNull(message = "人为损坏数量不能为空") |
|||
private BigDecimal personDamagedQty; |
|||
|
|||
/** 员工id(员工提交时不需要填写) */ |
|||
@NotBlank(message = "员工id不能为空") |
|||
@Length(max = 32,message = "员工id长度不能超过32字") |
|||
private String personId; |
|||
|
|||
/** 员工备注 */ |
|||
@Length(max = 255,message = "员工备注长度不能超过255字") |
|||
private String personRemark; |
|||
|
|||
} |
|||
|
@ -0,0 +1,47 @@ |
|||
package com.qs.serve.modules.pms.entity.dto; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.time.LocalDateTime; |
|||
|
|||
/** |
|||
* 订单报工单 实体类 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Data |
|||
public class PmsOrderSubmitUpdateBo implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** id */ |
|||
private String id; |
|||
|
|||
/** 完成数量 */ |
|||
@NotNull(message = "完成数量不能为空") |
|||
private BigDecimal finishedQty; |
|||
|
|||
/** 损坏数量 */ |
|||
@NotNull(message = "损坏数量不能为空") |
|||
private BigDecimal damagedQty; |
|||
|
|||
/** 人为损坏数量 */ |
|||
@NotNull(message = "人为损坏数量不能为空") |
|||
private BigDecimal personDamagedQty; |
|||
|
|||
/** 管理员备注 */ |
|||
@Length(max = 255,message = "管理员备注长度不能超过255字") |
|||
private String remark; |
|||
|
|||
} |
|||
|
Loading…
Reference in new issue