邮政编码非必填

开户行、银行账户必填
This commit is contained in:
liangqitao
2021-12-13 14:28:04 +08:00
parent db120628d2
commit 6ec2997f33
@@ -63,7 +63,7 @@ public class PayCompanyManagement implements Serializable {
/**邮政编码*/
@Excel(name = "邮政编码", width = 15)
@ApiModelProperty(value = "邮政编码")
@NotEmpty(message = "邮政编码不能为空")
// @NotEmpty(message = "邮政编码不能为空")
@Size(min=6,max = 6,message = "邮政编码长度必须为6个字符")
@Pattern(regexp = "^[0-9]\\d{5}$",message = "邮政编码格式错误")
private String postalCode;
@@ -75,13 +75,13 @@ public class PayCompanyManagement implements Serializable {
/**开户行*/
@Excel(name = "开户行", width = 15)
@ApiModelProperty(value = "开户行")
// @NotEmpty(message = "开户行不能为空")
@NotEmpty(message = "开户行不能为空")
@Size(max = 50, message = "开户行长度不能大于50个字符")
private String openingBank;
/**银行账号*/
@Excel(name = "银行账号", width = 15)
@ApiModelProperty(value = "银行账号")
// @NotEmpty(message = "银行账号不能为空")
@NotEmpty(message = "银行账号不能为空")
@Size(max = 50, message = "银行账号长度不能大于50个字符")
@Pattern(regexp = "^[0-9]*$",message = "银行账号格式错误")
private String bankAccount;