#
vincentlu
7 天以前 9741bd10f294f85fd851e4564b33d107987f90b1
zy-acs-manager/src/main/java/com/zy/acs/manager/core/integrate/conveyor/ConveyorController.java
@@ -38,16 +38,18 @@
                    .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())));
            }
        }