Commit 986f62e9 authored by hongguangwu's avatar hongguangwu

MVP1.7.15-1.7.15去除姓名找人

parent 4308b36e
......@@ -216,8 +216,9 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
List<TSalaryEmployee> empList = employeeService.list(Wrappers.<TSalaryEmployee>query().lambda()
.eq(TSalaryEmployee::getUnitId, dept.getCustomerId()));
Map<String, TSalaryEmployee> empIdCardMap = new HashMap<>();
Map<String, TSalaryEmployee> empNameMap = new HashMap<>();
boolean isDuplicateName = false;
// 2025-9-12 10:06:42 倩倩说不能根据姓名找人
// Map<String, TSalaryEmployee> empNameMap = new HashMap<>()
// boolean isDuplicateName = false;
if (empList != null) {
TSalaryEmployee es;
// 筛选人员,添加判断:非在职,或开户行为空,或 结算主体等于选择的结算主体且在职,都可以存入Map优先备用
......@@ -226,12 +227,12 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
es = empIdCardMap.get(e.getEmpIdcard());
if (es == null || (e.getDeptId().equals(settleDepart) && Common.isNotNull(e.getBankProvince()))) {
empIdCardMap.put(e.getEmpIdcard(), e);
empNameMap.put(e.getEmpName().replace(" ", ""), e);
//empNameMap.put(e.getEmpName().replace(" ", ""), e);
}
}
if (empNameMap.size() == empIdCardMap.size()) {
/*if (empNameMap.size() == empIdCardMap.size()) {
isDuplicateName = true;
}
}*/
}
// 自有员工结算主体id,新员工使用
Map<String, Integer> ownDeptMap = tOwnDeptService.getOwnDeptMap();
......@@ -269,7 +270,7 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
Map<String, String> bankMap = tBankSetService.getBankMap(null);
util1.getJsonStringToList(user, vo, dept, configSalary, salaryConfigMap, isMustMap,
empIdCardMap, empNameMap, isDuplicateName, checkListY, invoiceTitle,
empIdCardMap, checkListY, invoiceTitle,
employeeService, checkMap, specialMap, ownEmployeeMap, ownDeptMap, tSalaryAccountService, bankMap);
List<TSalaryAccountVo> saList = util1.getEntityList();
......
......@@ -60,8 +60,8 @@ public class SalaryAccountUtil implements Serializable {
* @param configSalary 当前项目下的配置(结算月等
* @param salaryConfigMap 客户原表-工资模板配置Map
* @param empIdCardMap 当前项目下的员工Map
* @param empNameMap 当前项目下的员工Map
* @param isDuplicateName false:有重名(当前项目下的员工),则不可用姓名查找,必须含有身份证号列
* empNameMap 当前项目下的员工Map 2025-9-12 10:06:42 倩倩说不能根据姓名找人
* isDuplicateName false:有重名(当前项目下的员工),则不可用姓名查找,必须含有身份证号列
* repeatFlag 默认 0:不允许重复导入已存在系统内的数据;1:允许重复导入
* @param ownEmployeeMap 自有员工所在项目Map
* @Description: 将jsonStr数据源的数据导入到 List<TSalaryAccount>
......@@ -71,7 +71,7 @@ public class SalaryAccountUtil implements Serializable {
**/
public void getJsonStringToList(YifuUser user, SalaryUploadParamVo vo, TSettleDomainSelectVo dept
, TConfigSalary configSalary, Map<String, TSalaryConfigStandard> salaryConfigMap, Map<String, Boolean> isMustMap
, Map<String, TSalaryEmployee> empIdCardMap, Map<String, TSalaryEmployee> empNameMap, boolean isDuplicateName
, Map<String, TSalaryEmployee> empIdCardMap
, List<String> checkListY, String invoiceTitle, TSalaryEmployeeService tSalaryEmployeeService
, Map<String, Integer> checkMap, Map<String, BigDecimal> specialMap, Map<String, Integer> ownEmployeeMap
, Map<String, Integer> ownDeptMap, TSalaryAccountService tSalaryAccountService, Map<String, String> bankMap) {
......@@ -274,9 +274,9 @@ public class SalaryAccountUtil implements Serializable {
}
if (SalaryConstants.EMP_NAME.equals(dbFiedName)) {
empName = cellValueStr = cellValueStr.replace(" ", "");
if (isDuplicateName) {
/*if (isDuplicateName) {
emp = empNameMap.get(empName);
}
}*/
newEmp.setEmpName(empName);
}
......@@ -286,6 +286,8 @@ public class SalaryAccountUtil implements Serializable {
entity.setIsNewEmployee(CommonConstants.ONE_STRING);
}
if (SalaryConstants.ID_NUMBER.equals(dbFiedName)) {
// 有身份证,按身份证查找人
emp = null;
if (checkIdNumberMap.get(cellValueStr) == null) {
checkIdNumberMap.put(cellValueStr, (i + dataRow));
} else {
......
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