| | |
| | | } |
| | | LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>() |
| | | .eq("loc_no", testMast.getLocNo()) |
| | | .eq("channel",testMast.getChannel()) |
| | | ); |
| | | if (Cools.isEmpty(locMast)) { |
| | | throw new CoolException(BaseRes.PARAM); |
| | |
| | | |
| | | Date now = new Date(); |
| | | testMast.setStatus(1); |
| | | testMast.setChannel(locMast.getChannel()); |
| | | testMast.setModiTime(now); |
| | | testMast.setAppeTime(now); |
| | | if (!testMastService.insert(testMast)){ |
| | |
| | | @Transactional |
| | | public ReturnT<String> startUpTestPACK1(TestMast testMast){ |
| | | try { |
| | | CombParam combParam = new CombParam(); |
| | | combParam.setPackNo(testMast.getLocNo()); |
| | | combParam.setPackName(testMast.getUserId()); |
| | | combParam.setLocNo(testMast.getBarcode()); |
| | | combParam.setRequestTime(DateUtils.convert(new Date())); |
| | | return postMesData(renUrl,startUpTestPACK,combParam); |
| | | Review review=new Review(); |
| | | review.setLocNo(testMast.getLocNo()); |
| | | review.setUserId(testMast.getUserId()); |
| | | review.setBarcode(testMast.getBarcode()); |
| | | review.setRequestTime(DateUtils.convert(new Date())); |
| | | return postMesData(renUrl,startUpTestPACK,review); |
| | | }catch (Exception e) { |
| | | log.error("fail", e); |
| | | e.printStackTrace(); |