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 0f128794..089f29fb 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,10 +22,10 @@
- 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 )
+ and ( res.iteration_id is not null ) and res.iteration_id=#{filterIterationId}
- and res.iteration_id!=#{filterIterationId}
+ and (res.iteration_id!=#{filterIterationId} or res.iteration_id is null)
@@ -42,12 +42,12 @@
and res.menu_name like #{key}
- and (res.pmenu_id is null or res.pmenu_id = '')
+ and (res.pmenu_id is null ) 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})
+ exists (select 1 from xm_iteration_link link where link.pro_id=res.product_id and link.iteration_id=#{linkIterationId} and link.ltype='1')
@@ -188,7 +188,7 @@