|
@@ -415,9 +415,9 @@ public class TaskWorkNode {
|
|
|
}
|
|
|
msgUtil.pushToNextMq(taskNode,3);
|
|
|
}else{
|
|
|
-
|
|
|
- String zoneType = (null == msgUtil.redis_get(ParameterKey.PARAMETERS)? "": ((Map<String,String>)msgUtil.redis_get(ParameterKey.PARAMETERS)).get(ParameterKey.ZONE_TYPE).toString());
|
|
|
- if(zoneType.equals(ParameterKey.ZONE_YJ)){
|
|
|
+ /**
|
|
|
+ String zoneType = (null == msgUtil.redis_get(ParameterKey.PARAMETERS)? "": ((Map<String,String>)msgUtil.redis_get(ParameterKey.PARAMETERS)).get(ParameterKey.ZONE_TYPE).toString());
|
|
|
+ if(zoneType.equals(ParameterKey.ZONE_YJ)){
|
|
|
if("3".equals(taskNode.getNodeType()) || "5".equals(taskNode.getNodeType())){
|
|
|
// 云箭三坐标启动不由总控系统发起,节点跳过执行
|
|
|
specialCallBackMyselfFlag = true;
|
|
@@ -428,10 +428,19 @@ public class TaskWorkNode {
|
|
|
ret.put("result","true");
|
|
|
returnData = ret.toJSONString();
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
- // 打标业务无需放
|
|
|
- if("打标业务".equals(resourceBusiness.getName()) && "SendServoStacker".equals(method)){
|
|
|
+ } **/
|
|
|
+
|
|
|
+ if(resourceBusiness.getName().indexOf("三坐标")>-1 && "SendServoStacker".equals(method)){
|
|
|
+ // 判断三坐标质检或者三坐标偏置量检测 假放节点
|
|
|
+ specialCallBackMyselfFlag = true;
|
|
|
+ String jsonParam = getRequestParam(conMap);
|
|
|
+ //缓存执行当前节点传参
|
|
|
+ msgUtil.redis_set(CacheKey.TASK_CURRENT_NODE_PARAMS + "_" + taskNode.getId(), jsonParam);
|
|
|
+ JSONObject ret = new JSONObject();
|
|
|
+ ret.put("result","true");
|
|
|
+ returnData = ret.toJSONString();
|
|
|
+ }else if("打标业务".equals(resourceBusiness.getName()) && "SendServoStacker".equals(method)){
|
|
|
+ // 打标业务无需放
|
|
|
specialCallBackMyselfFlag = true;
|
|
|
String jsonParam = getRequestParam(conMap);
|
|
|
//缓存执行当前节点传参
|
|
@@ -1414,9 +1423,8 @@ public class TaskWorkNode {
|
|
|
String paramKey = zZone.getNo() + "_plc";
|
|
|
String instructionUrl = (null == msgUtil.redis_get(ParameterKey.PARAMETERS)? "": ((Map<String,String>)msgUtil.redis_get(ParameterKey.PARAMETERS)).get(paramKey).toString());
|
|
|
String requestUrl = instructionUrl + "/api/" + "QueryThreeCoordinatesFreePos";
|
|
|
- // TODO 先写死测试
|
|
|
String canPutInfo = restTemplate.postForObject(requestUrl, formEntity, String.class);
|
|
|
- /*String canPutInfo ="{\"result\":\"L\"}";*/
|
|
|
+ logger.error("三坐标允许放{}", canPutInfo);
|
|
|
JSONObject canPutInfoObject = JSONObject.parseObject(canPutInfo);
|
|
|
if("false".equals(canPutInfoObject.getString("result"))){
|
|
|
targetList = null;
|