自动化立体仓库 - WMS系统
zyx
2024-03-27 0cdbbb60b9549be1c99ff7d5a37936dadac61649
src/main/java/com/zy/asrs/task/AgvWrkMastScheduler.java
@@ -75,7 +75,7 @@
    putaway:上架
    定时处理AGV工作档中工作状态为201.生成入库任务ID 且(出库类型为 53.拣料再入库 || 1.入库 || 10.空板入库栽 || 57.盘点再入库)的数据
     */
    @Scheduled(cron = "0/10 * * * * ? ")
    //@Scheduled(cron = "0/10 * * * * ? ")
    public void startPutwayWrk(){
        List<AgvWrkMast> agvWrkMastList = agvWrkMastService.selectPage(new Page<>(1, 50)
                ,new EntityWrapper<AgvWrkMast>()
@@ -86,11 +86,13 @@
                .or().eq("io_type", 57)).getRecords();
        if(!Cools.isEmpty(agvWrkMastList)){
            try {
                ReturnT<String> returnT = agvWrkMastHandler.startPutWayWrk(agvWrkMastList);
            } catch (IOException e) {
                log.error(e.getMessage());
            }
            agvWrkMastList.forEach(agvWrkMast -> {
                try {
                    agvWrkMastHandler.startPutWayWrk(agvWrkMast);
                } catch (IOException e) {
                    log.error(e.getMessage());
                }
            });
        }
    }
@@ -103,7 +105,7 @@
        List<AgvWrkMast> agvWrkMastList = agvWrkMastService.selectPage(new Page<>(1, 50)
                ,new EntityWrapper<AgvWrkMast>()
                        .eq("wrk_sts", 21)
                        .like("loc_no","@")
                        //.like("loc_no","@")
                        .andNew().eq("io_type", 101)
                        .or().eq("io_type", 103)
                        .or().eq("io_type", 11)
@@ -111,18 +113,20 @@
                        .or().eq("io_type", 107)).getRecords();
        if(!Cools.isEmpty(agvWrkMastList)){
            try {
                ReturnT<String> returnT = agvWrkMastHandler.startCarryWrk(agvWrkMastList);
            } catch (IOException e) {
                log.error(e.getMessage());
            }
            agvWrkMastList.forEach(agvWrkMast -> {
                try {
                    agvWrkMastHandler.startPutWayWrk(agvWrkMast);
                } catch (IOException e) {
                    log.error(e.getMessage());
                }
            });
        }
    }
    /*
    定时处理等待执行的任务 工作状态为21.生成出库任务 且目标库位中不含@字符
     */
    @Scheduled(cron = "0/10 * * * * ? ")
    //@Scheduled(cron = "0/10 * * * * ? ")
    public void dealWatiWrk(){
        List<AgvWrkMast> agvWrkMastList = agvWrkMastService.selectReadyAgvWrkMast();
        if(!Cools.isEmpty(agvWrkMastList)){