Commit c34973fc authored by fangxinjiang's avatar fangxinjiang

代码优化-fxj

parent d3155218
......@@ -3379,6 +3379,10 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
TDispatchReduceVo excel) {
// MVPV1.7.14 ,批量派减日志调整为年月格式
if (Common.isNotNull(excel.getSocialReduceDate())){
if (excel.getSocialReduceDate().length() != 6){
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), DispatchConstants.EMPLOYEE + excel.getEmpName() + "社保停缴日期格式错误(例:202508)"));
return true;
}
if (excel.getSocialReduceDate().length() == 6){
excel.setSocialReduceDate(excel.getSocialReduceDate()+"01");
}
......@@ -3388,6 +3392,10 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
}
}
if (Common.isNotNull(excel.getFundReduceDate())){
if (excel.getFundReduceDate().length() != 6){
errorMessageList.add(new ErrorMessage(excel.getRowIndex(), DispatchConstants.EMPLOYEE + excel.getEmpName() + "公积金停缴日期格式错误(例:202508)"));
return true;
}
if (excel.getFundReduceDate().length() == 6){
excel.setFundReduceDate(excel.getFundReduceDate()+"01");
}
......
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