From 9eb9b4b79eb83ca75cc6ac01594277051df3b1c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AD=B1=E9=BE=99=E7=BC=98?= <794334212@qq.com> Date: Thu, 26 Jun 2025 09:58:25 +0000 Subject: [PATCH] =?UTF-8?q?update=20mongo-plus-core/src/main/java/com/mong?= =?UTF-8?q?oplus/interceptor/business/LogicRemoveInterceptor.java.=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A2=9E=E5=8A=A0=E7=9A=84=20ExecuteMethodEn?= =?UTF-8?q?um.REMOVE=5FONE=20=E5=AF=BC=E8=87=B4=E9=80=BB=E8=BE=91=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 筱龙缘 <794334212@qq.com> --- .../interceptor/business/LogicRemoveInterceptor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mongo-plus-core/src/main/java/com/mongoplus/interceptor/business/LogicRemoveInterceptor.java b/mongo-plus-core/src/main/java/com/mongoplus/interceptor/business/LogicRemoveInterceptor.java index 76ea91c..c381a24 100644 --- a/mongo-plus-core/src/main/java/com/mongoplus/interceptor/business/LogicRemoveInterceptor.java +++ b/mongo-plus-core/src/main/java/com/mongoplus/interceptor/business/LogicRemoveInterceptor.java @@ -22,7 +22,9 @@ public class LogicRemoveInterceptor implements AdvancedInterceptor { @Override public AdvancedFunction activate() { return (invocation) -> - LogicManager.open && invocation.getMethod().getName().equals(ExecuteMethodEnum.REMOVE.getMethod()); + LogicManager.open && ( + invocation.getMethod().getName().equals(ExecuteMethodEnum.REMOVE.getMethod()) || invocation.getMethod().getName().equals(ExecuteMethodEnum.REMOVE_ONE.getMethod()) + ); } @Override -- Gitee