From 720c0327d0376d2e9dc06a29f26428efd3badde6 Mon Sep 17 00:00:00 2001 From: liuchuang Date: Wed, 25 Sep 2019 10:13:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/elink/esua/epdc/dto/item/form/EvaluationFormDTO.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esua-epdc/epdc-module/epdc-events/epdc-events-client/src/main/java/com/elink/esua/epdc/dto/item/form/EvaluationFormDTO.java b/esua-epdc/epdc-module/epdc-events/epdc-events-client/src/main/java/com/elink/esua/epdc/dto/item/form/EvaluationFormDTO.java index c1d86798c..98ca092a4 100644 --- a/esua-epdc/epdc-module/epdc-events/epdc-events-client/src/main/java/com/elink/esua/epdc/dto/item/form/EvaluationFormDTO.java +++ b/esua-epdc/epdc-module/epdc-events/epdc-events-client/src/main/java/com/elink/esua/epdc/dto/item/form/EvaluationFormDTO.java @@ -3,6 +3,7 @@ package com.elink.esua.epdc.dto.item.form; import lombok.Data; import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; import java.io.Serializable; @@ -17,7 +18,7 @@ public class EvaluationFormDTO implements Serializable { @NotBlank(message = "项目ID不能为空") private String itemId; - @NotBlank(message = "满意度评价得分不能为空") + @NotNull(message = "满意度评价得分不能为空") private int evaluationScore; @Size(min = 1, max = 100, message = "满意度评价内容在100字以内")