扣缴义务人和账套的人员的人员状态

This commit is contained in:
钱涛 2024-11-01 14:27:47 +08:00
parent 391fa6ebd9
commit 7fd0f95802
1 changed files with 15 additions and 1 deletions

View File

@ -125,7 +125,7 @@ public class SalarySobRangeBO {
.target(salarySobRangePO.getTarget())
.targetName(buildTargetName(salarySobRangePO, employeeComInfoMap, departmentComInfoMap, subCompanyComInfoMap, positionComInfoMap))
.employeeStatus(employeeStatusesStr)
.status(salarySobRangePO.getEmployeeStatuses())
.status(parseByStatuses(salarySobRangePO.getEmployeeStatuses()))
.build();
})
.collect(Collectors.toList());
@ -151,6 +151,20 @@ public class SalarySobRangeBO {
return sb.toString();
}
private static String parseByStatuses(String employeeStatuses) {
String[] split = employeeStatuses.split(",");
List<Integer> enumsList = Arrays.asList(split).stream().map(item -> Integer.valueOf(item)).collect(Collectors.toList());
List<SalaryEmployeeStatusEnum> salaryEmployeeStatusEnums = SalaryEmployeeStatusEnum.parseByValues(enumsList);
StringBuilder sb = new StringBuilder();
for (int i = 0; i < salaryEmployeeStatusEnums.size(); i++) {
sb.append(salaryEmployeeStatusEnums.get(i));
if (i + 1 != salaryEmployeeStatusEnums.size()) {
sb.append(",");
}
}
return sb.toString();
}
/**
* 解析薪资账套人员范围中对象的名称可能是人员名称部门名称岗位名称
*