| | |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | private void execute1(){//自动调空板出库 煜星二楼小料箱 172 |
| | | if (slaveWmsParameterProperties.isAutomaticFillingBoardStaNosBoolean()){ |
| | | 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")){ |
| | | int loadIngCount = basDevpService.selectCount(new EntityWrapper<BasDevp>().ge("dev_no", 160).le("dev_no", 172).eq("loading", "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){ |
| | | bareBoardHandler.startYx(172,count); |
| | | if (loadIngCount<count){ |
| | | bareBoardHandler.startYx(devNo,count); |
| | | } |
| | | } |
| | | } |
| | |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | private void execute2(){//自动调空板出库 煜星一楼 |
| | | if (slaveWmsParameterProperties.isAutomaticFillingBoardStaNosBoolean()){ |
| | | Integer devNo = 448; |
| | | Config config = configService.selectOne(new EntityWrapper<Config>().eq("code","bareBoard448")); |
| | | 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", 448).eq("loading", "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){ |
| | | bareBoardHandler.startYx(448,count); |
| | | if (loadIngCount<count){ |
| | | bareBoardHandler.startYx(devNo,count); |
| | | } |
| | | } |
| | | } |