From de62fa4d71395baac12ba07929ad3c29a63d757f Mon Sep 17 00:00:00 2001 From: dxc Date: Mon, 12 Jul 2021 14:27:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BC=82=E5=B8=B8xml?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=8F=82=E6=95=B0=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projectsection/dao/mapper/ProjectSectionMapper.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/project/projectsection/dao/mapper/ProjectSectionMapper.xml b/src/main/java/com/chinaunicom/mall/ebtp/project/projectsection/dao/mapper/ProjectSectionMapper.xml index 4eb1fd3..b2f016b 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/project/projectsection/dao/mapper/ProjectSectionMapper.xml +++ b/src/main/java/com/chinaunicom/mall/ebtp/project/projectsection/dao/mapper/ProjectSectionMapper.xml @@ -158,8 +158,8 @@ t.business_module as businessModule, t.status as status from biz_project_section t - left join biz_project_section_exception e on e.section_id = t.id and e.exception_id = ${exceptionId} - where t.project_id = ${projectId} and t.status != '9' + left join biz_project_section_exception e on e.section_id = t.id and e.exception_id = #{exceptionId} + where t.project_id = #{projectId} and t.status != '9' and not exists (select 1 from biz_project_section_exception e,biz_project_section s where s.id = e.section_id and s.project_id = #{projectId} and e.exception_id != #{exceptionId} and e.section_id = t.id)