From c6c9b7d3baa822765768c110304d27623f946286 Mon Sep 17 00:00:00 2001
From: pjb <123456>
Date: 星期二, 15 七月 2025 14:29:09 +0800
Subject: [PATCH] `1`
---
zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/controller/MobileController.java | 31 ++++++++++++++++++++++++++++++-
1 files changed, 30 insertions(+), 1 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 6a0bc81..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
@@ -302,7 +330,7 @@
* @description: 鑾峰彇鎺ㄨ崘搴撲綅
* @version 1.0
*/
- @PostMapping("/recommend/locs")
+ @GetMapping("/recommend/locs")
public R getRecommend() {
return mobileService.getRecommendLocs();
}
@@ -329,6 +357,7 @@
if (params.isEmpty()) {
throw new CoolException("鍙戣揣鍗曟槑缁嗕笉鑳戒负绌猴紒锛�");
}
+
return mobileService.confirmShippingDetl(params);
}
}
--
Gitblit v1.9.1