Commit f11b4cb0 authored by chenyuxi's avatar chenyuxi

feat: 预入职批量更新-年度校验调整

parent 7db56a2a
...@@ -3461,6 +3461,9 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T ...@@ -3461,6 +3461,9 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
break; break;
} }
} }
if(isNum && shuValue.length() != 4){
errorFormat.append(attr.name()).append("_不符合年份格式;");
}
if(isNum && shuValue.length() == 4 && (Integer.parseInt(shuValue) > DateUtil.getYearOfInt(new Date()))){ if(isNum && shuValue.length() == 4 && (Integer.parseInt(shuValue) > DateUtil.getYearOfInt(new Date()))){
errorFormat.append(attr.name()).append("_不可为未来年份;"); 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