Commit e6dae7ab authored by hongguangwu's avatar hongguangwu

MVP1.7.0 优化

parent 5c6ed2ef
......@@ -623,6 +623,9 @@ public class DiyExcelImportUtil implements Serializable {
if (Common.isNotNull(attr.dateFormat())) {
format = attr.dateFormat();
}
if ("taxMonth".equals(shuName) && c.length() != 6) {
errorFormat.append(attr.name()).append(";");
} else {
dateValue = DateUtil.stringDateFormat(c.trim(), format);
if (null == dateValue) {
errorFormat.append(attr.name()).append(";");
......@@ -632,6 +635,7 @@ public class DiyExcelImportUtil implements Serializable {
}
}
}
}
//手机号码校验
if (attr.isPhone() && getMatchRes(c.trim(), attr, ValidityConstants.MOBILE_PATTERN)) {
errorFormat.append(attr.name()).append(";");
......
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