From 4e0470a90f640f57d8f8af6708eb05f77bf561dd Mon Sep 17 00:00:00 2001
From: skyouc <creaycat@gmail.com>
Date: 星期一, 27 十月 2025 21:58:46 +0800
Subject: [PATCH] #新增 1. rsf-server添加上报调用接口 2,rsf-server添加盘点调用接口
---
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