查询显示最近的100条告警
This commit is contained in:
parent
7e17b04d71
commit
092428ea93
@ -630,6 +630,10 @@ public class TDEngineService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
sb.append(" order by t.event_time");
|
sb.append(" order by t.event_time");
|
||||||
|
if (limit == null){
|
||||||
|
sb.append(" desc limit 100");
|
||||||
|
total = 100;
|
||||||
|
}
|
||||||
if (limit != null){
|
if (limit != null){
|
||||||
sb.append(" limit ").append(offset).append(",").append(limit);
|
sb.append(" limit ").append(offset).append(",").append(limit);
|
||||||
total = getEventCount(eventLevel,startTime,endTime,deviceCodeList);
|
total = getEventCount(eventLevel,startTime,endTime,deviceCodeList);
|
||||||
|
Loading…
Reference in New Issue
Block a user