|
|
@ -32,9 +32,12 @@ |
|
|
<if test="key != null and key !='' "> and res.menu_name like #{key} </if> |
|
|
<if test="key != null and key !='' "> and res.menu_name like #{key} </if> |
|
|
<if test="isTop!=null and isTop!=''"> and (res.pmenu_id is null or res.pmenu_id = '')</if> |
|
|
<if test="isTop!=null and isTop!=''"> and (res.pmenu_id is null or res.pmenu_id = '')</if> |
|
|
|
|
|
|
|
|
<if test="projectId!=null and projectId!=''"> and |
|
|
|
|
|
|
|
|
<if test=" projectId!=null and projectId!=''"> and |
|
|
exists (select 1 from xm_task t where t.project_id=#{projectId} and res.menu_id=t.menu_id and t.ntype='0') |
|
|
exists (select 1 from xm_task t where t.project_id=#{projectId} and res.menu_id=t.menu_id and t.ntype='0') |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test=" linkProjectId!=null and linkProjectId!=''"> and |
|
|
|
|
|
exists (select 1 from xm_product_project_link link where link.product_id=res.product_id and link.project_id=#{linkProjectId}) |
|
|
|
|
|
</if> |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
<select id="selectExistIterationMenus" parameterType="HashMap" resultType="com.xm.core.entity.XmMenu"> |
|
|
<select id="selectExistIterationMenus" parameterType="HashMap" resultType="com.xm.core.entity.XmMenu"> |
|
|
|