Commit a9b0d89c by zhangxingmin

push

parent 94026498
......@@ -50,7 +50,7 @@ public class ApiInsurantInfoDto {
* 姓名-中文
*/
// @NotBlank(message = "受保人-姓名(中文)不能为空", groups = GroupValid.NotSelf.class)
@Pattern(regexp = "^[\u4e00-\u9fa5]{2,6}$", message = "受保人-姓名(中文)必须为2-6位汉字", groups = GroupValid.NotSelf.class)
@Pattern(regexp = "^(|[\u4e00-\u9fa5]{2,6})$", message = "受保人-姓名(中文)必须为2-6位汉字", groups = GroupValid.NotSelf.class)
private String nameCn;
/**
......
......@@ -43,7 +43,7 @@ public class ApiPolicyholderInfoDto {
* 姓名-中文
*/
// @NotBlank(message = "投保人-姓名(中文)不能为空")
@Pattern(regexp = "^[\u4e00-\u9fa5]{2,6}$", message = "投保人-姓名(中文)必须为2-6位汉字")
@Pattern(regexp = "^(|[\u4e00-\u9fa5]{2,6})$",message = "投保人-姓名(中文)必须为2-6位汉字")
private String nameCn;
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment