From 22a00e4677f89845bc3cbea0ea4740c21f7d70a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Wed, 16 Feb 2022 01:49:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BF=AE=E6=94=B9=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=97=B6=E9=97=B4=E7=9A=84=E5=8D=95=E7=8B=AC=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xm/core/dao/XmIterationMenuMapper.xml | 3 +- .../mapper/xm/core/dao/XmMenuMapper.xml | 59 +------------------ 2 files changed, 5 insertions(+), 57 deletions(-) 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