| | |
| | | List<Workstation> workstationList = this.workstationService.list(Wrappers.<Workstation>lambdaQuery() |
| | | .eq(Workstation::getType, WorkstationTypeEnum.MACHINE.getCode()) |
| | | .eq(Workstation::getStatus, TrayEnum.StatusEnum.ACTIVATING.getStatus())); |
| | | /* |
| | | List<Workstation> workstationList = this.workstationService.list((Wrapper) ((LambdaQueryWrapper) Wrappers.lambdaQuery().eq((v0) -> { |
| | | return v0.getType(); |
| | | }, WorkstationTypeEnum.MACHINE.getCode())).eq((v0) -> { |
| | | return v0.getStatus(); |
| | | }, TrayEnum.StatusEnum.ACTIVATING.getStatus()));*/ |
| | | |
| | | if (Func.isEmpty(workstationList)) { |
| | | return wcsList.stream().map(c -> { |
| | | return DeviceStatusStatisticsVO.builder().status(c.getCode()).statusName(c.getName()).deviceNum(0L).build(); |
| | |
| | | |
| | | Set<String> wIds = workstationList.stream().map(Workstation::getId).map(String::valueOf).collect(Collectors.toSet()); |
| | | |
| | | //下面是查询设备的最新状态值 |
| | | //deviceMap key为wcs的code值,value是设备数量(该状态的) |
| | | Map<String, Long> deviceMap = wIds.stream().map(wId -> { |
| | | |