12 changed files with 278 additions and 25 deletions
@ -0,0 +1,62 @@ |
|||||
|
package com.qs.serve.modules.pms.entity.dto; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import lombok.Data; |
||||
|
import org.hibernate.validator.constraints.Length; |
||||
|
import org.springframework.format.annotation.DateTimeFormat; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
import java.time.LocalDate; |
||||
|
import java.time.LocalDateTime; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 生产订单 实体类 |
||||
|
* @author YenHex |
||||
|
* @since 2022-08-05 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class PmsOrderBo implements Serializable { |
||||
|
|
||||
|
/** id,新增时不需提交 */ |
||||
|
private String id; |
||||
|
|
||||
|
/** 产品名称 */ |
||||
|
@NotBlank(message = "订单抬头不能为空") |
||||
|
@Length(max = 30,message = "产品名称长度不能超过30字") |
||||
|
private String name; |
||||
|
|
||||
|
/** 产品编码,为空系统自动生产 */ |
||||
|
private String code; |
||||
|
|
||||
|
/** 计量单位 */ |
||||
|
@NotBlank(message = "计量单位不能为空") |
||||
|
@Length(max = 20,message = "计量单位长度不能超过20字") |
||||
|
private String unit; |
||||
|
|
||||
|
/** 规格型号 */ |
||||
|
@NotBlank(message = "规格型号不能为空") |
||||
|
@Length(max = 255,message = "规格型号长度不能超过255字") |
||||
|
private String spec; |
||||
|
|
||||
|
/** 完工日期 */ |
||||
|
@Length(max = 0,message = "完工日期长度不能超过0字") |
||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
private LocalDateTime finishedDate; |
||||
|
|
||||
|
/** 入库日期 */ |
||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd") |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
||||
|
private LocalDate enterWhDate; |
||||
|
|
||||
|
/** 备注 */ |
||||
|
@Length(max = 255,message = "备注长度不能超过255字") |
||||
|
private String remark; |
||||
|
|
||||
|
/** 产品列表 */ |
||||
|
private List<PmsOrderProductBo> productList; |
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,42 @@ |
|||||
|
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 PmsOrderProcessBo implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** id,更新时需传参,否则进行新增 */ |
||||
|
@Length(max = 32,message = "订单工序编码长度不能超过32字") |
||||
|
@TableId(type = IdType.ASSIGN_UUID) |
||||
|
private String orderProcessSn; |
||||
|
|
||||
|
/** 工序id */ |
||||
|
@NotBlank(message = "工序id不能为空") |
||||
|
@Length(max = 32,message = "工序id长度不能超过32字") |
||||
|
private String processId; |
||||
|
|
||||
|
/** 备注 */ |
||||
|
@Length(max = 255,message = "备注长度不能超过255字") |
||||
|
private String remark; |
||||
|
|
||||
|
} |
||||
|
|
@ -0,0 +1,74 @@ |
|||||
|
package com.qs.serve.modules.pms.entity.dto; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
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.LocalDate; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 订单产品 实体类 |
||||
|
* @author YenHex |
||||
|
* @since 2022-08-05 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class PmsOrderProductBo implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** id,更新时需传参,否则进行新增 */ |
||||
|
private String orderProductSn; |
||||
|
|
||||
|
/** 产品ID */ |
||||
|
private String productId; |
||||
|
|
||||
|
/** 产品名称 */ |
||||
|
@NotBlank(message = "产品名称不能为空") |
||||
|
@Length(max = 30,message = "产品名称长度不能超过30字") |
||||
|
private String name; |
||||
|
|
||||
|
/** 产品编码 */ |
||||
|
@NotBlank(message = "产品编码不能为空") |
||||
|
@Length(max = 30,message = "产品编码长度不能超过30字") |
||||
|
private String code; |
||||
|
|
||||
|
/** 计量单位 */ |
||||
|
@Length(max = 20,message = "计量单位长度不能超过20字") |
||||
|
private String unit; |
||||
|
|
||||
|
/** 规格型号 */ |
||||
|
@Length(max = 255,message = "规格型号长度不能超过255字") |
||||
|
private String spec; |
||||
|
|
||||
|
/** 计划产量 */ |
||||
|
@NotNull(message = "计划产量不能为空") |
||||
|
private BigDecimal planQty; |
||||
|
|
||||
|
/** 计划完工日期 */ |
||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd") |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
||||
|
private LocalDate planFinishedDate; |
||||
|
|
||||
|
/** 实际产量/当前产量 */ |
||||
|
@NotNull(message = "实际产量/当前产量不能为空") |
||||
|
private BigDecimal qty; |
||||
|
|
||||
|
/** 完工日期 */ |
||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd") |
||||
|
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
||||
|
private LocalDate finishedDate; |
||||
|
|
||||
|
/** 备注 */ |
||||
|
@Length(max = 255,message = "备注长度不能超过255字") |
||||
|
private String remark; |
||||
|
|
||||
|
/** 工序列表 */ |
||||
|
private List<PmsOrderProcessBo> processList; |
||||
|
} |
||||
|
|
Loading…
Reference in new issue