Browse Source

重点测点参数优化

dev
wenlele 1 year ago
parent
commit
95feb6ac81
  1. 8
      api/app/lib/controllers/project/index.js

8
api/app/lib/controllers/project/index.js

@ -425,7 +425,13 @@ async function getStructureStation (ctx) {
}
}
let attention = `AND positionCaseInsensitive(toString(t_sensor.labels), '${traitLabel}') > 0`
let trait = traitLabel
if (traitLabel && /['"]/.test(trait)) {
trait = trait.replace(/['"]/g, ''); // 去掉引号
}
let attention = `AND positionCaseInsensitive(toString(t_sensor.labels), '${trait}') > 0`
console.log(111, trait, attention);
const sensor = strucId.length ?
await clickHouse.anxinyun.query(

Loading…
Cancel
Save