Browse Source

Merge remote-tracking branch 'origin/eitc-erm' into eitc-erm

matianxiang 4 months ago
parent
commit
036e8f8c39

+ 0 - 1
eitc-manage/src/main/java/com/eitc/manage/controller/SysClinicInfoController.java

@@ -33,7 +33,6 @@ import javax.servlet.http.HttpServletResponse;
33 33
 import java.io.IOException;
34 34
 import java.security.NoSuchAlgorithmException;
35 35
 import java.text.SimpleDateFormat;
36
-import java.util.Arrays;
37 36
 import java.util.Date;
38 37
 import java.util.List;
39 38
 

+ 15 - 0
eitc-manage/src/main/java/com/eitc/manage/domain/SysClinicInfo.java

@@ -9,6 +9,8 @@ import io.swagger.annotations.ApiModelProperty;
9 9
 import lombok.Data;
10 10
 import lombok.EqualsAndHashCode;
11 11
 
12
+import javax.validation.constraints.NotBlank;
13
+import javax.validation.constraints.NotNull;
12 14
 import java.util.Date;
13 15
 
14 16
 
@@ -39,48 +41,60 @@ public class SysClinicInfo extends EitcBaseEntity
39 41
 
40 42
     @TableField(value = "clinic_name")
41 43
     @ApiModelProperty(value = "诊所名称", name = "password")
44
+    @NotBlank(message = " 诊所名称不能为空")
42 45
     private String clinicName;
43 46
 
44 47
     @TableField(value = "clinic_ip")
45 48
     @ApiModelProperty(value = "服务IP", name = "clinicIp")
49
+    @NotBlank(message = " 服务器IP不能为空")
46 50
     private String clinicIp;
47 51
 
48 52
     @TableField(value = "server_user")
49 53
     @ApiModelProperty(value = "服务用户", name = "serverUser")
54
+    @NotBlank(message = " 服务器用户不能为空")
50 55
     private String serverUser;
51 56
 
52 57
     @TableField(value = "server_password")
53 58
     @ApiModelProperty(value = "服务密码", name = "serverPassword")
59
+    @NotBlank(message = " 服务器密码不能为空")
54 60
     private String serverPassword;
55 61
 
56 62
     @TableField(value = "realm_name")
57 63
     @ApiModelProperty(value = "诊所域名", name = "realmName")
64
+    @NotBlank(message = " 诊所域名不能为空")
58 65
     private String realmName;
59 66
 
60 67
     @TableField(value = "creat_time")
61 68
     @JsonFormat(pattern = "yyyy-MM-dd")
62 69
     @ApiModelProperty(value = "创建时间", name = "creatTime")
70
+    @NotNull(message = "创建时间不能为空")
63 71
     private Date creatTime;
64 72
 
65 73
     @TableField(value = "expire_time")
66 74
     @ApiModelProperty(value = "到期时间", name = "expireTime")
67 75
     @JsonFormat(pattern = "yyyy-MM-dd")
76
+    @NotNull(message = "到期时间不能为空")
77
+//    @NotBlank(message = "到期时间不能为空")
68 78
     private Date expireTime;
69 79
 
70 80
     @TableField(value = "version_info")
71 81
     @ApiModelProperty(value = "版本信息", name = "versionInfo")
82
+    @NotBlank(message = "版本信息不能为空")
72 83
     private String versionInfo;
73 84
 
74 85
     @TableField(value = "region")
75 86
     @ApiModelProperty(value = "所在地区", name = "region")
87
+    @NotBlank(message = "所在地区不能为空")
76 88
     private String region;
77 89
 
78 90
     @TableField(value = "phone")
79 91
     @ApiModelProperty(value = "绑定手机", name = "phone")
92
+    @NotBlank(message = "手机号不能为空")
80 93
     private String phone;
81 94
 
82 95
     @TableField(value = "address")
83 96
     @ApiModelProperty(value = "详细地址", name = "address")
97
+    @NotBlank(message = "详细地址不能为空")
84 98
     private String address;
85 99
 
86 100
     @TableField(value = "status_int")
@@ -97,6 +111,7 @@ public class SysClinicInfo extends EitcBaseEntity
97 111
 
98 112
     @TableField(value = "version_refer")
99 113
     @ApiModelProperty(value = "版本描述", name = "VersionRefer")
114
+    @NotBlank(message = "版本描述不能为空")
100 115
     private String versionRefer;
101 116
 
102 117
     @TableField(value = "version_repair")