From f85f168766e702a1577257170da0c8cae2031310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A3=B7=E5=8F=B6?= <14103883+leaf-phos@user.noreply.gitee.com> Date: Mon, 2 Dec 2024 17:52:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=97=E9=93=BA=E5=91=98=E5=B7=A5=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/ss/storeStaff/domain/StoreStaff.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/smart-switch-service/src/main/java/com/ruoyi/ss/storeStaff/domain/StoreStaff.java b/smart-switch-service/src/main/java/com/ruoyi/ss/storeStaff/domain/StoreStaff.java index 2774e623..64ef9919 100644 --- a/smart-switch-service/src/main/java/com/ruoyi/ss/storeStaff/domain/StoreStaff.java +++ b/smart-switch-service/src/main/java/com/ruoyi/ss/storeStaff/domain/StoreStaff.java @@ -30,7 +30,7 @@ public class StoreStaff extends BaseEntity @Excel(name = "店铺ID") @ApiModelProperty("店铺ID") - @NotNull(message = "店铺不能为空", groups = {ValidGroup.Create.class}) + @NotNull(message = "店铺不能为空", groups = {ValidGroup.Create.class, ValidGroup.FrontCreate.class}) private Long storeId; @Excel(name = "用户ID") @@ -39,19 +39,19 @@ public class StoreStaff extends BaseEntity @Excel(name = "角色", readConverterExp = "1=合伙人") @ApiModelProperty("角色") - @NotNull(message = "角色不能为空", groups = {ValidGroup.Create.class}) + @NotNull(message = "角色不能为空", groups = {ValidGroup.Create.class, ValidGroup.FrontCreate.class}) private String role; @Excel(name = "分成比例") @ApiModelProperty("分成比例") - @NotNull(message = "分成比例不能为空", groups = {ValidGroup.Create.class}) + @NotNull(message = "分成比例不能为空", groups = {ValidGroup.Create.class, ValidGroup.FrontCreate.class}) @Min(value = 0, message = "分成比例不允许小于0") @Max(value = 100, message = "分成比例不允许大于100") private BigDecimal point; @Excel(name = "是否启用") @ApiModelProperty("是否启用") - @NotNull(message = "是否启用不能为空", groups = {ValidGroup.Create.class}) + @NotNull(message = "是否启用不能为空", groups = {ValidGroup.Create.class, ValidGroup.FrontCreate.class}) private Boolean enabled; @Excel(name = "权限列表", readConverterExp = "1=查看店铺,2=操作店铺,3=查看设备,4=操作设备,5=查看订单,6=操作订单")