mirror of
https://gitee.com/guchengwuyue/crm.git
synced 2026-07-07 06:15:20 +08:00
修复下属问题为空添加一个默认值
This commit is contained in:
@ -41,7 +41,11 @@ public class AdminUserApiImpl implements AdminUserApi {
|
||||
@Override
|
||||
public List<Long> getUserListBySubordinateIds(Long id) {
|
||||
List<AdminUserRespDTO> adminUserRespDTOS = getUserListBySubordinate(id);
|
||||
return adminUserRespDTOS.stream().map(AdminUserRespDTO::getId).collect(Collectors.toList());
|
||||
List<Long> ids = adminUserRespDTOS.stream().map(AdminUserRespDTO::getId).collect(Collectors.toList());
|
||||
if(ids.isEmpty()){
|
||||
ids.add(-99L);
|
||||
}
|
||||
return ids;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user