|
@ -16,6 +16,8 @@ import org.nl.acs.log.LokiLogType; |
|
|
import org.nl.acs.log.service.DeviceExecuteLogService; |
|
|
import org.nl.acs.log.service.DeviceExecuteLogService; |
|
|
import org.nl.acs.opc.DeviceAppService; |
|
|
import org.nl.acs.opc.DeviceAppService; |
|
|
import org.nl.acs.opc.DeviceAppServiceImpl; |
|
|
import org.nl.acs.opc.DeviceAppServiceImpl; |
|
|
|
|
|
import org.nl.acs.task.service.TaskService; |
|
|
|
|
|
import org.nl.acs.task.service.dto.TaskDto; |
|
|
import org.nl.modules.system.service.ParamService; |
|
|
import org.nl.modules.system.service.ParamService; |
|
|
import org.nl.modules.system.util.CodeUtil; |
|
|
import org.nl.modules.system.util.CodeUtil; |
|
|
import org.nl.modules.wql.util.SpringContextHolder; |
|
|
import org.nl.modules.wql.util.SpringContextHolder; |
|
@ -76,20 +78,20 @@ public class NDCAgvServiceImpl implements NDCAgvService { |
|
|
if (StrUtil.equals(paramService.findByCode(AcsConfig.FORKAGV).getValue(), "1")) { |
|
|
if (StrUtil.equals(paramService.findByCode(AcsConfig.FORKAGV).getValue(), "1")) { |
|
|
String instcode = inst.getInstruction_code(); |
|
|
String instcode = inst.getInstruction_code(); |
|
|
|
|
|
|
|
|
String start_height_str = inst.getStart_height(); |
|
|
TaskService taskService = SpringContextHolder.getBean(TaskService.class); |
|
|
String next_height_str = inst.getNext_height(); |
|
|
TaskDto task = taskService.findByCodeFromCache(inst.getTask_code()); |
|
|
|
|
|
int start_height = Integer.parseInt(task.getStart_height()); |
|
|
|
|
|
int next_height = Integer.parseInt(task.getNext_height()); |
|
|
int type; |
|
|
int type; |
|
|
if (StrUtil.isNotBlank(start_height_str) && StrUtil.isNotBlank(next_height_str)) { |
|
|
if (start_height != 0 && next_height != 0) { |
|
|
type = 1; |
|
|
type = 1; |
|
|
} else if (StrUtil.isNotBlank(start_height_str)) { |
|
|
} else if (start_height != 0) { |
|
|
type = 2; |
|
|
type = 2; |
|
|
} else if (StrUtil.isNotBlank(next_height_str)) { |
|
|
} else if (next_height != 0) { |
|
|
type = 3; |
|
|
type = 3; |
|
|
} else { |
|
|
} else { |
|
|
type = 4; |
|
|
type = 4; |
|
|
} |
|
|
} |
|
|
int start_height = Integer.parseInt(start_height_str); |
|
|
|
|
|
int next_height = Integer.parseInt(next_height_str); |
|
|
|
|
|
|
|
|
|
|
|
int priority = Integer.parseInt(inst.getPriority()) + 128; |
|
|
int priority = Integer.parseInt(inst.getPriority()) + 128; |
|
|
DeviceAppService appService = SpringContextHolder.getBean(DeviceAppServiceImpl.class); |
|
|
DeviceAppService appService = SpringContextHolder.getBean(DeviceAppServiceImpl.class); |
|
|