zhangjiansheng преди 3 месеца
родител
ревизия
25382defed

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

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