diff --git a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmIterationMenuMapper.xml b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmIterationMenuMapper.xml index cdc1f1bf..f69301d9 100644 --- a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmIterationMenuMapper.xml +++ b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmIterationMenuMapper.xml @@ -14,7 +14,7 @@ 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 fb2e3b63..4299cdff 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 @@ -20,6 +20,7 @@ exists ( select 1 from xm_task t where t.menu_id=res.menu_id) and res.menu_name like #{key} + and res.pmenu_id is null select res.*,s.* from xm_menu res left join xm_menu_state s on res.menu_id=s.menu_id - and - menu_id in - - #{item} - - + - - and exists ( select 1 from xm_iteration_menu im where im.menu_id=res.menu_id - and im.iteration_id=#{iterationId} - ) - - - and not exists ( select 1 from xm_iteration_menu im where im.menu_id=res.menu_id) - - - 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 t.project_id=#{projectId}) - - - and ( exists ( select 1 from xm_menu m1 where m.mm_userid=#{compete} and m.product_id=res.product_id) - or exists ( select 1 from xm_product p where p.pm_userid=#{compete} and res.product_id=p.id) - ) - - and res.menu_name like #{key} order by res.seq_no asc