|
|
@ -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( |
|
|
|