| | |
| | | MachineDto machineDto = new MachineDto(); |
| | | machineDto.setLocationObjIds(boxIds.toArray(new String[boxIds.size()])); |
| | | machineDto.setCommunityId(reqJson.getString("communityId")); |
| | | machineDto.setDirection(reqJson.getString("direction")); |
| | | int count = machineInnerServiceSMOImpl.queryMachinesCount(machineDto); |
| | | |
| | | if (count > 0) { |
| | | List<MachineDto> machineDtos = machineInnerServiceSMOImpl.queryMachines(machineDto); |
| | | refreshMachineLocation(machineDtos); |
| | | machines = machineInnerServiceSMOImpl.queryMachines(machineDto); |
| | | refreshMachineLocation(machines); |
| | | } else { |
| | | machines = new ArrayList<>(); |
| | | } |