Commit 9404aa41 authored by huyuchen's avatar huyuchen

缴费库 代码修改

parent b5bf5bc8
...@@ -633,7 +633,9 @@ public class ExcelUtil <T> implements Serializable { ...@@ -633,7 +633,9 @@ public class ExcelUtil <T> implements Serializable {
if (Common.isNotNull(c)) { if (Common.isNotNull(c)) {
//日期格式校验 //日期格式校验
if (attr.isDate()) { if (attr.isDate()) {
DateUtil.stringToDate(c.trim(), attr.dateFormat()); if (null == DateUtil.stringToDate(c.trim(), "yyyyMMdd")) {
return errorInfo(attr, "_日期格式有误", i);
}
} }
//手机号码校验 //手机号码校验
if (attr.isPhone() && getMatchRes(c.trim(), attr, ValidityConstants.MOBILE_PATTERN)) { if (attr.isPhone() && getMatchRes(c.trim(), attr, ValidityConstants.MOBILE_PATTERN)) {
......
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