From 17485bf8af53591618ca052dfb76559b8e67ce51 Mon Sep 17 00:00:00 2001
From: lsh <1>
Date: 星期六, 20 五月 2023 11:13:51 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/asrs/controller/MobileController.java | 27 +++++++++++++++------------
1 files changed, 15 insertions(+), 12 deletions(-)
diff --git a/src/main/java/com/zy/asrs/controller/MobileController.java b/src/main/java/com/zy/asrs/controller/MobileController.java
index f5bdf33..ff28b43 100644
--- a/src/main/java/com/zy/asrs/controller/MobileController.java
+++ b/src/main/java/com/zy/asrs/controller/MobileController.java
@@ -330,22 +330,25 @@
/*...........................璧e窞鏂板..............浠ヤ笅.............璧e窞鏂板...........................*/
- @PostMapping("/test/startUp/auth")
- @ManagerAuth(memo = "鐢宠PACK娴嬭瘯")
- public synchronized R startUpTestPACK(@RequestBody TestMast testMast) {
- if (Cools.isEmpty(testMast)) {
- return R.parse(BaseRes.PARAM);
- }
- mobileService.startUpTestPACK(testMast); //鎻愪氦娴嬭瘯绯荤粺
- return R.ok();
- }
+// @PostMapping("/test/startUp/auth")
+// @ManagerAuth(memo = "鐢宠PACK娴嬭瘯")
+// public synchronized R startUpTestPACK(@RequestBody TestMast testMast) {
+// if (Cools.isEmpty(testMast)) {
+// return R.parse(BaseRes.PARAM);
+// }
+// mobileService.startUpTestPACK(testMast); //鎻愪氦娴嬭瘯绯荤粺
+// return R.ok();
+// }
+
@PostMapping("/test/suspend/auth")
// @ManagerAuth(memo = "鏆傚仠娴嬭瘯")
@ResponseBody
public synchronized R suspendTestPACK(@RequestBody SearchLocParam param) {
-
- mobileService.suspendTestPACK(param.getBarcode()); //璇锋眰鏆傚仠娴嬭瘯
- return R.ok();
+ if (mobileService.suspendTestPACK(param.getBarcode())){ //璇锋眰鏆傚仠娴嬭瘯
+ return R.ok();
+ }else {
+ return R.error("鏆傚仠澶辫触");
+ }
}
/*...........................璧e窞鏂板..............浠ヤ笂.............璧e窞鏂板...........................*/
--
Gitblit v1.9.1