扣缴义务人和账套的人员的人员状态
This commit is contained in:
parent
391fa6ebd9
commit
7fd0f95802
|
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
* 解析薪资账套人员范围中对象的名称(可能是人员名称、部门名称、岗位名称……)
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue