Commit ee32321a authored by hongguangwu's avatar hongguangwu

档案导入空指针优化

parent 5b31cd4c
...@@ -784,7 +784,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T ...@@ -784,7 +784,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
checkPhone.setEmpPhone(excel.getEmpPhone()); checkPhone.setEmpPhone(excel.getEmpPhone());
phoneEmpList = baseMapper.getList(checkPhone); phoneEmpList = baseMapper.getList(checkPhone);
if (phoneEmpList != null && !phoneEmpList.isEmpty()) { if (phoneEmpList != null && !phoneEmpList.isEmpty()) {
errorMsg.add(MsgUtils.getMessage(ErrorCodes.ARCHIVES_IMPORT_EMP_PHONE_EXIST_ERROR, existEmp.getEmpIdcard())); errorMsg.add(MsgUtils.getMessage(ErrorCodes.ARCHIVES_IMPORT_EMP_PHONE_EXIST_ERROR, excel.getEmpIdcard()));
} }
existEmp = existPhoneMap.get(excel.getEmpPhone()); existEmp = existPhoneMap.get(excel.getEmpPhone());
......
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