From a64d342c0371eadebc29dae2a60a9525ce95e222 Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期三, 09 四月 2025 17:04:31 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/devlop' into devlop --- rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/AsnOrderController.java | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/AsnOrderController.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/AsnOrderController.java index 037dee9..2e9e296 100644 --- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/AsnOrderController.java +++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/AsnOrderController.java @@ -200,8 +200,14 @@ return asnOrderService.completeOrder(id, getLoginUserId()); } - - - + @ApiOperation("鍏抽棴鏀惰揣鍗�") + @PostMapping("/asnOrder/close/{id}") + @PreAuthorize("hasAuthority('manager:asnOrder:update')") + public R closeOrder(@PathVariable Long id) { + if (Objects.isNull(id)) { + return R.error("鍙傛暟涓嶈兘涓虹┖锛侊紒"); + } + return asnOrderService.closeOrder(id); + } } -- Gitblit v1.9.1