去掉采购非空校验
This commit is contained in:
@@ -27,25 +27,21 @@ public class WmsPurchasePlanBo extends BaseEntity {
|
|||||||
/**
|
/**
|
||||||
* 采购计划编号
|
* 采购计划编号
|
||||||
*/
|
*/
|
||||||
@NotBlank(message = "采购计划编号不能为空", groups = { AddGroup.class, EditGroup.class })
|
|
||||||
private String planCode;
|
private String planCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 负责人
|
* 负责人
|
||||||
*/
|
*/
|
||||||
@NotBlank(message = "负责人不能为空", groups = { AddGroup.class, EditGroup.class })
|
|
||||||
private String owner;
|
private String owner;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 关联订单ID
|
* 关联订单ID
|
||||||
*/
|
*/
|
||||||
@NotNull(message = "关联订单ID不能为空", groups = { AddGroup.class, EditGroup.class })
|
|
||||||
private Long orderId;
|
private Long orderId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态(0=新建,1=待审核,2=已审核,3=已完成,4=已取消)
|
* 状态(0=新建,1=待审核,2=已审核,3=已完成,4=已取消)
|
||||||
*/
|
*/
|
||||||
@NotNull(message = "状态(0=新建,1=待审核,2=已审核,3=已完成,4=已取消)不能为空", groups = { AddGroup.class, EditGroup.class })
|
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -28,31 +28,26 @@ public class WmsPurchasePlanDetailBo extends BaseEntity {
|
|||||||
/**
|
/**
|
||||||
* 采购计划ID
|
* 采购计划ID
|
||||||
*/
|
*/
|
||||||
@NotNull(message = "采购计划ID不能为空", groups = { AddGroup.class, EditGroup.class })
|
|
||||||
private Long planId;
|
private Long planId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 原材料ID
|
* 原材料ID
|
||||||
*/
|
*/
|
||||||
@NotNull(message = "原材料ID不能为空", groups = { AddGroup.class, EditGroup.class })
|
|
||||||
private Long rawMaterialId;
|
private Long rawMaterialId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 负责人
|
* 负责人
|
||||||
*/
|
*/
|
||||||
@NotBlank(message = "负责人不能为空", groups = { AddGroup.class, EditGroup.class })
|
|
||||||
private String owner;
|
private String owner;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 计划采购数量
|
* 计划采购数量
|
||||||
*/
|
*/
|
||||||
@NotNull(message = "计划采购数量不能为空", groups = { AddGroup.class, EditGroup.class })
|
|
||||||
private BigDecimal quantity;
|
private BigDecimal quantity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 单位
|
* 单位
|
||||||
*/
|
*/
|
||||||
@NotBlank(message = "单位不能为空", groups = { AddGroup.class, EditGroup.class })
|
|
||||||
private String unit;
|
private String unit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user