非空校验

new
JiilingLee 1 year ago
parent 5827015fe0
commit a5b896a76a

@ -11,4 +11,12 @@ import javax.validation.constraints.*;
@ToString(callSuper = true) @ToString(callSuper = true)
public class VoucherCreateReqVO extends VoucherBaseVO { public class VoucherCreateReqVO extends VoucherBaseVO {
@NotNull(message = "凭证号不能为空")
private String voucherNum;
@NotNull(message = "年度不能为空")
private String year;
@NotNull(message = "会计期间不能为空")
private String period;
} }

@ -11,4 +11,11 @@ import javax.validation.constraints.*;
@ToString(callSuper = true) @ToString(callSuper = true)
public class DepotCreateReqVO extends DepotBaseVO { public class DepotCreateReqVO extends DepotBaseVO {
@NotNull(message = "库房名称不能为空")
private String name;
@NotNull(message = "所属立档单位名称不能为空")
private Long organizationId;
} }

@ -11,4 +11,10 @@ import javax.validation.constraints.*;
@ToString(callSuper = true) @ToString(callSuper = true)
public class DepotCabinetCreateReqVO extends DepotCabinetBaseVO { public class DepotCabinetCreateReqVO extends DepotCabinetBaseVO {
@NotNull(message = "所属库房不能为空")
private Long depotId;
@NotNull(message = "档案柜名称不能为空")
private String name;
} }

@ -11,4 +11,11 @@ import javax.validation.constraints.*;
@ToString(callSuper = true) @ToString(callSuper = true)
public class OrganizationCreateReqVO extends OrganizationBaseVO { public class OrganizationCreateReqVO extends OrganizationBaseVO {
@NotNull(message = "立档单位名称不能为空")
private String organizationName;
@NotNull(message = "全宗号不能为空")
private String caseNum;
} }

Loading…
Cancel
Save