This commit is contained in:
loujf
2022-07-20 10:39:50 +08:00
parent 1d3d164dfc
commit a2aea44177

View File

@@ -1288,9 +1288,12 @@ public class InstructionServiceImpl implements InstructionService, ApplicationAu
instdto.setExecute_device_code(dto.getNext_device_code());
logServer.log(instdto.getTask_code(),"finishAndCreateNextInst","",JSONObject.fromObject(dto).toString(),"","",now,instdto.getCarno());
String type = "";
List<RouteLineDto> routeLineDtoList = routeLineService.getShortPathLines(instdto.getStart_device_code(), instdto.getNext_device_code(), instdto.getRoute_plan_code());
String type = routeLineDtoList.get(0).getType();
if (type.equals("0")) {
for (int i = 0; i < routeLineDtoList.size(); i++) {
type = routeLineDtoList.get(i).getType();
}
if (type.equals("0") && acsTask.getTask_type().equals("2")) {
//查询关联设备数量
List<String> deviceList = deviceService.queryLinkDeviceByCode(next_device_code);
//查询此终点的指令数量