Commit f6218156 authored by hongguangwu's avatar hongguangwu

MVP1.7.14-手机号导入校验

parent 553d9477
...@@ -884,8 +884,6 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe ...@@ -884,8 +884,6 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
empMap.put(e.getEmpIdcard(), e); empMap.put(e.getEmpIdcard(), e);
} }
TSalaryEmployee emp; TSalaryEmployee emp;
// 开户行省市的区域暂存 // 开户行省市的区域暂存
String areaStr; String areaStr;
...@@ -1184,18 +1182,19 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe ...@@ -1184,18 +1182,19 @@ public class TSalaryEmployeeServiceImpl extends ServiceImpl<TSalaryEmployeeMappe
for (TSalaryEmployee e : empList) { for (TSalaryEmployee e : empList) {
empMap.put(e.getEmpIdcard(), e); empMap.put(e.getEmpIdcard(), e);
} }
List<TSalaryEmployee> empPhoneList = baseMapper.getListByPhone(phoneList);
// 人员手机号Map
Map<String, List<String>> empPhoneMap = new HashMap<>(); Map<String, List<String>> empPhoneMap = new HashMap<>();
// 人员手机号Map
List<String> phoneIdCardList; List<String> phoneIdCardList;
for (TSalaryEmployee e : empPhoneList) { if (!phoneList.isEmpty()) {
phoneIdCardList = empPhoneMap.get(e.getEmpPhone()); List<TSalaryEmployee> empPhoneList = baseMapper.getListByPhone(phoneList);
if (phoneIdCardList == null) { for (TSalaryEmployee e : empPhoneList) {
phoneIdCardList = new ArrayList<>(); phoneIdCardList = empPhoneMap.get(e.getEmpPhone());
if (phoneIdCardList == null) {
phoneIdCardList = new ArrayList<>();
}
phoneIdCardList.add(e.getEmpIdcard());
empPhoneMap.put(e.getEmpPhone(), phoneIdCardList);
} }
phoneIdCardList.add(e.getEmpIdcard());
empPhoneMap.put(e.getEmpPhone(), phoneIdCardList);
} }
TSalaryEmployee emp; TSalaryEmployee emp;
// 开户行省市的区域暂存 // 开户行省市的区域暂存
......
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