|
@@ -533,8 +533,11 @@ public class PurchaseServiceImpl extends ServiceImpl<PurchaseMapper, Purchase>
|
|
|
@Override
|
|
|
public List<SysUser> getPurchaseUserList() {
|
|
|
List<Long> createUserIds = listObject(Purchase::getCreateUser, q -> q.groupBy(Purchase::getCreateUser));
|
|
|
- List<SysUser> listByUserId = userService.getListByUserId(createUserIds);
|
|
|
- listByUserId.forEach(item -> item.setPassword(null));
|
|
|
- return listByUserId;
|
|
|
+ if (ObjectUtils.isEmpty(createUserIds)) {
|
|
|
+ return new ArrayList<>();
|
|
|
+ }
|
|
|
+ List<SysUser> userList = userService.getListByUserId(createUserIds);
|
|
|
+ userList.forEach(item -> item.setPassword(null));
|
|
|
+ return userList;
|
|
|
}
|
|
|
}
|