自动化立体仓库 - WMS系统
#
lsh
2024-10-24 dd9f037d357e5693f052eb7f5fbfc35fabeeee17
src/main/java/com/zy/asrs/task/BareBoardScheduler.java
@@ -93,6 +93,12 @@
            Integer devNo = 173;
            Config config = configService.selectOne(new EntityWrapper<Config>().eq("code","bareBoard172"));
            if (!Cools.isEmpty(config) && !Cools.isEmpty(config.getValue()) && config.getValue().equals("Y")){
                BasDevp basDevp = basDevpService.selectById(160);
                if (basDevp.getLoading().equals("Y")
                        || !basDevp.getAutoing().equals("Y")
                        || (!Cools.isEmpty(basDevp.getWrkNo()) && basDevp.getWrkNo()!=0) ){
                    return;
                }
                int loadIngCount = basDevpService.selectCount(new EntityWrapper<BasDevp>().ge("dev_no", 160).le("dev_no", devNo).eq("loading", "Y"));
                int count = 10;
                int wrkCount = wrkMastService.selectCount(new EntityWrapper<WrkMast>().eq("io_type", 110).eq("sta_no", devNo).eq("wrk_sts",11L));
@@ -104,12 +110,18 @@
    }
    @Scheduled(cron = "0/3 * * * * ? ")
    private void execute3(){//自动调空板出库 煜星二楼小料箱  172
    private void execute3(){//自动调空板出库 煜星二楼小料箱  272
        if (slaveWmsParameterProperties.isAutomaticFillingBoardStaNosBoolean()){
            Integer devNo = 272;
            Config config = configService.selectOne(new EntityWrapper<Config>().eq("code","bareBoard272"));
            if (!Cools.isEmpty(config) && !Cools.isEmpty(config.getValue()) && config.getValue().equals("Y")){
                int loadIngCount = basDevpService.selectCount(new EntityWrapper<BasDevp>().ge("dev_no", 266).le("dev_no", devNo).eq("loading", "Y"));
                BasDevp basDevp = basDevpService.selectById(265);
                if (basDevp.getLoading().equals("Y")
                        || !basDevp.getAutoing().equals("Y")
                        || (!Cools.isEmpty(basDevp.getWrkNo()) && basDevp.getWrkNo()!=0) ){
                    return;
                }
                int loadIngCount = basDevpService.selectCount(new EntityWrapper<BasDevp>().ge("dev_no", 265).le("dev_no", devNo).eq("loading", "Y"));
                int count = 5;
                int wrkCount = wrkMastService.selectCount(new EntityWrapper<WrkMast>().eq("io_type", 110).eq("sta_no", devNo).eq("wrk_sts",11L));
                if (loadIngCount+wrkCount<count){
@@ -125,8 +137,14 @@
            Integer devNo = 445;
            Config config = configService.selectOne(new EntityWrapper<Config>().eq("code","bareBoard445"));
            if (!Cools.isEmpty(config) && !Cools.isEmpty(config.getValue()) && config.getValue().equals("Y")){
                BasDevp basDevp = basDevpService.selectById(422);
                if (basDevp.getLoading().equals("Y")
                        || !basDevp.getAutoing().equals("Y")
                        || (!Cools.isEmpty(basDevp.getWrkNo()) && basDevp.getWrkNo()!=0) ){
                    return;
                }
                int loadIngCount = basDevpService.selectCount(new EntityWrapper<BasDevp>().ge("dev_no", 422).le("dev_no", devNo).eq("loading", "Y"));
                int count = 20;
                int count = 15;
                int wrkCount = wrkMastService.selectCount(new EntityWrapper<WrkMast>().eq("io_type", 110).eq("sta_no", devNo).eq("wrk_sts",11L));
                if (loadIngCount+wrkCount<count){
                    bareBoardHandler.startYx(devNo,count);