From f907e31b2d4423daba7b4a09e64a38455ec40914 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期四, 28 八月 2025 19:21:44 +0800 Subject: [PATCH] 异常信息上报接口优化 --- rsf-server/src/main/java/com/vincent/rsf/server/api/controller/erp/SyncOrderController.java | 9 ++++----- 1 files changed, 4 insertions(+), 5 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 ebf4be0..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()); @@ -117,7 +117,6 @@ if (Objects.isNull(transferParams)) { throw new CoolException("鍙傛暟涓嶈兘涓虹┖锛侊紒"); } - return receiveMsgService.syncTransfer(transferParams, getLoginUserId()); } @@ -161,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