Commit 2313f8e6 authored by huyuchen's avatar huyuchen

薪资审核页面接口修改

parent d4792c05
...@@ -831,7 +831,7 @@ public class ExcelUtil <T> implements Serializable { ...@@ -831,7 +831,7 @@ public class ExcelUtil <T> implements Serializable {
//校验字段是否符合要求 返回错误信息 //校验字段是否符合要求 返回错误信息
error = validateUtil(c, attr, i + 2); error = validateUtil(c, attr, i + 2);
if (null == error && attr.isDate() && Common.isNotNull(c)) { if (null == error && attr.isDate() && Common.isNotNull(c)) {
c.replace("/","-").replace(CommonConstants.YEAR,"-") c = c.replace("/","-").replace(CommonConstants.YEAR,"-")
.replace(CommonConstants.MONTH,"-").replace(CommonConstants.DAY,""); .replace(CommonConstants.MONTH,"-").replace(CommonConstants.DAY,"");
Pattern pattern = Pattern.compile("[0-9]*"); Pattern pattern = Pattern.compile("[0-9]*");
if (pattern.matcher(c).matches()) { if (pattern.matcher(c).matches()) {
......
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