From 1d52c5db8d7d458eabd798a84fe0738affed60fb 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: Wed, 2 Oct 2024 15:21:39 +0800 Subject: [PATCH] =?UTF-8?q?Debug:=E6=9C=8D=E5=8A=A1=E8=B4=B9=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/ruoyi/ss/device/domain/Device.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/smart-switch-service/src/main/java/com/ruoyi/ss/device/domain/Device.java b/smart-switch-service/src/main/java/com/ruoyi/ss/device/domain/Device.java index 519cbe35..688dd4e1 100644 --- a/smart-switch-service/src/main/java/com/ruoyi/ss/device/domain/Device.java +++ b/smart-switch-service/src/main/java/com/ruoyi/ss/device/domain/Device.java @@ -3,17 +3,18 @@ package com.ruoyi.ss.device.domain; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonView; import com.ruoyi.common.annotation.Excel; -import com.ruoyi.common.constants.DictTypeConstants; import com.ruoyi.common.core.domain.BaseEntity; import com.ruoyi.common.core.domain.JsonViewProfile; import com.ruoyi.common.core.domain.ValidGroup; -import com.ruoyi.system.valid.DictValid; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import org.hibernate.validator.constraints.Range; import org.springframework.format.annotation.DateTimeFormat; -import javax.validation.constraints.*; +import javax.validation.constraints.Min; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Past; +import javax.validation.constraints.Size; import java.math.BigDecimal; import java.time.LocalDateTime; import java.util.Date; @@ -151,8 +152,8 @@ public class Device extends BaseEntity private BigDecimal serviceRate; @ApiModelProperty("服务费类型") - @NotBlank(message = "服务费类型不允许为空", groups = {ValidGroup.Create.class}) - @DictValid(type = DictTypeConstants.SERVICE_TYPE, message = "非法的服务费类型") +// @NotBlank(message = "服务费类型不允许为空", groups = {ValidGroup.Create.class}) +// @DictValid(type = DictTypeConstants.SERVICE_TYPE, message = "非法的服务费类型") private String serviceType; @ApiModelProperty("剩余时长(秒)")