| | |
| | | .orderByAsc(Sta::getStaNo) |
| | | ); |
| | | for (Sta sta : list) { |
| | | resultList.add(new ConveyorQueryResult(sta.getStaNo(), Boolean.TRUE)); |
| | | resultList.add(new ConveyorQueryResult(sta.getStaNo() |
| | | , staService.hasWorkingAgv(sta.getId()))); |
| | | } |
| | | } else { |
| | | for (String staNo : staNos) { |
| | | Sta sta = staService.selectByStaNo(staNo); |
| | | if (null == sta) { |
| | | if (null == sta || !sta.getStatus().equals(StatusType.ENABLE.val)) { |
| | | resultList.add(new ConveyorQueryResult(staNo, Boolean.FALSE)); |
| | | continue; |
| | | } |
| | | resultList.add(new ConveyorQueryResult(staNo, Boolean.TRUE)); |
| | | resultList.add(new ConveyorQueryResult(staNo |
| | | , staService.hasWorkingAgv(sta.getId()))); |
| | | } |
| | | } |
| | | |