|
|
@ -774,10 +774,10 @@ public class TaskServiceImpl implements TaskService, ApplicationAutoInitial { |
|
|
|
if (StrUtil.isEmpty(next_device_code)) { |
|
|
|
throw new BadRequestException("终点设备为空,无法生成指令。"); |
|
|
|
} |
|
|
|
if (StrUtil.isEmpty(start_device_code2)) { |
|
|
|
if (StrUtil.isEmpty(start_device_code2) && !"3".equals(acsTask.getTask_type())) { |
|
|
|
throw new BadRequestException("起点设备2为空,无法生成指令。"); |
|
|
|
} |
|
|
|
if (StrUtil.isEmpty(next_device_code2)) { |
|
|
|
if (StrUtil.isEmpty(next_device_code2) && !"3".equals(acsTask.getTask_type())) { |
|
|
|
throw new BadRequestException("终点设备为2空,无法生成指令。"); |
|
|
|
} |
|
|
|
List<Instruction> instructions = instructionService.queryAll("instruction_status < 2"); |
|
|
@ -840,10 +840,10 @@ public class TaskServiceImpl implements TaskService, ApplicationAutoInitial { |
|
|
|
if (ObjectUtils.isEmpty(nextdevice)) { |
|
|
|
throw new BadRequestException("终点设备编码 [" + next_device_code + "] 对应设备未找到,无法生成指令。"); |
|
|
|
} |
|
|
|
if (ObjectUtils.isEmpty(startdevice2)) { |
|
|
|
if (ObjectUtils.isEmpty(startdevice2) && !"3".equals(acsTask.getTask_type())) { |
|
|
|
throw new BadRequestException("起点设备2编码 [" + start_device_code + "] 对应设备未找到,无法生成指令。"); |
|
|
|
} |
|
|
|
if (ObjectUtils.isEmpty(nextdevice2)) { |
|
|
|
if (ObjectUtils.isEmpty(nextdevice2) && !"3".equals(acsTask.getTask_type())) { |
|
|
|
throw new BadRequestException("终点设备2编码 [" + next_device_code + "] 对应设备未找到,无法生成指令。"); |
|
|
|
} |
|
|
|
|
|
|
|