Browse Source

项目集结构物数量去重

dev
CODE 1 year ago
parent
commit
756bc94386
  1. 10
      api/app/lib/controllers/project/group.js

10
api/app/lib/controllers/project/group.js

@ -147,8 +147,8 @@ async function groupStatistic (ctx) {
const strucRes = anxinProjectIdArr.length ? await clickHouse.anxinyun.query(
`
SELECT
DISTINCT t_structure.id AS strucId,
t_project.id AS projectId,
t_structure.id AS strucId,
t_structure.name AS strucName,
project_state
FROM
@ -278,9 +278,9 @@ async function groupStatisticOnline (ctx) {
const strucRes = anxinProjectIds.size ? await clickHouse.anxinyun.query(
`
SELECT
DISTINCT t_structure.id AS strucId,
t_project.id AS projectId,
t_structure.id AS id,
t_structure.name AS name,
t_structure.name AS strucName,
project_state
FROM
t_project
@ -419,9 +419,9 @@ async function groupStatisticAlarm (ctx) {
const strucRes = anxinProjectIds.size ? await clickHouse.anxinyun.query(
`
SELECT
DISTINCT t_structure.id AS strucId,
t_project.id AS projectId,
t_structure.id AS id,
t_structure.name AS name,
t_structure.name AS strucName,
project_state
FROM
t_project

Loading…
Cancel
Save