diff --git a/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/voucher/vo/VoucherCreateReqVO.java b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/voucher/vo/VoucherCreateReqVO.java index 7e0d26b3..9235f1e5 100644 --- a/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/voucher/vo/VoucherCreateReqVO.java +++ b/yudao-module-accounting/yudao-module-accounting-biz/src/main/java/cn/iocoder/yudao/module/accounting/controller/admin/voucher/vo/VoucherCreateReqVO.java @@ -11,4 +11,12 @@ import javax.validation.constraints.*; @ToString(callSuper = true) public class VoucherCreateReqVO extends VoucherBaseVO { + @NotNull(message = "凭证号不能为空") + private String voucherNum; + + @NotNull(message = "年度不能为空") + private String year; + + @NotNull(message = "会计期间不能为空") + private String period; } diff --git a/yudao-module-setting/yudao-module-setting-biz/src/main/java/cn/iocoder/yudao/module/setting/controller/admin/depot/vo/DepotCreateReqVO.java b/yudao-module-setting/yudao-module-setting-biz/src/main/java/cn/iocoder/yudao/module/setting/controller/admin/depot/vo/DepotCreateReqVO.java index 9475af5a..698adfb6 100644 --- a/yudao-module-setting/yudao-module-setting-biz/src/main/java/cn/iocoder/yudao/module/setting/controller/admin/depot/vo/DepotCreateReqVO.java +++ b/yudao-module-setting/yudao-module-setting-biz/src/main/java/cn/iocoder/yudao/module/setting/controller/admin/depot/vo/DepotCreateReqVO.java @@ -11,4 +11,11 @@ import javax.validation.constraints.*; @ToString(callSuper = true) public class DepotCreateReqVO extends DepotBaseVO { + @NotNull(message = "库房名称不能为空") + private String name; + + @NotNull(message = "所属立档单位名称不能为空") + private Long organizationId; + + } diff --git a/yudao-module-setting/yudao-module-setting-biz/src/main/java/cn/iocoder/yudao/module/setting/controller/admin/depotcabinet/vo/DepotCabinetCreateReqVO.java b/yudao-module-setting/yudao-module-setting-biz/src/main/java/cn/iocoder/yudao/module/setting/controller/admin/depotcabinet/vo/DepotCabinetCreateReqVO.java index 6608f67e..b039c1d5 100644 --- a/yudao-module-setting/yudao-module-setting-biz/src/main/java/cn/iocoder/yudao/module/setting/controller/admin/depotcabinet/vo/DepotCabinetCreateReqVO.java +++ b/yudao-module-setting/yudao-module-setting-biz/src/main/java/cn/iocoder/yudao/module/setting/controller/admin/depotcabinet/vo/DepotCabinetCreateReqVO.java @@ -11,4 +11,10 @@ import javax.validation.constraints.*; @ToString(callSuper = true) public class DepotCabinetCreateReqVO extends DepotCabinetBaseVO { + @NotNull(message = "所属库房不能为空") + private Long depotId; + + @NotNull(message = "档案柜名称不能为空") + private String name; + } diff --git a/yudao-module-setting/yudao-module-setting-biz/src/main/java/cn/iocoder/yudao/module/setting/controller/admin/organization/vo/OrganizationCreateReqVO.java b/yudao-module-setting/yudao-module-setting-biz/src/main/java/cn/iocoder/yudao/module/setting/controller/admin/organization/vo/OrganizationCreateReqVO.java index 46312416..61ce1860 100644 --- a/yudao-module-setting/yudao-module-setting-biz/src/main/java/cn/iocoder/yudao/module/setting/controller/admin/organization/vo/OrganizationCreateReqVO.java +++ b/yudao-module-setting/yudao-module-setting-biz/src/main/java/cn/iocoder/yudao/module/setting/controller/admin/organization/vo/OrganizationCreateReqVO.java @@ -11,4 +11,11 @@ import javax.validation.constraints.*; @ToString(callSuper = true) public class OrganizationCreateReqVO extends OrganizationBaseVO { + @NotNull(message = "立档单位名称不能为空") + private String organizationName; + + @NotNull(message = "全宗号不能为空") + private String caseNum; + + }