From dde249ccc3af92c4d4fe7c7afbf3d4daaf7985d9 Mon Sep 17 00:00:00 2001 From: xiong_cl <140612616@qq.com> Date: Fri, 12 Apr 2024 09:37:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=AE=E5=BD=95=E6=95=B4=E7=BC=96=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=89=B9=E9=87=8F=E5=88=A0=E9=99=A4=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bianmu/controller/DirectoryController.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/shandan-bianmu/src/main/java/com/keyware/shandan/bianmu/controller/DirectoryController.java b/shandan-bianmu/src/main/java/com/keyware/shandan/bianmu/controller/DirectoryController.java index 8a04293..97df457 100644 --- a/shandan-bianmu/src/main/java/com/keyware/shandan/bianmu/controller/DirectoryController.java +++ b/shandan-bianmu/src/main/java/com/keyware/shandan/bianmu/controller/DirectoryController.java @@ -222,4 +222,17 @@ public class DirectoryController extends BaseController batchDelete(@PathVariable("ids") String ids) { + Arrays.stream(ids.split(",")).forEach(dir -> { + commonService.deleteById(dir); + System.out.println(dir); + }); + return Result.of("删除成功"); + } }