From fb0392aaa4e87d86ebe51502e1e8ce8d747c369e Mon Sep 17 00:00:00 2001
From: wangsixiang <2970484253@qq.com>
Date: Mon, 13 May 2024 09:21:19 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E5=BA=A6=E5=88=A0=E9=99=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../resources/mapper/business/DcPublishManageMapper.xml | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/zc-business/src/main/resources/mapper/business/DcPublishManageMapper.xml b/zc-business/src/main/resources/mapper/business/DcPublishManageMapper.xml
index 11fd36f6..6d2adf52 100644
--- a/zc-business/src/main/resources/mapper/business/DcPublishManageMapper.xml
+++ b/zc-business/src/main/resources/mapper/business/DcPublishManageMapper.xml
@@ -195,11 +195,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- delete dc_dispatch,dc_dispatch_resource
- from dc_dispatch_resource
- JOIN dc_dispatch on dc_dispatch_resource.dispatch_id=dc_dispatch.id
- WHERE dc_dispatch.event_id=#{eventId}
-
+ DELETE FROM dc_dispatch_resource WHERE dispatch_id IN (
+ SELECT id FROM dc_dispatch WHERE event_id = #{eventId}
+ );
+ DELETE FROM dc_dispatch WHERE event_id = #{eventId};