@@ -198,7 +198,7 @@ public class AlarmTsServiceImpl extends ServiceImpl<AlarmTsMapper, AlarmTs> impl
sb.append(" select last_row(ts) as ts, last_row(val) as val, last_row(confirmed) as confirmed, last_row(endts) as endts, last_row(timelong) as timelong,tbname from ")
.append(superTableName).append(" where tbname in( ");
sb.append(tbnames)
- .append(" ) group by tbname");
+ .append(" ) and endts is null group by tbname");