适配汇通的二开,社保能跨扣缴义务人核算
This commit is contained in:
parent
c7313d2bed
commit
b4dfe2c740
|
|
@ -505,7 +505,7 @@ public class CalculateFormulaVarBO {
|
|||
// 社保福利数据
|
||||
Map<String, List<FormulaVarValue>> tempMap = new HashMap<>();
|
||||
welfareData.forEach(map -> {
|
||||
String key = map.getOrDefault("employeeId", StringUtils.EMPTY) + "_" + map.getOrDefault("taxAgentId", StringUtils.EMPTY);
|
||||
String key = String.valueOf(map.getOrDefault("employeeId", StringUtils.EMPTY));
|
||||
List<FormulaVarValue> formulaVarValues = tempMap.computeIfAbsent(key, k -> Lists.newArrayList());
|
||||
formulaVarValues.addAll(fieldNames.stream().map(fieldName -> {
|
||||
String fieldId = SalaryFormulaReferenceEnum.WELFARE.getValue()
|
||||
|
|
@ -518,7 +518,7 @@ public class CalculateFormulaVarBO {
|
|||
for (SalaryAcctEmployeePO salaryAcctEmployeePO : salaryAcctCalculateBO.getSalaryAcctEmployeePOS()) {
|
||||
List<FormulaVarValue> formulaVarValues = resultMap.computeIfAbsent(salaryAcctEmployeePO.getEmployeeId() + "_" + salaryAcctEmployeePO.getTaxAgentId(),
|
||||
k -> Lists.newArrayList());
|
||||
formulaVarValues.addAll(tempMap.getOrDefault(salaryAcctEmployeePO.getEmployeeId() + "_" + salaryAcctEmployeePO.getTaxAgentId(), Collections.emptyList()));
|
||||
formulaVarValues.addAll(tempMap.getOrDefault(String.valueOf(salaryAcctEmployeePO.getEmployeeId()), Collections.emptyList()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue