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)