From d35dd49decd2207b80b8c9410427d4ff25d3e3d0 Mon Sep 17 00:00:00 2001 From: LSH Date: 星期六, 11 二月 2023 13:12:46 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java index 024a4bb..2fdcb6d 100644 --- a/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java @@ -102,7 +102,7 @@ @Value("${ren.startUpTestPACK}") private String startUpTestPACK; - @Value("${ren.startUpTestPACK}") + @Value("${ren.suspendTestPACK}") private String suspendTestPACK; @Value("${mes.inPath}") @@ -632,13 +632,19 @@ @Override @Transactional public void startUpTestPACK(TestMast testMast) { - + if(Cools.isEmpty(testMast.getLocNo())){ + throw new CoolException("搴撲綅鍙蜂负绌�"); + }else if(Cools.isEmpty(testMast.getUserId())){ + throw new CoolException("鐢ㄦ埛缂栫爜涓虹┖"); + }else if(Cools.isEmpty(testMast.getBarcode())){ + throw new CoolException("PACK鐮佷负绌�"); + } LocMast locMast = locMastService.selectOne(new EntityWrapper<LocMast>() .eq("loc_no", testMast.getLocNo()) .eq("loc_sts","F") ); if (Cools.isEmpty(locMast)) { - throw new CoolException(BaseRes.PARAM); + throw new CoolException("鏈煡璇㈠埌搴撲綅鍙凤細"+testMast.getLocNo()+" 璇锋鏌ュ簱浣嶅彿鎴栬�呮鏌ュ簱浣嶇姸鎬佹槸鍚︽湭鍦ㄥ簱"); } Date now = new Date(); testMast.setStatus(1); @@ -688,6 +694,8 @@ if (!locMastService.update(locMast,new EntityWrapper<LocMast>().eq("loc_no", testMast.getLocNo()))){ throw new CoolException("鐢宠娴嬭瘯澶辫触"); } +// throw new CoolException("寮傚父锛侊紒锛佽瑙勮寖浣跨敤鎴栬仈绯荤鐞嗗憳"); + } @Override @Transactional @@ -713,9 +721,9 @@ renUrl=renUrl2; }else if (testMast.getChannel()>=17 && testMast.getChannel()<=24){ renUrl=renUrl3; - }else if (testMast.getChannel()>=25 && testMast.getChannel()<=36){ + }else if (testMast.getChannel()>=25 && testMast.getChannel()<=32){ renUrl=renUrl4; - }else if (testMast.getChannel()>=37 && testMast.getChannel()<=40){ + }else if (testMast.getChannel()>=33 && testMast.getChannel()<=40){ renUrl=renUrl5; }else if (testMast.getChannel()>=41 && testMast.getChannel()<=48){ renUrl=renUrl6; -- Gitblit v1.9.1