Commit 1e72d6a8 authored by hongguangwu's avatar hongguangwu

"手机号:" + employeeInfo.getEmpPhone() + "已被使用!"

parent a7633065
...@@ -693,8 +693,15 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T ...@@ -693,8 +693,15 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
} }
if (!phoneList.isEmpty()) { if (!phoneList.isEmpty()) {
List<TEmployeeInfo> phones = baseMapper.getListByPhone(phoneList); List<TEmployeeInfo> phones = baseMapper.getListByPhone(phoneList);
for (TEmployeeInfo employeeInfo : phones) { if (phones != null && !phones.isEmpty()) {
existPhoneMap.put(employeeInfo.getEmpPhone(), employeeInfo); Long l=2L;
for (TEmployeeInfo employeeInfo : phones) {
errorMsg = new HashSet<>();
existPhoneMap.put(employeeInfo.getEmpPhone(), employeeInfo);
errorMsg.add("手机号:" + employeeInfo.getEmpPhone() + "已被使用!");
errorMsgMap.put(l, new ErrorMessage("第" + l + "行手机号:" + employeeInfo.getEmpPhone() + "已被使用!"));
l++;
}
} }
} }
...@@ -824,6 +831,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T ...@@ -824,6 +831,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
} }
} }
// 校验字典数据是否正确-婚姻 // 校验字典数据是否正确-婚姻
if (Common.isNotNull(excel.getEmpMarriStatus())) { if (Common.isNotNull(excel.getEmpMarriStatus())) {
if (empMarriMap.get(excel.getEmpMarriStatus()) == null) { if (empMarriMap.get(excel.getEmpMarriStatus()) == null) {
......
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