From d351046a38b9ef4d469826aaffc6d3abd3a48a35 Mon Sep 17 00:00:00 2001 From: zxc <1272811460@qq.com> Date: Thu, 7 Apr 2022 15:38:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=90=E5=88=B6500?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/epmet/dto/IcEpidemicSpecialAttentionDTO.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/epmet-user/epmet-user-client/src/main/java/com/epmet/dto/IcEpidemicSpecialAttentionDTO.java b/epmet-user/epmet-user-client/src/main/java/com/epmet/dto/IcEpidemicSpecialAttentionDTO.java index 9cba05de39..8ae0e0c50e 100644 --- a/epmet-user/epmet-user-client/src/main/java/com/epmet/dto/IcEpidemicSpecialAttentionDTO.java +++ b/epmet-user/epmet-user-client/src/main/java/com/epmet/dto/IcEpidemicSpecialAttentionDTO.java @@ -5,6 +5,7 @@ import java.util.Date; import java.util.List; import lombok.Data; +import org.hibernate.validator.constraints.Length; import javax.validation.constraints.Max; import javax.validation.constraints.NotBlank; @@ -82,13 +83,13 @@ public class IcEpidemicSpecialAttentionDTO implements Serializable { /** * 原因 */ - @Max(value = 500,message = "原因限制500字以内") + @Length(max = 500,message = "原因限制500字以内") private String reason; /** * 备注 */ - @Max(value = 500,message = "备注限制500字以内") + @Length(max = 500,message = "备注限制500字以内") private String remark; /** @@ -129,7 +130,7 @@ public class IcEpidemicSpecialAttentionDTO implements Serializable { /** * 通知内容 */ - @Max(value = 500,message = "通知内容限制500字以内") + @Length(max = 500,message = "通知内容限制500字以内") private String content; } \ No newline at end of file