From 563ffc29857acd93c7298ddfca700c1fb01b18e0 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期五, 31 十月 2025 17:03:19 +0800
Subject: [PATCH] no message
---
rsf-server/src/main/java/com/vincent/rsf/server/api/controller/erp/ReportMsgController.java | 41 +++++++++++++++++++++++++++++++++++++++++
1 files changed, 41 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..e8f7c83 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,35 @@
@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.uploadReportOrders(params);
+ }
+
+ @ApiOperation("鐩樼偣搴撳瓨淇敼")
+ @PostMapping("/orders/check/update")
+ public R checkReport(@RequestBody ReportParams params) {
+ if (Objects.isNull(params)) {
+ return R.error("鍙傛暟涓嶈兘涓虹┖锛侊紒");
+ }
+ if (Objects.isNull(params.getAction()) || params.getAction().isEmpty()) {
+ return R.error("涓婃姤鏄庣粏涓嶈兘涓虹┖锛侊紒");
+ }
+ return reportMsgService.uploadCheckOrder(params);
+ }
+
}
--
Gitblit v1.9.1