| | |
| | | @Autowired |
| | | private MatService matService; |
| | | |
| | | @Value("mes.url") |
| | | @Value("${mes.url}") |
| | | private String mesUrl; |
| | | |
| | | @Value("mes.inPath") |
| | | @Value("${mes.inPath}") |
| | | private String inpath; |
| | | |
| | | @PostMapping("/pakin/loc/v1") |
| | |
| | | } |
| | | |
| | | /** |
| | | * 全板入库 |
| | | * 全板入库 |
| | | */ |
| | | @Transactional |
| | | public StartupDto startupFullPutStore(Integer devpNo, String barcode, LocTypeDto locTypeDto, List<WaitPakin> waitPakins) { |
| | |
| | | } |
| | | }else if(wrkMast.getStaNo()==209){ |
| | | testMast.setBarcode(wrkDetl.getMatnr()); |
| | | testMast.setChannel(locMast.getChannel()); |
| | | testMast.setLocNo(locMast.getLocNo()); |
| | | testMast.setUserId(wrkMast.getBarcode());//托盘码 |
| | | testMast.setAppeTime(now); |
| | |
| | | if (!locMastService.updateById(locMast)){ |
| | | throw new CoolException("改变库位状态失败"); |
| | | }else{ |
| | | // if (locMast.getRow1()<3){ |
| | | // //1.扫码上报 |
| | | // CombParam combParam = new CombParam(); |
| | | // combParam.setPackNo(wrkMast.getBarcode()); |
| | | // combParam.setLocNo(wrkMast.getLocNo()); |
| | | // combParam.setPackSts(0); |
| | | // combParam.setStepSts(1); |
| | | // combParam.setRequestTime(DateUtils.convert(now)); |
| | | // new PostMesDataUtils().postMesData("MES系统",mesUrl,inpath,combParam); |
| | | // } |
| | | if (locMast.getRow1()<2){ |
| | | //1.扫码上报 |
| | | CombParam combParam = new CombParam(); |
| | | combParam.setPackNo(waitPakins.get(0).getMatnr()); |
| | | combParam.setBarcode(wrkMast.getBarcode()); |
| | | combParam.setLocNo(wrkMast.getLocNo()); |
| | | combParam.setPackSts(0); |
| | | combParam.setStepSts(1); |
| | | combParam.setRequestTime(DateUtils.convert(now)); |
| | | new PostMesDataUtils().postMesData("MES系统",mesUrl,inpath,combParam); |
| | | } |
| | | } |
| | | } else { |
| | | throw new CoolException(dto.getLocNo()+"目标库位已被占用"); |