From a5b896a76a1d122e3dd8e0435933b79bcd6943c4 Mon Sep 17 00:00:00 2001 From: JiilingLee <462362@qq.com> Date: Mon, 9 Oct 2023 17:29:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9E=E7=A9=BA=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/admin/voucher/vo/VoucherCreateReqVO.java | 8 ++++++++ .../controller/admin/depot/vo/DepotCreateReqVO.java | 7 +++++++ .../admin/depotcabinet/vo/DepotCabinetCreateReqVO.java | 6 ++++++ .../admin/organization/vo/OrganizationCreateReqVO.java | 7 +++++++ 4 files changed, 28 insertions(+) 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; + + }