From 8f8b6a47ce277cad0b640c328ab3962419e1c024 Mon Sep 17 00:00:00 2001
From: chen.lin <1442464845@qq.com>
Date: 星期五, 06 二月 2026 13:00:47 +0800
Subject: [PATCH] RCS完整流程

---
 rsf-open-api/src/main/java/com/vincent/rsf/openApi/controller/WmsRcsController.java |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/rsf-open-api/src/main/java/com/vincent/rsf/openApi/controller/WmsRcsController.java b/rsf-open-api/src/main/java/com/vincent/rsf/openApi/controller/WmsRcsController.java
index e6099eb..46913ef 100644
--- a/rsf-open-api/src/main/java/com/vincent/rsf/openApi/controller/WmsRcsController.java
+++ b/rsf-open-api/src/main/java/com/vincent/rsf/openApi/controller/WmsRcsController.java
@@ -5,11 +5,14 @@
 import com.vincent.rsf.openApi.entity.dto.CommonResponse;
 import com.vincent.rsf.openApi.entity.params.ExMsgCallbackParams;
 import com.vincent.rsf.openApi.entity.params.LocSiteParams;
+import com.vincent.rsf.openApi.entity.params.LocationAllocateParams;
 import com.vincent.rsf.openApi.entity.params.RcsPubTaskParams;
 import com.vincent.rsf.openApi.entity.params.SyncRcsLocsParam;
+import com.vincent.rsf.openApi.entity.params.TaskReportParams;
 import com.vincent.rsf.openApi.service.WmsRcsService;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
@@ -19,6 +22,7 @@
 import java.util.Map;
 import java.util.Objects;
 
+@Slf4j
 @RestController
 @Api("RCS璋冨害浜や簰鎺ュ彛")
 @RequestMapping("/rcs")
@@ -97,5 +101,45 @@
         return wmsRcsService.modifyLocOrSite(params);
     }
 
+    /**
+     * @author Ryan
+     * @date 2026/2/3
+     * @description: RCS鍥炶皟鎺ュ彛
+     * @version 1.0
+     */
+    @ApiOperation("RCS鍥炶皟鎺ュ彛")
+    @PostMapping("/api/open/task/report")
+    public CommonResponse reportTask(@RequestBody TaskReportParams params) {
+        log.debug("RCS鍥炶皟锛歿}", params);
+        if (Objects.isNull(params)) {
+            throw new CoolException("鍙傛暟涓嶈兘涓虹┖锛侊紒");
+        }
+        return wmsRcsService.reportTask(params);
+    }
+
+    /**
+     * @author Ryan
+     * @date 2026/2/6
+     * @description: 鐢宠鍏ュ簱浠诲姟
+     * @version 1.0
+     */
+    @ApiOperation("鐢宠鍏ュ簱浠诲姟")
+    @PostMapping("/api/open/location/allocate")
+    public R allocateLocation(@RequestBody LocationAllocateParams params) {
+        log.info("鐢宠鍏ュ簱浠诲姟锛岃姹傚弬鏁帮細{}", params);
+        if (Objects.isNull(params)) {
+            return R.error("鍙傛暟涓嶈兘涓虹┖锛侊紒");
+        }
+        if (Objects.isNull(params.getBarcode()) || params.getBarcode().isEmpty()) {
+            return R.error("鏂欑鐮佷笉鑳戒负绌猴紒锛�");
+        }
+        if (Objects.isNull(params.getStaNo()) || params.getStaNo().isEmpty()) {
+            return R.error("鍏ュ簱绔欑偣涓嶈兘涓虹┖锛侊紒");
+        }
+        if (Objects.isNull(params.getType())) {
+            params.setType(18);
+        }
+        return wmsRcsService.allocateLocation(params);
+    }
 
 }

--
Gitblit v1.9.1