From c25b6b0e05379d72768eded266f4135ddaac745e Mon Sep 17 00:00:00 2001 From: CODE <1650192445@qq.com> Date: Thu, 28 Sep 2023 18:14:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=A7=E5=88=AB=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/project/group.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/app/lib/controllers/project/group.js b/api/app/lib/controllers/project/group.js index 5a3d2b2..6c4e03c 100644 --- a/api/app/lib/controllers/project/group.js +++ b/api/app/lib/controllers/project/group.js @@ -174,9 +174,9 @@ async function groupStatistic (ctx) { let pepmCustomerLevelRes = pepmProjectIdArr.length ? await clickHouse.projectManage.query( ` SELECT DISTINCT t_rpm_customer_level.id AS id, t_rpm_customer_level.name AS name FROM t_pim_project - RIGHT JOIN t_rpm_customer + LEFT JOIN t_rpm_customer ON t_rpm_customer.id = t_pim_project.related_customers_id - RIGHT JOIN t_rpm_customer_level + LEFT JOIN t_rpm_customer_level ON t_rpm_customer_level.id = t_rpm_customer.level WHERE t_pim_project.id IN (${pepmProjectIdArr.join(',')},-1) `