| | |
| | | |
| | | WaitPakin waitPakin = new WaitPakin(); |
| | | waitPakin.sync(mat); |
| | | // waitPakin.setBatch(matList.getBatch()); //木箱编码 //批次 唯一值 箱号 |
| | | waitPakin.setBatch(param.getBatch()); //木箱编码 //批次 唯一值 箱号 |
| | | // waitPakin.setModel(matList.getModel()); //卷号 唯一值 |
| | | // waitPakin.setBrand(param.getBoxType()); //木箱类型 |
| | | waitPakin.setZpallet(basDevp.getBarcode()); //托盘码 |
| | |
| | | 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; |
| | |
| | | private void execute2(){//自动调空板出库 煜星一楼 |
| | | if (slaveWmsParameterProperties.isAutomaticFillingBoardStaNosBoolean()){ |
| | | Integer devNo = 445; |
| | | Config config = configService.selectOne(new EntityWrapper<Config>().eq("code","bareBoard448")); |
| | | 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", 422).le("dev_no", devNo).eq("loading", "Y")); |
| | | int count = 20; |
| | |
| | | continue; |
| | | } |
| | | // 获取库位 |
| | | List<LocMast> locMasts = locMastService.selectList(new EntityWrapper<LocMast>().eq("loc_sts", "D").eq("crn_no", crnNo)); |
| | | List<LocMast> locMasts = locMastService.selectList(new EntityWrapper<LocMast>().eq("loc_sts", "D").eq("crn_no", crnNo).orderBy("lev1",true).orderBy("bay1",true)); |
| | | for (LocMast locMastS : locMasts){ |
| | | List<String> locNoList = new ArrayList<>(); |
| | | sign = true; |
| | |
| | | sign=false; |
| | | } |
| | | } |
| | | ArrayList<String> locArrayList = new ArrayList<>(); |
| | | for (String locNo : locNoList){ |
| | | if (!locArrayList.contains(locNo)){ |
| | | locArrayList.add(locNo); |
| | | } |
| | | } |
| | | if (sign) { |
| | | EmptyPlateOutParam param = new EmptyPlateOutParam(); |
| | | param.setOutSite(staNo); |
| | | param.setLocNos(locNoList); |
| | | param.setLocNos(locArrayList); |
| | | try{ |
| | | workService.emptyPlateOut(param, 9999L); |
| | | }catch (Exception e){ |
| | | log.error("二楼小料箱自动补空板失败!!异常原因:"+e); |
| | | log.error(staNo+"自动补空板失败!!异常原因:"+e); |
| | | } |
| | | return SUCCESS; |
| | | } |