查询显示最近的100条告警

This commit is contained in:
huguanghan 2024-11-06 09:12:22 +08:00
parent 7e17b04d71
commit 092428ea93

View File

@ -630,6 +630,10 @@ public class TDEngineService {
}
}
sb.append(" order by t.event_time");
if (limit == null){
sb.append(" desc limit 100");
total = 100;
}
if (limit != null){
sb.append(" limit ").append(offset).append(",").append(limit);
total = getEventCount(eventLevel,startTime,endTime,deviceCodeList);