|
|
@ -425,7 +425,7 @@ async function getStructureStation (ctx) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
let attention = `AND positionCaseInsensitive(toString(t_sensor.labels), ${traitLabel}) > 0` |
|
|
|
let attention = `AND positionCaseInsensitive(toString(t_sensor.labels), '${traitLabel}') > 0` |
|
|
|
|
|
|
|
const sensor = strucId.length ? |
|
|
|
await clickHouse.anxinyun.query( |
|
|
@ -442,7 +442,7 @@ async function getStructureStation (ctx) { |
|
|
|
ON t_factor.id = t_sensor.factor |
|
|
|
WHERE |
|
|
|
t_sensor.structure IN (${strucId.join(",")},-1) |
|
|
|
${traitLabel ? attention : null} |
|
|
|
${traitLabel ? attention : ""} |
|
|
|
ORDER BY senterId |
|
|
|
` |
|
|
|
).toPromise() : |
|
|
|