|
@@ -205,7 +205,13 @@ public class CacheRobotStrategy implements RobotStrategy {
|
|
|
return returnMap;
|
|
|
}
|
|
|
|
|
|
- TWorkpiece workpiece = workpieceList.stream().filter(item->!item.getTaskNodeId().equals(taskNode.getId())).collect(Collectors.toList()).get(0);
|
|
|
+ List<TWorkpiece> collect = workpieceList.stream().filter(item -> !item.getTaskNodeId().equals(taskNode.getId())).collect(Collectors.toList());
|
|
|
+ if(collect.isEmpty() || collect.size()==0){
|
|
|
+ returnMap.put("result", false);
|
|
|
+ return returnMap;
|
|
|
+ }
|
|
|
+ TWorkpiece workpiece = collect.get(0);
|
|
|
+
|
|
|
Object hcwStorgeFlag = msgUtil.redis_get(DemoCacheKey.YUNJIAN_CAMP + "_" + DemoLineConstant.YUNJIAN_TARGET_HCW_XBK_FLAG + workpiece.getTaskNodeId());
|
|
|
if(ObjectUtil.isEmpty(hcwStorgeFlag)){
|
|
|
Object hcwPriotyFlag = msgUtil.redis_get(DemoLineConstant.JQR_HCW_PART_PRIOTY_EXEC_FLAG + workpiece.getTaskNodeId());
|