Browse Source

fx,代理后台不展示收入

master
nili 5 months ago
parent
commit
39750cfd23
  1. 2
      game-service/src/main/java/awesome/group/game/service/matrix/AdminService.java

2
game-service/src/main/java/awesome/group/game/service/matrix/AdminService.java

@ -207,7 +207,7 @@ public class AdminService {
List<MatrixAdmin> res = adminMapper.selectList(query);
List<MatrixAdminBo> data = res.stream().map(MatrixAdminBo::new).toList();
List<Integer> deviceOwners = data.stream().filter(x -> x.getRole() == DEVICE_OWNER).map(MatrixAdminBo::getId).toList();
List<Integer> deviceOwners = data.stream().filter(x -> x.getRole() == DEVICE_OWNER || x.getRole() == PROXY).map(MatrixAdminBo::getId).toList();
Map<Integer, OverviewBo> overviewBoMap = deviceService.incomeOverview(deviceOwners);
data.forEach(x -> x.overview = overviewBoMap.get(x.getId()));
return data;

Loading…
Cancel
Save