| | |
| | | } |
| | | |
| | | // area limit |
| | | List<String> areaCodeList = agvAreaDispatcher.getAreaCodeListByAgvNo(agvService.getAgvNo(agvId)); |
| | | if (Cools.isEmpty(areaCodeList)) { |
| | | funcStaList.clear(); |
| | | } else { |
| | | funcStaList.removeIf(funcSta -> { |
| | | Code code = codeService.getCacheById(funcSta.getCode()); |
| | | if (Cools.isEmpty(code, code.getData())) { return true; } |
| | | return !areaCodeList.contains(code.getData()); |
| | | }); |
| | | } |
| | | // List<String> areaCodeList = agvAreaDispatcher.getAreaCodeListByAgvNo(agvService.getAgvNo(agvId)); |
| | | // if (Cools.isEmpty(areaCodeList)) { |
| | | // funcStaList.clear(); |
| | | // } else { |
| | | // funcStaList.removeIf(funcSta -> { |
| | | // Code code = codeService.getCacheById(funcSta.getCode()); |
| | | // if (Cools.isEmpty(code, code.getData())) { return true; } |
| | | // return !areaCodeList.contains(code.getData()); |
| | | // }); |
| | | // } |
| | | |
| | | if (!Cools.isEmpty(funcStaList)) { |
| | | Collections.shuffle(funcStaList); |