From 6e2dd9a7b6f87d39bdc682e164403be6a7e1ec0f Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期二, 28 十月 2025 10:22:40 +0800
Subject: [PATCH] 新增已完成订单上传接口

---
 rsf-server/src/main/java/com/vincent/rsf/server/api/controller/erp/ReportMsgController.java |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/api/controller/erp/ReportMsgController.java b/rsf-server/src/main/java/com/vincent/rsf/server/api/controller/erp/ReportMsgController.java
index b786e62..5774b2d 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/api/controller/erp/ReportMsgController.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/api/controller/erp/ReportMsgController.java
@@ -1,9 +1,19 @@
 package com.vincent.rsf.server.api.controller.erp;
 
+import com.vincent.rsf.framework.common.R;
+import com.vincent.rsf.framework.exception.CoolException;
+import com.vincent.rsf.server.api.controller.erp.params.ReportParams;
+import com.vincent.rsf.server.api.service.ReportMsgService;
 import com.vincent.rsf.server.system.controller.BaseController;
 import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
+
+import java.util.Objects;
 
 /**
  * @author Ryan
@@ -17,4 +27,24 @@
 @Api(tags = "涓婃姤淇℃伅鎺ュ彛绠$悊鍣�")
 public class ReportMsgController extends BaseController {
 
+    @Autowired
+    private ReportMsgService reportMsgService;
+
+    @ApiOperation("瀹屾垚璁㈠崟涓婃姤")
+    @PostMapping("/complete/orders")
+    public R reportOrder(@RequestBody ReportParams params) {
+        if (Objects.isNull(params)) {
+            return R.error("鍙傛暟涓嶈兘涓虹┖锛�");
+        }
+        if (Objects.isNull(params.getOrderType())) {
+            return R.error("璁㈠崟绫诲瀷涓嶈兘涓虹┖锛侊紒");
+        }
+        if (Objects.isNull(params.getAction()) || params.getAction().isEmpty()) {
+            return R.error("涓婃姤鏄庣粏涓嶈兘涓虹┖锛侊紒");
+        }
+
+        return reportMsgService.reportOrders(params);
+
+    }
+
 }

--
Gitblit v1.9.1