From 1678987834d2e37c2bb6b1c2577c35977dbb2195 Mon Sep 17 00:00:00 2001
From: lbq <1065079612@qq.com>
Date: 星期四, 08 一月 2026 16:25:22 +0800
Subject: [PATCH] ERP和MES对接接口模拟实现(待内部对接),接口映射初步工具实现(待应用)

---
 rsf-open-api/src/main/java/com/vincent/rsf/openApi/controller/WmsErpController.java |   25 +++++++++++++++++++++----
 1 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/rsf-open-api/src/main/java/com/vincent/rsf/openApi/controller/WmsErpController.java b/rsf-open-api/src/main/java/com/vincent/rsf/openApi/controller/WmsErpController.java
index 011fa3f..247afe5 100644
--- a/rsf-open-api/src/main/java/com/vincent/rsf/openApi/controller/WmsErpController.java
+++ b/rsf-open-api/src/main/java/com/vincent/rsf/openApi/controller/WmsErpController.java
@@ -1,11 +1,11 @@
 package com.vincent.rsf.openApi.controller;
-
-
 import com.vincent.rsf.framework.exception.CoolException;
 import com.vincent.rsf.openApi.entity.dto.CommonResponse;
 import com.vincent.rsf.openApi.entity.params.ErpMatnrParms;
 import com.vincent.rsf.openApi.entity.params.ErpOpParams;
+import com.vincent.rsf.openApi.entity.params.ReportParams;
 import com.vincent.rsf.openApi.service.WmsErpService;
+import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.PostMapping;
@@ -13,10 +13,12 @@
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
+import java.util.Map;
 import java.util.Objects;
 
 @RestController
-@RequestMapping("/erp")
+@RequestMapping("/erp1")
+@Api("ERP鎺ュ彛瀵规帴")
 public class WmsErpController {
 
     @Autowired
@@ -44,7 +46,7 @@
      * @return
      */
     @ApiOperation("鍗曟嵁淇敼")
-    @PostMapping("/order/upadte")
+    @PostMapping("/order/update")
     public CommonResponse modifyOrderDtel(@RequestBody ErpOpParams params) {
         if (Objects.isNull(params)) {
             throw new CoolException("鍙傛暟涓嶈兘涓虹┖锛侊紒");
@@ -92,4 +94,19 @@
     }
 
 
+    @ApiOperation("璁㈠崟淇℃伅涓婃姤")
+    @PostMapping("/report/order")
+    public CommonResponse reportOrders(@RequestBody ReportParams params) {
+        if (Objects.isNull(params)) {
+            throw new CoolException("鍙傛暟涓嶈兘涓虹┖锛侊紒");
+        }
+        return wmsErpService.reportOrders(params);
+    }
+
+    @ApiOperation("鐩樼偣宸紓淇敼")
+    @PostMapping("/check/locitem/update")
+    public CommonResponse reportCheck(@RequestBody ReportParams params) {
+        return wmsErpService.reportOrders(params);
+    }
+
 }

--
Gitblit v1.9.1