| | |
| | | private WrkMastStaService wrkMastStaService; |
| | | @Autowired |
| | | private SlaveWmsParameterProperties slaveWmsParameterProperties; |
| | | @Autowired |
| | | private WrkMastService wrkMastService; |
| | | |
| | | // @Scheduled(cron = "0/3 * * * * ? ") |
| | | // private void execute(){//自动调空板出库 2楼码垛位置 |
| | |
| | | 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); |
| | | } |
| | | } |
| | |
| | | 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){ |
| | | 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); |
| | | } |
| | | } |
| | |
| | | if (!Cools.isEmpty(config) && !Cools.isEmpty(config.getValue()) && config.getValue().equals("Y")){ |
| | | int loadIngCount = basDevpService.selectCount(new EntityWrapper<BasDevp>().ge("dev_no", 422).le("dev_no", devNo).eq("loading", "Y")); |
| | | int count = 20; |
| | | 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); |
| | | } |
| | | } |