diff --git a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuMapper.xml b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuMapper.xml index f0415789..226b82f8 100644 --- a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuMapper.xml +++ b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmMenuMapper.xml @@ -22,22 +22,33 @@ - and (res.iteration_id is null or res.iteration_id ='') - and res.iteration_id is not null and res.iteration_id !='' + and (res.iteration_id is null or res.iteration_id ='') + and ( res.iteration_id is not null and res.iteration_id !='' ) + and res.iteration_id=#{filterIterationId} + and res.iteration_id!=#{filterIterationId} - and not - exists ( select 1 from xm_task t where t.menu_id=res.menu_id) + + and not exists(select 1 from xm_task t where t.menu_id=res.menu_id and t.project_id=#{projectId}) + + + and not exists(select 1 from xm_task t where t.menu_id=res.menu_id) + + + and exists(select 1 from xm_task t where t.menu_id=res.menu_id) + + + and exists(select 1 from xm_task t where t.menu_id=res.menu_id and t.project_id=#{projectId}) + and res.menu_name like #{key} and (res.pmenu_id is null or res.pmenu_id = '') - - and - exists (select 1 from xm_task t where t.project_id=#{projectId} and res.menu_id=t.menu_id and t.ntype='0') - and exists (select 1 from xm_product_project_link link where link.product_id=res.product_id and link.project_id=#{linkProjectId}) + and + exists (select 1 from xm_iteration_link link where link.pro_id=res.product_id and link.iteration_id=#{linkIterationId}) +