字段校验提示修改
This commit is contained in:
+1
-1
@@ -61,7 +61,7 @@ public class PayCompanyManagementController extends JeroController<PayCompanyMan
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
if(!StringUtils.isBlank(payCompanyManagement.getCompanyName()) && payCompanyManagement.getCompanyName().length() > 50){
|
||||
return Result.error("企业名称长度应小于50个字符!");
|
||||
return Result.error("企业名称长度不能大于50个字符!");
|
||||
}
|
||||
QueryWrapper<PayCompanyManagement> queryWrapper = QueryGenerator.initQueryWrapper(payCompanyManagement, req.getParameterMap());
|
||||
Page<PayCompanyManagement> page = new Page<PayCompanyManagement>(pageNo, pageSize);
|
||||
|
||||
+3
-3
@@ -72,13 +72,13 @@ public class PayContactsManagementController extends JeroController<PayContactsM
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
if(!StringUtils.isBlank(payContactsManagement.getName()) && payContactsManagement.getName().length() > 20){
|
||||
return Result.error("姓名长度应小于20个字符!");
|
||||
return Result.error("姓名长度不能大于20个字符!");
|
||||
}
|
||||
if(!StringUtils.isBlank(payContactsManagement.getCompanyName()) && payContactsManagement.getCompanyName().length() > 50){
|
||||
return Result.error("企业名称长度应小于50个字符!");
|
||||
return Result.error("企业名称长度不能大于50个字符!");
|
||||
}
|
||||
if(!StringUtils.isBlank(payContactsManagement.getPhone()) && payContactsManagement.getPhone().length() > 11){
|
||||
return Result.error("手机号长度应小于11个字符!");
|
||||
return Result.error("手机号长度不能大于11个字符!");
|
||||
}
|
||||
Page<PayContactsManagement> page = new Page<PayContactsManagement>(pageNo, pageSize);
|
||||
IPage<PayContactsManagement> pageList = payContactsManagementService.queryPageList(page, payContactsManagement);
|
||||
|
||||
+7
-7
@@ -42,12 +42,12 @@ public class PayCompanyManagement implements Serializable {
|
||||
/**公司地址*/
|
||||
@Excel(name = "公司地址", width = 15)
|
||||
@ApiModelProperty(value = "公司地址")
|
||||
@Size(max = 200, message = "公司地址长度应小于200个字符")
|
||||
@Size(max = 200, message = "公司地址长度不能大于200个字符")
|
||||
private String companyAddress;
|
||||
/**公司电话*/
|
||||
@Excel(name = "公司电话", width = 15)
|
||||
@ApiModelProperty(value = "公司电话")
|
||||
@Size(max = 15, message = "公司电话长度应小于15个字符")
|
||||
@Size(max = 15, message = "公司电话长度不能大于15个字符")
|
||||
@Pattern(regexp = "^(([0-9]{3,4}-)?[0-9]{7,8})|(((13[0-9])|(14[579])|(15([0-3]|[5-9]))|(17[0135678])|(18[0-9])|(19[8|9])|(16[6]))\\d{8})$",message = "公司电话格式错误")
|
||||
private String companyPhone;
|
||||
/**邮编*/
|
||||
@@ -59,23 +59,23 @@ public class PayCompanyManagement implements Serializable {
|
||||
/**银行户名*/
|
||||
@Excel(name = "银行户名", width = 15)
|
||||
@ApiModelProperty(value = "银行户名")
|
||||
@Size(max = 50,message = "银行户名长度应小于50个字符")
|
||||
@Size(max = 50,message = "银行户名长度不能大于50个字符")
|
||||
private String bankAccountName;
|
||||
/**开户行*/
|
||||
@Excel(name = "开户行", width = 15)
|
||||
@ApiModelProperty(value = "开户行")
|
||||
@Size(max = 50, message = "开户行长度应小于50个字符")
|
||||
@Size(max = 50, message = "开户行长度不能大于50个字符")
|
||||
private String openingBank;
|
||||
/**银行账号*/
|
||||
@Excel(name = "银行账号", width = 15)
|
||||
@ApiModelProperty(value = "银行账号")
|
||||
@Size(max = 50, message = "银行账号长度应小于50个字符")
|
||||
@Size(max = 50, message = "银行账号长度不能大于50个字符")
|
||||
@Pattern(regexp = "^[0-9]*$",message = "银行账号格式错误")
|
||||
private String bankAccount;
|
||||
/**税号*/
|
||||
@Excel(name = "税号", width = 15)
|
||||
@ApiModelProperty(value = "税号")
|
||||
@Size(max = 50, message = "税号长度应小于50个字符")
|
||||
@Size(max = 50, message = "税号长度不能大于50个字符")
|
||||
@Pattern(regexp = "^[A-Z0-9]{15}$|^[A-Z0-9]{17}$|^[A-Z0-9]{18}$|^[A-Z0-9]{20}$",message = "税号格式错误")
|
||||
private String dutyCode;
|
||||
/**数据来源(1:管理端,2:报名)*/
|
||||
@@ -91,7 +91,7 @@ public class PayCompanyManagement implements Serializable {
|
||||
/**备注*/
|
||||
@Excel(name = "备注", width = 15)
|
||||
@ApiModelProperty(value = "备注")
|
||||
@Size(max = 200, message = "备注长度应小于200个字符")
|
||||
@Size(max = 200, message = "备注长度不能大于200个字符")
|
||||
private String remarks;
|
||||
/**创建人*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
|
||||
+5
-5
@@ -42,13 +42,13 @@ public class PayContactsManagement implements Serializable {
|
||||
@Excel(name = "企业名称", width = 15)
|
||||
@ApiModelProperty(value = "企业名称")
|
||||
@NotEmpty(message = "企业名称不能为空!")
|
||||
@Size(max = 200, message = "企业名称长度应小于200个字符")
|
||||
@Size(max = 200, message = "企业名称长度不能大于200个字符")
|
||||
private String companyName;
|
||||
/**姓名*/
|
||||
@Excel(name = "姓名", width = 15)
|
||||
@ApiModelProperty(value = "姓名")
|
||||
@NotEmpty(message = "姓名不能为空!")
|
||||
@Size(max = 20, message = "姓名长度应小于20个字符")
|
||||
@Size(max = 20, message = "姓名长度不能大于20个字符")
|
||||
private String name;
|
||||
/**性别(1:男,2:女)*/
|
||||
@Excel(name = "性别", width = 15,dicCode="sex")
|
||||
@@ -60,7 +60,7 @@ public class PayContactsManagement implements Serializable {
|
||||
/**职务*/
|
||||
@Excel(name = "职务", width = 15)
|
||||
@ApiModelProperty(value = "职务")
|
||||
@Size(max = 20, message = "职务长度应小于20个字符")
|
||||
@Size(max = 20, message = "职务长度不能大于20个字符")
|
||||
private String post;
|
||||
/**手机号*/
|
||||
@Excel(name = "手机号", width = 15)
|
||||
@@ -77,7 +77,7 @@ public class PayContactsManagement implements Serializable {
|
||||
/**通讯地址*/
|
||||
@Excel(name = "通讯地址", width = 15)
|
||||
@ApiModelProperty(value = "通讯地址")
|
||||
@Size(max = 50, message = "通讯地址长度应小于50个字符")
|
||||
@Size(max = 50, message = "通讯地址长度不能大于50个字符")
|
||||
@NotEmpty(message = "通讯地址不能为空!")
|
||||
private String contactAddress;
|
||||
/**邮政编码*/
|
||||
@@ -100,7 +100,7 @@ public class PayContactsManagement implements Serializable {
|
||||
/**备注*/
|
||||
@Excel(name = "备注", width = 15)
|
||||
@ApiModelProperty(value = "备注")
|
||||
@Size(max = 200, message = "备注长度应小于200个字符")
|
||||
@Size(max = 200, message = "备注长度不能大于200个字符")
|
||||
private String remarks;
|
||||
/**创建人*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
|
||||
Reference in New Issue
Block a user