Browse Source

feat:筛选出本地化的结构物

dev
zhaobing’ 1 year ago
parent
commit
10eb7f9f69
  1. 4
      api/app/lib/controllers/monitor/index.js

4
api/app/lib/controllers/monitor/index.js

@ -28,8 +28,7 @@ async function getStructures (ctx) {
` `
SELECT SELECT
t_structure.id AS strucId, t_structure.id AS strucId,
t_structure.name AS strucName t_structure.name AS strucName
FROM FROM
t_project t_project
LEFT JOIN LEFT JOIN
@ -57,6 +56,7 @@ async function getStructures (ctx) {
project_state != -1 project_state != -1
AND AND
t_project.id IN (${[...anxinProjectIds].join(',')}, -1) t_project.id IN (${[...anxinProjectIds].join(',')}, -1)
AND t_structure.external_platform is not null
ORDER BY strucId ORDER BY strucId
` `
).toPromise() : ).toPromise() :

Loading…
Cancel
Save