|
@@ -214,6 +214,7 @@ public class RobotNodeServiceImpl2 implements NodeOperationService {
|
|
|
zoneId = zoneProductionresource.getZoneId();
|
|
|
zZone = zoneService.getById(zoneId);
|
|
|
zoneName = zZone.getName();
|
|
|
+ instructionUrl = (null == msgUtil.redis_get(ParameterKey.PARAMETERS)? "": ((Map<String,String>)msgUtil.redis_get(ParameterKey.PARAMETERS)).get(zZone.getNo() + "_plc").toString());
|
|
|
|
|
|
Productionresource productionresource = productionresourceBizMapper.selectById(taskNode.getResourceId());
|
|
|
if(productionresource.getCode().contains("jqr2")){
|
|
@@ -225,6 +226,7 @@ public class RobotNodeServiceImpl2 implements NodeOperationService {
|
|
|
|
|
|
robotInfo = robotStrategy.robotInfo(taskNode, zoneName);
|
|
|
bomzZone = zoneService.getById(zoneId);
|
|
|
+
|
|
|
/*
|
|
|
String moduleName = dataMap.get("moduleName") == null ? "" : dataMap.get("moduleName").toString();
|
|
|
String robotType = dataMap.get("robotType") == null ? "" : dataMap.get("robotType").toString();
|
|
@@ -442,8 +444,7 @@ public class RobotNodeServiceImpl2 implements NodeOperationService {
|
|
|
}
|
|
|
|
|
|
// 需要节点所使用的设备,先从数据库查询,如果没有则取map中的数据
|
|
|
- robotList = productionresourcePositionService.list(Wraps.<ProductionresourcePosition>lbQ().eq(ProductionresourcePosition::getResourceId, taskNode.getResourceId()));
|
|
|
-
|
|
|
+ robotList = productionresourcePositionService.getFreeProductionresourcePositionByIds(new String[]{taskNode.getResourceId().toString()});
|
|
|
ProductionresourcePosition po = logical(robotList,flikustockInfos,taskNode);
|
|
|
if(po == null) {
|
|
|
dataMap.put("result", false);
|