Commit 1e72d6a8 authored by hongguangwu's avatar hongguangwu

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

parent a7633065
......@@ -693,8 +693,15 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
}
if (!phoneList.isEmpty()) {
List<TEmployeeInfo> phones = baseMapper.getListByPhone(phoneList);
for (TEmployeeInfo employeeInfo : phones) {
existPhoneMap.put(employeeInfo.getEmpPhone(), employeeInfo);
if (phones != null && !phones.isEmpty()) {
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
}
}
// 校验字典数据是否正确-婚姻
if (Common.isNotNull(excel.getEmpMarriStatus())) {
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