| | |
| | | locMast.setPackStatus(0); |
| | | } |
| | | }else { |
| | | WrkDetl wrkDetl1 = wrkDetlService.selectOne(new EntityWrapper<WrkDetl>().eq("zpallet",locMast.getBarcode())); |
| | | locMast.setPackStatus(5); |
| | | TestMast testMast = testMastService.selectOne(new EntityWrapper<TestMast>() |
| | | .eq("barcode",locMast.getBarcode()) |
| | | .eq("barcode",wrkDetl1.getMatnr()) |
| | | .eq("status",4) |
| | | ); |
| | | testMast.setStatus(5); |
| | | testMast.setModiTime(new Date()); |
| | | if (!testMastService.update(testMast,new EntityWrapper<TestMast>().eq("barcode",locMast.getBarcode()).eq("status",4))){ |
| | | if (!testMastService.update(testMast,new EntityWrapper<TestMast>().eq("barcode",wrkDetl1.getMatnr()).eq("status",4))){ |
| | | throw new CoolException("更改测试状态失败"); |
| | | } |
| | | } |
| | |
| | | CombParam combParam = new CombParam(); |
| | | combParam.setPackNo(wrkDetls.get(0).getMatnr()); |
| | | combParam.setLocNo(wrkMast.getLocNo()); |
| | | combParam.setBarcode(wrkMast.getBarcode()); |
| | | if (locMast.getCrnNo()==1){ |
| | | combParam.setPackSts(0); |
| | | combParam.setStepSts(2); |
| | |
| | | // exceptionHandle("全板出库 ===>> 修改源库位状态失败;[workNo={0}],[sourceLocNo={1}]", wrkMast.getWrkNo(), wrkMast.getSourceLocNo()); |
| | | TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); |
| | | return FAIL.setMsg("全板出库 ===>> 修改源库位状态失败; [workNo=" + wrkMast.getWrkNo() + "],[locNo=" + wrkMast.getSourceLocNo() + "]"); |
| | | }else{ |
| | | //2.出库完成上报 |
| | | CombParam combParam = new CombParam(); |
| | | combParam.setPackNo(wrkDetls101.get(0).getMatnr()); |
| | | combParam.setLocNo(wrkMast.getLocNo()); |
| | | combParam.setBarcode(wrkMast.getBarcode()); |
| | | //目标站206出库 |
| | | if(wrkMast.getStaNo()==206){ |
| | | combParam.setPackSts(1);//OK |
| | | combParam.setStepSts(7);//测试库出库完成 |
| | | }else if(wrkMast.getStaNo()==204){//NG 出库 |
| | | combParam.setPackSts(2);//NG |
| | | combParam.setStepSts(8);//NG出库完成 |
| | | }else if(wrkMast.getStaNo()==103){//目标站103出库 |
| | | combParam.setPackSts(1);//OK |
| | | combParam.setStepSts(6);//静置库出库完成 |
| | | } |
| | | combParam.setRequestTime(DateUtils.convert(now)); |
| | | new PostMesDataUtils().postMesData("MES系统",mesUrl,inpath,combParam); |
| | | } |
| | | } |
| | | break; |