From 705a95c87ff045509e24685baabfdc25def0a583 Mon Sep 17 00:00:00 2001 From: liusq <106655480+liu4410@users.noreply.github.com> Date: Fri, 22 Sep 2023 10:15:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E5=AD=97=E5=85=B8):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B0=E5=A2=9E=E5=AD=97=E5=85=B8=E6=97=B6?= =?UTF-8?q?=E6=9C=AA=E8=BF=9B=E8=A1=8C=E6=A0=A1=E9=AA=8C=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#242)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hswebframework/web/dictionary/entity/DictionaryEntity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hsweb-system/hsweb-system-dictionary/src/main/java/org/hswebframework/web/dictionary/entity/DictionaryEntity.java b/hsweb-system/hsweb-system-dictionary/src/main/java/org/hswebframework/web/dictionary/entity/DictionaryEntity.java index 0fb7e856a..bfd35a2b6 100644 --- a/hsweb-system/hsweb-system-dictionary/src/main/java/org/hswebframework/web/dictionary/entity/DictionaryEntity.java +++ b/hsweb-system/hsweb-system-dictionary/src/main/java/org/hswebframework/web/dictionary/entity/DictionaryEntity.java @@ -27,6 +27,7 @@ import org.hswebframework.web.api.crud.entity.RecordCreationEntity; import org.hswebframework.web.crud.generator.Generators; import org.hswebframework.web.dict.DictDefine; import org.hswebframework.web.dict.defaults.DefaultDictDefine; +import org.hswebframework.web.validator.CreateGroup; import javax.persistence.Column; import javax.persistence.Table; @@ -45,7 +46,7 @@ import java.util.List; public class DictionaryEntity extends GenericEntity implements RecordCreationEntity { //字典名称 @Column(nullable = false) - @NotBlank(message = "名称不能为空") + @NotBlank(message = "名称不能为空",groups = CreateGroup.class) @Schema(description = "字典名称") private String name; //分类