|
@@ -4,6 +4,9 @@ import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
|
|
|
|
+import javax.validation.constraints.NotBlank;
|
|
|
+import javax.validation.constraints.NotEmpty;
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.time.LocalDateTime;
|
|
|
|
|
@@ -18,18 +21,22 @@ public class DeviceInputDto {
|
|
|
@ApiModelProperty(value="编号")
|
|
|
private Long id;
|
|
|
|
|
|
+ @NotNull(message = "companyOrgId cannot be empty")
|
|
|
@ApiModelProperty(value="公司")
|
|
|
private Integer companyOrgId;
|
|
|
|
|
|
@ApiModelProperty(value="部门")
|
|
|
private Integer deptOrgId;
|
|
|
|
|
|
+ @NotNull(message = "productId cannot be empty")
|
|
|
@ApiModelProperty(value="产品")
|
|
|
private Integer productId;
|
|
|
|
|
|
+ @NotBlank(message = "deviceNo cannot be empty")
|
|
|
@ApiModelProperty(value="设备编号")
|
|
|
private String deviceNo;
|
|
|
|
|
|
+ @NotBlank(message = "meterNo cannot be empty")
|
|
|
@ApiModelProperty(value="电子号")
|
|
|
private String meterNo;
|
|
|
|