| | |
| | | List<Area> list = areaService.list(new LambdaQueryWrapper<Area>().eq(Area::getName, areaCode)); |
| | | Optional<Integer> max = list.stream().map(Area::getPriority).filter(Objects::nonNull).max(Integer::compareTo); |
| | | Integer priority = max.orElse(null); |
| | | if (Cools.isEmpty(priority)) { |
| | | if (Cools.isEmpty(priority) || priority == 0) { |
| | | // 入库 |
| | | this.runStaToLoc(agvModel, testAreaCodes, memo); |
| | | // 出库 |
| | | this.runLocToSta(agvModel, testAreaCodes, memo); |
| | | // 移库 |
| | | this.runLocToLoc(areaCode, agvModel, testAreaCodes, memo); |
| | | } else if (priority < 10) { |
| | | } else if (priority > 0 && priority < 10) { |
| | | // 出库 |
| | | this.runLocToSta(agvModel, testAreaCodes, memo); |
| | | // 移库 |