From 06c4e59fa35c1b9e74da9cf3d081e78c13d17e20 Mon Sep 17 00:00:00 2001
From: yangyang
Date: 星期一, 14 七月 2025 06:36:36 +0800
Subject: [PATCH] no message

---
 zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/controller/MobileController.java |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/controller/MobileController.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/controller/MobileController.java
index e0a90c8..bfa9762 100644
--- a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/controller/MobileController.java
+++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/controller/MobileController.java
@@ -27,6 +27,7 @@
 import com.zy.asrs.wms.system.service.UserService;
 import io.jsonwebtoken.lang.Collections;
 import io.netty.util.internal.StringUtil;
+import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.web.bind.annotation.*;
@@ -65,6 +66,7 @@
      * @param barcode
      * @return
      */
+    @ApiOperation("鍏ュ簱鍗曟嵁--鎵爜鑾峰彇璁㈠崟鏄庣粏鍒楄〃")
     @PostMapping("/mat/auth")
     public R getProductForBarcode(@RequestBody Map<String, String> barcode) {
         if (Objects.isNull(barcode)) {
@@ -283,6 +285,32 @@
     }
 
 
+    @ApiOperation("鑾峰彇搴撲綅璇︾粏")
+    @GetMapping("/flat/transfer/{barcode}")
+    public R getDetlsBycode(@PathVariable String barcode) {
+        if (Objects.isNull(barcode)) {
+            return R.error("鍙傛暟涓嶈兘涓虹┖锛侊紒");
+        }
+        return R.ok().add(mobileService.getDetlsByCode(barcode));
+    }
+
+
+    @ApiOperation("骞虫澘杞Щ")
+    @PostMapping("/locs/transfer")
+    public R changeFlatBarcode(@RequestBody Map<String, String> param) {
+        if (Objects.isNull(param)) {
+            return R.error("鍙傛暟涓嶈兘涓虹┖锛侊紒");
+        }
+        if (Objects.isNull(param.get("barcode"))) {
+            return R.error("婧愬簱浣嶄笉鑳戒负绌猴紒锛�");
+        }
+        if (Objects.isNull(param.get("tarCode"))) {
+            return R.error("鐩爣搴撲綅涓嶈兘涓虹┖锛侊紒");
+        }
+
+        return mobileService.transferLocs(param);
+    }
+
     /**
      * 鑾峰彇鍙戣揣璁㈠崟鏄庣粏
      * @return
@@ -329,6 +357,7 @@
         if (params.isEmpty()) {
             throw new CoolException("鍙戣揣鍗曟槑缁嗕笉鑳戒负绌猴紒锛�");
         }
+
         return mobileService.confirmShippingDetl(params);
     }
 }

--
Gitblit v1.9.1