| | |
| | | private WaitPakinService waitPakinService; |
| | | @Autowired |
| | | private LocDetlService locDetlService; |
| | | @Autowired |
| | | private TestMastService testMastService; |
| | | |
| | | @Value("mes.url") |
| | | private String mesUrl; |
| | |
| | | } else { |
| | | throw new CoolException(dto.getLocNo()+"目标库位已被占用"); |
| | | } |
| | | TestMast testMast = testMastService.selectOne(new EntityWrapper<TestMast>().eq("barcode", wrkMast.getBarcode())); |
| | | |
| | | if (Cools.isEmpty(testMast)){ |
| | | //生成测试档 |
| | | testMast=new TestMast(); |
| | | testMast.setChannel(locMast.getChannel()); |
| | | testMast.setUserId(locMast.getLocNo()); |
| | | testMast.setStatus(1); |
| | | testMast.setBarcode(wrkMast.getBarcode()); |
| | | testMast.setLocNo(locMast.getLocNo()); |
| | | testMast.setModiTime(now); |
| | | testMast.setAppeTime(now); |
| | | if (!testMastService.insert(testMast)){ |
| | | throw new CoolException(wrkMast.getBarcode()+"生成测试档失败"); |
| | | } |
| | | }else { |
| | | throw new CoolException(wrkMast.getBarcode()+"已存在测试档"); |
| | | } |
| | | |
| | | return dto; |
| | | } |
| | | |