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};