|
@@ -808,7 +808,7 @@ public class RobotNodeServiceImpl implements NodeOperationService {
|
|
|
log.info("jrqHcwPartPoint={}", jrqHcwPartPoint);
|
|
|
if(jqrHcwStorgeTaskNodeResource.getPointId().equals(jrqHcwPartPoint)){
|
|
|
hasJqrhcwPartFlag = true;
|
|
|
- msgUtil.redis_set(DemoLineConstant.JQR_HCW_PART_PRIOTY_EXEC_FLAG + jqrHcwStorgeTaskNodeId,"1");
|
|
|
+ msgUtil.redis_set(DemoLineConstant.JQR_HCW_PART_PRIOTY_EXEC_FLAG + jqrHcwStorgeTaskNodeId,"1", 3, TimeUnit.DAYS);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
@@ -842,18 +842,18 @@ public class RobotNodeServiceImpl implements NodeOperationService {
|
|
|
Storge hcwStorge = (Storge)msgUtil.redis_get(DemoCacheKey.YUNJIAN_CAMP + "_" + YunjianConstant.YUNJIAN_HCW + taskNode.getId());
|
|
|
|
|
|
String uploadInfo = msgUtil.redis_get(DemoLineConstant.DEMOLINE_HEIDENHAIN_FILE_URL+"_"+task.getId())!=null? msgUtil.redis_get(DemoLineConstant.DEMOLINE_HEIDENHAIN_FILE_URL+"_"+task.getId()).toString(): null;
|
|
|
- Productionresource productionresource = productionresourceBizMapper.selectOne(Wraps.<Productionresource>lbQ().eq(Productionresource::getId,taskNode.getTargetResourceId()));
|
|
|
+ Productionresource productionresource = productionresourceBizMapper.selectOne(Wraps.<Productionresource>lbQ().eq(Productionresource::getId,task.getResourceId()));
|
|
|
if(StringUtils.isNotEmpty(uploadInfo)){
|
|
|
JSONObject jsonObject = JSONObject.parseObject(uploadInfo);
|
|
|
//异步发送哈默预处理编号
|
|
|
boolean bool = this.asyncPost(jsonObject);
|
|
|
- }else if(currentOrder.getSingleTaskFlag().equals("1") && productionresource.getModeSpecification().equals("HEIDENHAIN")){
|
|
|
- JSONObject jsonObject = new JSONObject();
|
|
|
- jsonObject.put("url", productionresource.getIp());
|
|
|
- jsonObject.put("port", productionresource.getPort());
|
|
|
- String defaultFileName = this.storagePath+"/common/2.h";
|
|
|
- jsonObject.put("fileName", defaultFileName.replace("/", "\\"));
|
|
|
- boolean bool = this.asyncPost(jsonObject);
|
|
|
+ }else if(currentOrder.getSingleTaskFlag().equals("1") && productionresource.getModeSpecification().equals("HEIDENHAIN") ){
|
|
|
+ JSONObject jsonObject = new JSONObject();
|
|
|
+ jsonObject.put("url", productionresource.getIp());
|
|
|
+ jsonObject.put("port", productionresource.getPort());
|
|
|
+ String defaultFileName = this.storagePath + "/common/2.h";
|
|
|
+ jsonObject.put("fileName", defaultFileName.replace("/", "\\"));
|
|
|
+ boolean bool = this.asyncPost(jsonObject);
|
|
|
}
|
|
|
|
|
|
Map locationMap = new HashMap();
|