From ef60bc12149272702f6044842b8e0f9c82f0551b Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期一, 27 十月 2025 18:27:04 +0800
Subject: [PATCH] 添加盘点上报接口

---
 rsf-open-api/src/main/java/com/vincent/rsf/openApi/controller/WmsErpController.java |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 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 f48b330..1ef929f 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,10 +1,13 @@
 package com.vincent.rsf.openApi.controller;
 
 
+import com.vincent.rsf.framework.common.R;
 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.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;
@@ -12,10 +15,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")
+@Api("ERP鎺ュ彛瀵规帴")
 public class WmsErpController {
 
     @Autowired
@@ -80,4 +85,30 @@
         }
         return wmsErpService.orderDel(params);
     }
+
+    @ApiOperation("鍩虹鐗╂枡淇℃伅鏇存柊")
+    @PostMapping("/mat/sync/auth/v1")
+    public CommonResponse syncMatnrs(@RequestBody ErpMatnrParms parms) {
+        if (Objects.isNull(parms)) {
+            throw new CoolException("鍙傛暟涓嶈兘涓虹┖锛侊紒");
+        }
+        return wmsErpService.syncMatnrs(parms);
+    }
+
+
+    @ApiOperation("鐗╂枡淇℃伅涓婃姤")
+    @PostMapping("/report/order")
+    public CommonResponse reportOrders(@RequestBody Map<String, Object> params) {
+        if (Objects.isNull(params)) {
+            throw new CoolException("鍙傛暟涓嶈兘涓虹┖锛侊紒");
+        }
+        return wmsErpService.reportOrders(params);
+    }
+
+    @ApiOperation("鐩樼偣宸紓淇敼")
+    @PostMapping("/report/check")
+    public CommonResponse reportCheck(@RequestBody Map<String, Object> params) {
+        return wmsErpService.reportCheck(params);
+    }
+
 }

--
Gitblit v1.9.1