Browse Source

级别查询

dev
CODE 1 year ago
parent
commit
c25b6b0e05
  1. 4
      api/app/lib/controllers/project/group.js

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

Loading…
Cancel
Save