From 3b22c5a042ac000ae21113bf5bd52db8a901ef2b Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Sun, 24 Apr 2022 17:04:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E5=8D=95=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../power/dto/rent/RentContractInfoDTO.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/epmet-plugins-module/pli-power-base/pli-power-base-client/src/main/java/com/epmet/plugin/power/dto/rent/RentContractInfoDTO.java b/epmet-plugins-module/pli-power-base/pli-power-base-client/src/main/java/com/epmet/plugin/power/dto/rent/RentContractInfoDTO.java index 61e6a85..fa79a92 100644 --- a/epmet-plugins-module/pli-power-base/pli-power-base-client/src/main/java/com/epmet/plugin/power/dto/rent/RentContractInfoDTO.java +++ b/epmet-plugins-module/pli-power-base/pli-power-base-client/src/main/java/com/epmet/plugin/power/dto/rent/RentContractInfoDTO.java @@ -2,6 +2,8 @@ package com.epmet.plugin.power.dto.rent; import lombok.Data; +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotEmpty; import java.io.Serializable; import java.util.Date; import java.util.List; @@ -26,6 +28,7 @@ public class RentContractInfoDTO implements Serializable { /** * 网格ID */ + @NotBlank(message = "网格信息不能为空") private String gridId; /** @@ -36,6 +39,7 @@ public class RentContractInfoDTO implements Serializable { /** * 房屋小区ID */ + @NotBlank(message = "小区信息不能为空") private String villageId; /** @@ -46,6 +50,7 @@ public class RentContractInfoDTO implements Serializable { /** * 楼号ID */ + @NotBlank(message = "楼栋信息不能为空") private String buildId; /** @@ -56,6 +61,7 @@ public class RentContractInfoDTO implements Serializable { /** * 单元ID */ + @NotBlank(message = "单元信息不能为空") private String unitId; /** @@ -66,6 +72,7 @@ public class RentContractInfoDTO implements Serializable { /** * 房屋ID */ + @NotBlank(message = "房屋信息不能为空") private String homeId; /** @@ -76,6 +83,7 @@ public class RentContractInfoDTO implements Serializable { /** * 房主姓名 */ + @NotBlank(message = "房主信息不能为空") private String ownerName; /** @@ -86,36 +94,43 @@ public class RentContractInfoDTO implements Serializable { /** * 出租人姓名 */ + @NotBlank(message = "出租人姓名不能为空") private String lessorName; /** * 出租人身份证 */ + @NotBlank(message = "出租人身份证不能为空") private String lessorIdCard; /** * 出租人手机 */ + @NotBlank(message = "出租人手机不能为空") private String lessorMobile; /** * 承租人姓名 */ + @NotBlank(message = "承租人姓名不能为空") private String lesseeName; /** * 承租人身份证 */ + @NotBlank(message = "承租人身份证不能为空") private String lesseeIdCard; /** * 承租人手机 */ + @NotBlank(message = "承租人手机不能为空") private String lesseeMobile; /** * 签署日期 */ + @NotBlank(message = "签订时间不能为空") private String signDate; /** @@ -126,11 +141,13 @@ public class RentContractInfoDTO implements Serializable { /** * 合同开始日期 */ + @NotBlank(message = "合同开始时间不能为空") private String startDate; /** * 合同结束日期 */ + @NotBlank(message = "合同结束时间不能为空") private String endDate; /** @@ -171,11 +188,13 @@ public class RentContractInfoDTO implements Serializable { /** * 租客列表 */ + @NotEmpty private List tenantList; /** * 附件列表 */ + @NotEmpty private List fileList; } \ No newline at end of file