Commit af7b4caf authored by fangxinjiang's avatar fangxinjiang

Merge remote-tracking branch 'origin/develop' into develop

parents c36c829b 7955b944
...@@ -1020,6 +1020,20 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T ...@@ -1020,6 +1020,20 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
} else { } else {
saveEmp = existEmpMap.get(excel.getEmpIdcard()); saveEmp = existEmpMap.get(excel.getEmpIdcard());
saveEmp.setProjectNum(CommonConstants.ONE_INT); saveEmp.setProjectNum(CommonConstants.ONE_INT);
if (Common.isNotNull(excel.getDeptNo())) {
if (excel.getDeptNo().length() > 20) {
errorMsg.add(EmployeeConstants.DEPT_NO_LENGTH);
} else {
saveEmp.setDeptNo(excel.getDeptNo());
}
}
if (Common.isNotNull(excel.getPost())) {
if (excel.getPost().length() > 20) {
errorMsg.add(EmployeeConstants.POST_LENGTH);
} else {
saveEmp.setPost(excel.getPost());
}
}
saveList.add(saveEmp); saveList.add(saveEmp);
} }
} else { } else {
...@@ -1329,6 +1343,9 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T ...@@ -1329,6 +1343,9 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
project.setProjectStatus(CommonConstants.ZERO_INT); project.setProjectStatus(CommonConstants.ZERO_INT);
} }
tEmployeeProjectService.updateBatchById(projectList); tEmployeeProjectService.updateBatchById(projectList);
} else {
// 新增项目档案
tEmployeeProjectService.saveEmployeeProjectInfo(employeeInfo);
} }
} }
} }
......
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