自动化立体仓库 - WMS系统
zyx
2024-04-01 a4cf12af1c9872b779d99816fccbde9cb4234761
src/main/java/com/zy/asrs/task/AgvWrkMastScheduler.java
@@ -117,8 +117,25 @@
                        .or().eq("io_type", 107)).getRecords();
        if(!Cools.isEmpty(agvWrkMastList)){
            List<String> devNos = new ArrayList<>();
            agvWrkMastList.forEach(agvWrkMast -> {
                try {
                    //过滤该批工作档中重复的出站点
                    if (devNos.contains(agvWrkMast.getLocNo())){
                        return;
                    }
                    devNos.add(agvWrkMast.getLocNo());
                    //检测当前工作任务中的站点是否已有有作业中的任务
                    AgvWrkMast agvWrkMastWorking = agvWrkMastService.selectOne(new EntityWrapper<AgvWrkMast>()
                            .eq("loc_no", agvWrkMast.getLocNo())
                            .ge("loc_sts", 202L));
                    if(!Cools.isEmpty(agvWrkMastWorking)){
                        return;
                    }
                    agvWrkMastHandler.startPutWayWrk(agvWrkMast);
                } catch (IOException e) {
                    log.error(e.getMessage());