| | |
| | | if (!Cools.isEmpty(locMasts)){ |
| | | for (LocMast locMast:locMasts){ |
| | | LocDetl locDetl = locDetlService.selectOne(new EntityWrapper<LocDetl>().eq("loc_no", locMast.getLocNo())); |
| | | if (Cools.isEmpty(locDetl)){ |
| | | log.error("测试失败(NG)移库==>库存明细查询失败!库位号:"+locMast.getLocNo()); |
| | | continue; |
| | | } |
| | | TestMast testMast = testMastService.selectOne(new EntityWrapper<TestMast>() |
| | | .eq("loc_no",locMast.getLocNo()) |
| | | .eq("barcode",locDetl.getMatnr()) |
| | |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); |
| | | return FAIL.setMsg(e.getMessage()); |
| | | log.error(""+e); |
| | | // e.printStackTrace(); |
| | | // TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); |
| | | // return FAIL.setMsg(e.getMessage()); |
| | | } |
| | | |
| | | //测试成功 出库、移库 |
| | |
| | | if (!Cools.isEmpty(locMasts2)){ |
| | | for (LocMast locMast:locMasts2){ |
| | | LocDetl locDetl = locDetlService.selectOne(new EntityWrapper<LocDetl>().eq("loc_no", locMast.getLocNo())); |
| | | if (Cools.isEmpty(locDetl)){ |
| | | log.error("测试成功 出库、移库==>库存明细查询失败!库位号:"+locMast.getLocNo()); |
| | | continue; |
| | | } |
| | | TestMast testMast = testMastService.selectOne(new EntityWrapper<TestMast>() |
| | | .eq("loc_no",locMast.getLocNo()) |
| | | .eq("barcode",locDetl.getMatnr()) |
| | |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); |
| | | return FAIL.setMsg(e.getMessage()); |
| | | log.error(""+e); |
| | | // e.printStackTrace(); |
| | | // TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); |
| | | // return FAIL.setMsg(e.getMessage()); |
| | | } |
| | | |
| | | //测试有空库位 移库 |
| | |
| | | .eq("pack_status", 0) |
| | | .eq("loc_type1", (short) 3) |
| | | .eq("fire_status",0) |
| | | .orderBy("io_time",true) |
| | | ); |
| | | if (!Cools.isEmpty(locMasts3)){ |
| | | for (LocMast locMast:locMasts3){ |
| | |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); |
| | | return FAIL.setMsg(e.getMessage()); |
| | | log.error(""+e); |
| | | // e.printStackTrace(); |
| | | // TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); |
| | | // return FAIL.setMsg(e.getMessage()); |
| | | } |
| | | return SUCCESS; |
| | | } |