自动化立体仓库 - WMS系统
#
tqs
2024-05-31 5e4d17f6a07256743a7708d8a3f5ee63fddbb040
src/main/java/com/zy/asrs/task/AgvWrkMastScheduler.java
@@ -50,15 +50,22 @@
                .andNew().eq("io_type",53)
                .or().eq("io_type",1)
                .or().eq("io_type",57)
                .or().eq("io_type",58)
                .or().eq("io_type",10)
                .or().eq("io_type",11)
                .or().eq("io_type",12)
                .or().eq("io_type",108)
                .or().eq("io_type",109)
                .or().eq("io_type",112));
                .or().eq("io_type",111)
                .or().eq("io_type",112)
                .or().eq("io_type",113));
        if(!Cools.isEmpty(agvWrkMastList)){
            agvWrkMastList.stream().forEach(agvWrkMast -> {
                agvWrkMastHandler.completedPutWayWrk(agvWrkMast);
                try{
                    agvWrkMastHandler.completedPutWayWrk(agvWrkMast);
                } catch (Exception e){
                    log.error("工作号"+agvWrkMast.getWrkNo()+"定时处理AGV工作档中工作状态为205,处理失败:===》异常原因:"+e.getMessage());
                }
            });
        }
    }
@@ -74,10 +81,15 @@
                .or().eq("io_type",101));
        if(!Cools.isEmpty(agvWrkMastList)){
            agvWrkMastList.stream().forEach(agvWrkMast -> {
                ReturnT<String> returnT = agvWrkMastHandler.completedCarryWrk(agvWrkMast);
                try{
                    agvWrkMastHandler.completedCarryWrk(agvWrkMast);
                } catch (Exception e){
                    log.error("工作号"+agvWrkMast.getWrkNo()+"定时处理AGV工作档中工作状态为206,处理失败:===》异常原因:"+e.getMessage());
                }
            });
        }
    }
    /*
    定时处理AGV工作档中工作状态为206.出库完成 且 (101.出库 || 110.空板出库)
@@ -90,7 +102,11 @@
                .or().eq("io_type",101));
        if(!Cools.isEmpty(agvWrkMastList)){
            agvWrkMastList.stream().forEach(agvWrkMast -> {
                ReturnT<String> returnT = agvWrkMastHandler.completedCarryWrk2(agvWrkMast);
                try{
                    agvWrkMastHandler.completedCarryWrk2(agvWrkMast);
                } catch (Exception e){
                    log.error("工作号"+agvWrkMast.getWrkNo()+"定时处理AGV工作档中工作状态为206,处理失败:===》异常原因:"+e.getMessage());
                }
            });
        }
    }
@@ -109,18 +125,20 @@
                .or().eq("io_type", 1)
                .or().eq("io_type", 10)
                .or().eq("io_type", 57)
                .or().eq("io_type", 58)
                .or().eq("io_type", 11)
                .or().eq("io_type", 12)
                .or().eq("io_type", 109)
                .or().eq("io_type", 108)
                .or().eq("io_type", 112)).getRecords();
                .or().eq("io_type", 112)
                .or().eq("io_type", 113)).getRecords();
        if(!Cools.isEmpty(agvWrkMastList)){
            agvWrkMastList.forEach(agvWrkMast -> {
                try {
                try{
                    agvWrkMastHandler.startPutWayWrk(agvWrkMast);
                } catch (IOException e) {
                    log.error(e.getMessage());
                } catch (Exception e){
                    log.error("工作号"+agvWrkMast.getWrkNo()+"定时处理AGV工作档中工作状态为206,处理失败:===》异常原因:"+e.getMessage());
                }
            });
        }
@@ -162,7 +180,9 @@
                        .or().eq("io_type", 103)
                        .or().eq("io_type", 11)
                        .or().eq("io_type", 110)
                        .or().eq("io_type", 107)).getRecords();
                        .or().eq("io_type", 107)
                        .or().eq("io_type", 109)
                        .or().eq("io_type", 108)).getRecords();
        if(!Cools.isEmpty(agvWrkMastList)){
            List<String> devNos = new ArrayList<>();
@@ -186,15 +206,14 @@
                    
                    agvWrkMastWorking = agvWrkMastService.selectOne(new EntityWrapper<AgvWrkMast>()
                            .eq("source_loc_no",agvWrkMast.getLocNo())
                            .lt("loc_sts",204L));
                            .le("wrk_sts",204L));
                    if(!Cools.isEmpty(agvWrkMastWorking)){
                        return;
                    }
                    agvWrkMastHandler.startPutWayWrk(agvWrkMast);
                } catch (IOException e) {
                    log.error(e.getMessage());
                } catch (Exception e) {
                    log.error("搬运,统指出库、移库、点到点搬运等"+e.getMessage());
                }
            });
        }