From f55ed1d2a1bdf4ad80930e879631d6d95d4b6c3c Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期四, 28 八月 2025 18:57:38 +0800
Subject: [PATCH] RCS 库位同步接口调用 RCS任务下发接口功能调用 RCS 取消任务接口功能开发 RCS异常功回调功能开发

---
 rsf-server/src/main/java/com/vincent/rsf/server/api/controller/erp/SyncOrderController.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/api/controller/erp/SyncOrderController.java b/rsf-server/src/main/java/com/vincent/rsf/server/api/controller/erp/SyncOrderController.java
index 6fc3a82..aa18dcf 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/api/controller/erp/SyncOrderController.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/api/controller/erp/SyncOrderController.java
@@ -97,8 +97,8 @@
     @ApiOperation("鍚屾鍗曟嵁")
     @OperationLog("鍗曟嵁鍚屾")
     @PostMapping("/sync/checks")
-    public R syncCheckResult(@RequestBody SyncOrderParams syncOrders) {
-        if (Objects.isNull(syncOrders)) {
+    public R syncCheckResult(@RequestBody List<SyncOrderParams> syncOrders) {
+        if (Objects.isNull(syncOrders) || syncOrders.isEmpty()) {
             throw new CoolException("鍙傛暟涓嶈兘涓虹┖锛侊紒");
         }
         return receiveMsgService.syncCheckOrder(syncOrders, getLoginUserId());
@@ -160,8 +160,8 @@
     @ApiOperation("鍗曟嵁淇敼")
     @OperationLog("鍗曟嵁淇敼")
     @PostMapping("/sync/orders/update")
-    public R syncOrderUpdate(@RequestBody SyncOrderParams orders) {
-        if (Objects.isNull(orders)) {
+    public R syncOrderUpdate(@RequestBody List<SyncOrderParams> orders) {
+        if (Objects.isNull(orders) || orders.isEmpty()) {
             return R.error("鍙傛暟涓嶈兘涓虹┖锛侊紒");
         }
         return receiveMsgService.syncOrderUpdate(orders);

--
Gitblit v1.9.1