Commit ffce8640 authored by gaozhentao's avatar gaozhentao

修复告警IP查询BUG

parent c59fc1d0
...@@ -135,7 +135,7 @@ public class CassandraDaoImpl { ...@@ -135,7 +135,7 @@ public class CassandraDaoImpl {
} }
public List<AlarmLog> getAlarmLogList(String ip,int size,long flag) { public List<AlarmLog> getAlarmLogList(String ip,int size,long flag) {
String cql="select * from ctid_prof.alarm_log where ip like '%"+ip+"%' and state = '" +Constant.ALARM_RECOVERY+"' and serialnum<"+flag+" order by alatime desc limit "+size+ " allow filtering"; String cql="select * from ctid_prof.alarm_log where ip like '%"+ip+"%' and state = '" +Constant.ALARM_RECOVERY+"' and serialnum<"+flag+" limit "+size+ " allow filtering";
return template.select(cql, AlarmLog.class); return template.select(cql, AlarmLog.class);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment