From 5bc6bfaa0468505162044428516e52cd6bfe47fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Thu, 21 Apr 2022 16:50:20 +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 --- .../mapper/xm/core/dao/XmProductMapper.xml | 17 ++++++++++++----- .../mapper/xm/core/dao/XmProjectMapper.xml | 16 ++++++++-------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductMapper.xml b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductMapper.xml index 386a36ed..0c5db8cb 100644 --- a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductMapper.xml +++ b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProductMapper.xml @@ -12,11 +12,6 @@ and res.product_name like #{key} - - and exists( select 1 from xm_product_project_link ppl - where ppl.project_id=#{linkProjectId} and ppl.product_id=res.id - ) - and exists( select 1 from xm_iteration ppl where ppl.product_id=res.id and ppl.id=#{linkIterationId} ) @@ -36,10 +31,16 @@ @@ -50,10 +51,16 @@ diff --git a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectMapper.xml b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectMapper.xml index 302cb35c..e4361987 100644 --- a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectMapper.xml +++ b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmProjectMapper.xml @@ -48,11 +48,6 @@ and exists ( select 1 from xm_my_focus f where f.userid=#{userid} and f.project_id=res.id ) - - and exists( select 1 from xm_product_project_link ppl - where ppl.product_id=#{linkProductId} and ppl.project_id=res.id - ) - and exists( select 1 from xm_iteration ipl inner join xm_product_project_link l on ipl.product_id=l.product_id where l.project_id =res.id and ipl.id=#{linkIterationId} @@ -115,14 +110,19 @@