From 6682a037f43649d40a94dbf59e40a5b2cc59dc37 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期二, 29 十一月 2022 16:51:20 +0800
Subject: [PATCH] #取消用户编号 直接获取用户码
---
src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 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..4099673 100644
--- a/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
@@ -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