| | |
| | | } |
| | | |
| | | // area limit |
| | | List<String> areaCodeList = agvAreaDispatcher.getCodesByAgvId(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 (agvAreaDispatcher.isAgvExistsInAnyArea(agvId)) { |
| | | List<String> areaCodeList = agvAreaDispatcher.getCodesByAgvId(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)) { |