自动化立体仓库 - WMS系统
whycq
2024-05-29 b8f320c817c486c33613ca196ceab7c8fd354bae
src/main/java/com/zy/asrs/task/AutoMoveScheduler.java
@@ -50,7 +50,26 @@
        List<AgvWrkMast> agvWrkMastList = agvWrkMastService.selectList(new EntityWrapper<AgvWrkMast>()
                .eq("wrk_sts", 22)
                .andNew().eq("io_type",108)
                        .eq("crn_no",2)
                        .orderBy("appe_time",true)
                );
        if (agvWrkMastList.isEmpty()) {
            return;
        }
        for (AgvWrkMast agvWrkMast : agvWrkMastList) {
            ReturnT<String> returnT = autoMoveHandler.start2(agvWrkMast);
        }
    }
    @Scheduled(cron = "0/2 * * * * ? ")
    private void execute5(){
        List<AgvWrkMast> agvWrkMastList = agvWrkMastService.selectList(new EntityWrapper<AgvWrkMast>()
                .eq("wrk_sts", 22)
                .andNew().eq("io_type",108)
                .eq("crn_no",3)
                .orderBy("appe_time",true)
        );
        if (agvWrkMastList.isEmpty()) {
            return;
        }
@@ -77,7 +96,7 @@
    }
    // 空板自动回库  库位-接驳点
    @Scheduled(cron = "0/2 * * * * ? ")
    //@Scheduled(cron = "0/2 * * * * ? ")
    private void autoEmptyBack(){
        // 查询 不为1楼的空货架
        List<AgvLocMast> agvLocMasts = agvLocMastService.selectList(
@@ -93,13 +112,13 @@
        }
    }
    // 空板自动回库  接驳点 - 1楼库位
    @Scheduled(cron = "0/2 * * * * ? ")
    //@Scheduled(cron = "0/2 * * * * ? ")
    private void autoEmptyBack3(){
        // 工作档为201 且 入出库类型为109
        List<AgvWrkMast> agvWrkMastList = agvWrkMastService.selectList(new EntityWrapper<AgvWrkMast>()
                .eq("wrk_sts", 201)
                .eq("loc_no","")
                .or().eq("io_type",109)
                .eq("io_type",109)
                .or().eq("io_type",112));
        if (agvWrkMastList.isEmpty()) {
            return;
@@ -110,7 +129,7 @@
    }
    // 空板自动回库
    //@Scheduled(cron = "0/2 * * * * ? ")
    @Scheduled(cron = "0/2 * * * * ? ")
    private void autoEmptyBack2(){
        // 查询 不为1楼的空货架
        List<AgvLocMast> agvLocMasts = agvLocMastService.selectList(