| | |
| | | */ |
| | | public synchronized void generateInboundWrk() { |
| | | try { |
| | | List<Task> tasks = taskService.list(new LambdaQueryWrapper<Task>().eq(Task::getTaskCtg,7)); |
| | | if (!Cools.isEmpty(tasks)){ |
| | | return; |
| | | } |
| | | // 根据输送线plc遍历 |
| | | List<Device> list = deviceService.list(new LambdaQueryWrapper<Device>() |
| | | .eq(Device::getDeviceType, DeviceCtgType.CONVEYOR.val()) |
| | |
| | | } |
| | | |
| | | //搜索其他楼层充电桩 |
| | | List<ShuttleChargeSta> list2 = shuttleChargeStaService.list(new LambdaQueryWrapper<ShuttleChargeSta>() |
| | | .notIn(ShuttleChargeSta::getDeviceLev, lev) |
| | | .eq(ShuttleChargeSta::getStatus, 1)); |
| | | if (!list2.isEmpty()) { |
| | | allChargeLoc.addAll(list2); |
| | | } |
| | | // List<ShuttleChargeSta> list2 = shuttleChargeStaService.list(new LambdaQueryWrapper<ShuttleChargeSta>() |
| | | // .notIn(ShuttleChargeSta::getDeviceLev, lev) |
| | | // .eq(ShuttleChargeSta::getStatus, 1)); |
| | | // if (!list2.isEmpty()) { |
| | | // allChargeLoc.addAll(list2); |
| | | // } |
| | | |
| | | //没有找到充电桩 |
| | | if (allChargeLoc.isEmpty()) { |