From abd0aca9c7dbe5d4add17ca57fa7d75ed4b26afb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Fri, 11 Mar 2022 03:24:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=8A=82=E7=82=B9=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E3=80=81=E6=A0=87=E7=AD=BE=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mybatis/mapper/xm/core/dao/XmMenuMapper.xml | 5 ++++- .../resources/mybatis/mapper/xm/core/dao/XmTaskMapper.xml | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) 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 228cb057..781c3596 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 @@ -32,9 +32,12 @@ and res.menu_name like #{key} and (res.pmenu_id is null or res.pmenu_id = '') - and + 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}) + select avg(res.rate) from xm_task res where res.parent_taskid = #{parentTaskid}