|
@@ -8,6 +8,8 @@ import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
import lombok.ToString;
|
|
import lombok.ToString;
|
|
|
|
|
|
|
|
|
|
+import javax.validation.constraints.Max;
|
|
|
|
|
+import javax.validation.constraints.Min;
|
|
|
import javax.validation.constraints.NotBlank;
|
|
import javax.validation.constraints.NotBlank;
|
|
|
import javax.validation.constraints.NotNull;
|
|
import javax.validation.constraints.NotNull;
|
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
@@ -46,6 +48,8 @@ public class BizClinicAddOrEditDTO implements Serializable {
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "年龄", position = 5,required = true)
|
|
@ApiModelProperty(value = "年龄", position = 5,required = true)
|
|
|
@NotNull (message = "年龄不能为空",groups = {Update.class, Insert.class})
|
|
@NotNull (message = "年龄不能为空",groups = {Update.class, Insert.class})
|
|
|
|
|
+ @Min(value = 0, message = "年龄不能小于0", groups = {Update.class, Insert.class})
|
|
|
|
|
+ @Max(value = 150, message = "年龄不能大于150", groups = {Update.class, Insert.class})
|
|
|
private Integer patientAge;
|
|
private Integer patientAge;
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "性别", position = 6,required = true)
|
|
@ApiModelProperty(value = "性别", position = 6,required = true)
|