| | |
| | | */ |
| | | 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()) |
| | |
| | | if (staProtocol.isAutoing() && staProtocol.isLoading() |
| | | && staProtocol.isInEnable() |
| | | && !staProtocol.isEmptyMk() && (workNo == 0 || (workNo >= 9990 && workNo <= 9999)) |
| | | && staProtocol.getIsIn() == (short)1 |
| | | && staProtocol.isPakMk() |
| | | ) { |
| | | |