|
@@ -980,7 +980,7 @@ public class TaskWorkNode {
|
|
|
String jqrHcwPartPriotyExec = (null == msgUtil.redis_get(DemoLineConstant.JQR_HCW_PART_PRIOTY_EXEC_FLAG + taskNode.getId())) ? "" : (String)msgUtil.redis_get(DemoLineConstant.JQR_HCW_PART_PRIOTY_EXEC_FLAG + taskNode.getId());
|
|
|
logger.info("节点{}是否存在当前缓存位上工件先放到目标设备标志{}",taskNode.getId(),jqrHcwPartPriotyExec);
|
|
|
if("1".equals(jqrHcwPartPriotyExec)){
|
|
|
- robotList = productionresourcePositionMapper.selectList(Wraps.<ProductionresourcePosition>lbQ().eq(ProductionresourcePosition::getResourceId,taskNode.getResourceId().toString()).eq(ProductionresourcePosition::getPointId,DemoLineConstant.DEMOLINE_RJQR_ZS).eq(ProductionresourcePosition::getStatus,"0"));
|
|
|
+ robotList = productionresourcePositionMapper.selectList(Wraps.<ProductionresourcePosition>lbQ().eq(ProductionresourcePosition::getResourceId,taskNode.getResourceId()).eq(ProductionresourcePosition::getPointId,DemoLineConstant.DEMOLINE_RJQR_ZS).eq(ProductionresourcePosition::getStatus,"0"));
|
|
|
}else{
|
|
|
robotList = productionresourcePositionService.getFreeProductionresourcePositionByIds(new String[]{taskNode.getResourceId().toString()});
|
|
|
}
|
|
@@ -1007,9 +1007,9 @@ public class TaskWorkNode {
|
|
|
targetStorge = returnMap.get("store") == null ? null : (Storge) returnMap.get("store");
|
|
|
|
|
|
if(null != targetStorge){
|
|
|
- jqrStorge = storgeService.getById(jqrMap.get(DemoLineConstant.DEMOLINE_RJQR_ZS).get(0).getStorgeId());
|
|
|
- jqrStorge.setCompleteBatchNo(task.getCompleteBatchNo());
|
|
|
- storgeService.lockStorge(jqrStorge, taskNode.getId());
|
|
|
+// jqrStorge = storgeService.getById(jqrMap.get(DemoLineConstant.DEMOLINE_RJQR_ZS).get(0).getStorgeId());
|
|
|
+// jqrStorge.setCompleteBatchNo(task.getCompleteBatchNo());
|
|
|
+// storgeService.lockStorge(jqrStorge, taskNode.getId());
|
|
|
|
|
|
//锁定目标库位
|
|
|
targetStorge.setCompleteBatchNo(task.getCompleteBatchNo());
|