fix : 申请任务先找指令
This commit is contained in:
@@ -443,13 +443,6 @@ public class TaskServiceImpl implements TaskService, ApplicationAutoInitial {
|
||||
}
|
||||
} else {
|
||||
if (StrUtil.equals(task.getTask_type(), "9") && StrUtil.isNotEmpty(task.getPut_device_code())) {
|
||||
// if(task.getNext_device_code().equals(device_code)
|
||||
// && StrUtil.equals(task.getTask_status(), "1")){
|
||||
// Instruction instruction = instructionService.findByTaskcodeAndStatus(task.getTask_code());
|
||||
// if (ObjectUtil.isNotEmpty(instruction)) {
|
||||
// list.add(task);
|
||||
// }
|
||||
// }
|
||||
Instruction instruction = instructionService.findByDeviceCodeFromCache(task.getNext_device_code());
|
||||
if (ObjectUtil.isNotEmpty(instruction)) {
|
||||
if (StrUtil.equals(instruction.getStart_device_code(), device_code)) {
|
||||
|
||||
Reference in New Issue
Block a user