| | |
| | | public void startUpTestPACK(TestMast testMast) { |
| | | |
| | | //启动测试请求 |
| | | ReturnT<String> result=startUpTestPACK1(testMast); |
| | | if (!result.isSuccess()) { |
| | | log.error("测试申请失败", testMast.getBarcode()); |
| | | // ReturnT<String> result=startUpTestPACK1(testMast); |
| | | // if (!result.isSuccess()) { |
| | | // log.error("测试申请失败", testMast.getBarcode()); |
| | | // throw new CoolException("测试申请失败"); |
| | | } |
| | | // } |
| | | LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no", testMast.getLocNo())); |
| | | if (Cools.isEmpty(locMast)) { |
| | | throw new CoolException(BaseRes.PARAM); |
| | |
| | | if (!testMastService.insert(testMast)){ |
| | | throw new CoolException("添加testMast失败"); |
| | | } |
| | | locMast.setPackStatus(2); |
| | | locMast.setPackStatus(1); |
| | | locMast.setModiTime(now); |
| | | if (!locMastService.update(locMast,new EntityWrapper<LocMast>().eq("loc_no", testMast.getLocNo()))){ |
| | | throw new CoolException("申请测试失败"); |
| | |
| | | public void suspendTestPACK() { |
| | | ReturnT<String> result=suspendTestPACK1(); |
| | | if (!result.isSuccess()) { |
| | | log.error("测试申请失败"); |
| | | log.error("暂停测试失败"); |
| | | } |
| | | } |
| | | @Transactional |