自动化立体仓库 - WMS系统
#
lsh
2024-07-15 b9bf1e17c9626aa618ee6c28a7764132a57b915f
src/main/java/com/zy/asrs/task/BareBoardScheduler.java
@@ -37,6 +37,8 @@
    private WrkMastStaService wrkMastStaService;
    @Autowired
    private SlaveWmsParameterProperties slaveWmsParameterProperties;
    @Autowired
    private WrkMastService wrkMastService;
//    @Scheduled(cron = "0/3 * * * * ? ")
//    private void execute(){//自动调空板出库 2楼码垛位置
@@ -93,7 +95,8 @@
            if (!Cools.isEmpty(config) && !Cools.isEmpty(config.getValue()) && config.getValue().equals("Y")){
                int loadIngCount = basDevpService.selectCount(new EntityWrapper<BasDevp>().ge("dev_no", 160).le("dev_no", devNo).eq("loading", "Y"));
                int count = 10;
                if (loadIngCount<count){
                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);
                }
            }
@@ -104,12 +107,13 @@
    private void execute3(){//自动调空板出库 煜星二楼小料箱  172
        if (slaveWmsParameterProperties.isAutomaticFillingBoardStaNosBoolean()){
            Integer devNo = 272;
            Config config = configService.selectOne(new EntityWrapper<Config>().eq("code","bareBoard172"));
            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"));
                int count = 5;
                if (loadIngCount<count+5){
                    bareBoardHandler.startYx(devNo,count);
                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+5);
                }
            }
        }
@@ -118,12 +122,13 @@
    @Scheduled(cron = "0/3 * * * * ? ")
    private void execute2(){//自动调空板出库 煜星一楼
        if (slaveWmsParameterProperties.isAutomaticFillingBoardStaNosBoolean()){
            Integer devNo = 448;
            Config config = configService.selectOne(new EntityWrapper<Config>().eq("code","bareBoard448"));
            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")){
                int loadIngCount = basDevpService.selectCount(new EntityWrapper<BasDevp>().ge("dev_no", 421).le("dev_no", devNo).eq("loading", "Y"));
                int count = 25;
                if (loadIngCount<count){
                int loadIngCount = basDevpService.selectCount(new EntityWrapper<BasDevp>().ge("dev_no", 422).le("dev_no", devNo).eq("loading", "Y"));
                int count = 20;
                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);
                }
            }