update
This commit is contained in:
+9
-9
@@ -2006,22 +2006,22 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl<FileSplitItemsEOMap
|
|||||||
// }
|
// }
|
||||||
if (StringUtils.equals(key,"item_num")) {
|
if (StringUtils.equals(key,"item_num")) {
|
||||||
//正则判断仅能为 负号(-),小数点(.)和数字
|
//正则判断仅能为 负号(-),小数点(.)和数字
|
||||||
String regexNumber = "^(\\-|\\+)?\\d+(\\.\\d+)?$";
|
// String regexNumber = "^(\\-|\\+)?\\d+(\\.\\d+)?$";
|
||||||
if(StringUtils.isNotBlank(value) && !value.matches(regexNumber)){
|
// if(StringUtils.isNotBlank(value) && !value.matches(regexNumber)){
|
||||||
errorMsg += "条款号" + "仅能为 负号(-),小数点(.)和数字;";
|
// errorMsg += "条款号" + "仅能为 负号(-),小数点(.)和数字;";
|
||||||
countError++;
|
// countError++;
|
||||||
}
|
// }
|
||||||
|
|
||||||
//判断长度
|
//判断长度
|
||||||
if (StringUtils.isNotBlank(value) && value.length() > 10) {
|
if (StringUtils.isNotBlank(value) && value.length() > 50) {
|
||||||
errorMsg += "条款号" + "不能超过" + "10" + "个字符;";
|
errorMsg += "条款号" + "不能超过" + "50" + "个字;";
|
||||||
countError++;
|
countError++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (StringUtils.equals(key,"item_title")) {
|
if (StringUtils.equals(key,"item_title")) {
|
||||||
//判断长度
|
//判断长度
|
||||||
if (StringUtils.isNotBlank(value) && value.length() > 100) {
|
if (StringUtils.isNotBlank(value) && value.length() > 50) {
|
||||||
errorMsg += "条款标题" + "不能超过" + "100" + "个字符;";
|
errorMsg += "条款标题" + "不能超过" + "50" + "个字;";
|
||||||
countError++;
|
countError++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user