显示扣缴义务人的角色

This commit is contained in:
钱涛 2024-08-02 10:10:04 +08:00
parent 4d51b6e57c
commit 9eea989bf2
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ public class TaxAgentBO {
map.put("id", e.getId());
map.put("name", e.getName());
map.put("employeeRange", "设置");
map.put("role", rolelistMap.getOrDefault(e.getId(), Collections.emptyList()));
map.put("role", rolelistMap.getOrDefault(e.getId(), Collections.emptyList()).stream().map(AuthRolePO::getName).collect(Collectors.joining(",")));
if (isDevolution) {
List<Long> empIds = taxAgentAdmins.stream().filter(t -> t.getTaxAgentId().equals(e.getId())).map(TaxAgentAdminPO::getEmployeeId).collect(Collectors.toList());
List<String> admins = adminList.stream().filter(a -> empIds.contains(a.getEmployeeId())).map(DataCollectionEmployee::getUsername).collect(Collectors.toList());