diff --git a/api/app/lib/controllers/project/group.js b/api/app/lib/controllers/project/group.js index 1278648..4cf9875 100644 --- a/api/app/lib/controllers/project/group.js +++ b/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