|
|
@ -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) |
|
|
|
` |
|
|
|