|
@@ -251,7 +251,7 @@ public class RobotNodeServiceImpl implements NodeOperationService {
|
|
|
List<String> meterails = agvStationMeterails.stream().map(p -> p.getGoodsType()).collect(Collectors.toList());
|
|
|
agvStartStationStorge = storgeService.getById(startProductionresourcePosition.getStorgeId());
|
|
|
// 有托板但是没有托盘认为可放
|
|
|
- if(meterails.contains("5") && !meterails.contains("2") && agvStartStationStorge.getStatus().equals("1")){
|
|
|
+ if(meterails.contains("5") && !meterails.contains("2") && agvStartStationStorge.getStatus().equals("1") && "1".equals(agvStartStationStorge.getLockStatus())){
|
|
|
startAgvStation = agvStation;
|
|
|
break;
|
|
|
}
|
|
@@ -267,8 +267,14 @@ public class RobotNodeServiceImpl implements NodeOperationService {
|
|
|
List<StockInfo> agvStationMeterails = stockInfoMapper.selectList(Wraps.<StockInfo>lbQ().eq(StockInfo::getStorgeId,endProductionresourcePosition.getStorgeId()));
|
|
|
List<String> meterails = agvStationMeterails.stream().map(p -> p.getGoodsType()).collect(Collectors.toList());
|
|
|
agvEndStationStorge = storgeService.getById(endProductionresourcePosition.getStorgeId());
|
|
|
- // 有托板但是没有托盘认为可放
|
|
|
- if(meterails.contains("5") && !meterails.contains("2") && agvEndStationStorge.getStatus().equals("1")){
|
|
|
+// // 有托板但是没有托盘认为可放
|
|
|
+// if(meterails.contains("5") && !meterails.contains("2") && agvEndStationStorge.getStatus().equals("1")){
|
|
|
+// endAgvStation = agvStation;
|
|
|
+// break;
|
|
|
+// }
|
|
|
+
|
|
|
+ // 终点接驳位任何东西都不能有
|
|
|
+ if(meterails.size() == 0 && "1".equals(agvEndStationStorge.getLockStatus())){
|
|
|
endAgvStation = agvStation;
|
|
|
break;
|
|
|
}
|