...
|
...
|
@@ -101,10 +101,16 @@ public class MaliciousIpMapperImpl extends InfluxDBQuery implements MaliciousIpM |
|
|
|
|
|
for(List<Object> ls : s.getValues()){
|
|
|
Map<String,String> m = new HashMap();
|
|
|
m.put("createtime",""+ ls.get(s.getColumns().indexOf("createtime"))==null?"":String.valueOf(ls.get(s.getColumns().indexOf("createtime"))));
|
|
|
|
|
|
m.put("reason",(String) ls.get(s.getColumns().indexOf("reason")));
|
|
|
m.put("dur",(String) ls.get(s.getColumns().indexOf("dur")));
|
|
|
if(s.getColumns().indexOf("createtime")>=0){
|
|
|
m.put("createtime",""+ ls.get(s.getColumns().indexOf("hbasetime"))==null?"":String.valueOf(ls.get(s.getColumns().indexOf("createtime"))));
|
|
|
}
|
|
|
if(s.getColumns().indexOf("hbasetime")>=0){
|
|
|
m.put("hbasetime", ls.get(s.getColumns().indexOf("hbasetime"))==null?"":String.valueOf(ls.get(s.getColumns().indexOf("hbasetime"))));
|
|
|
}
|
|
|
|
|
|
resultMap.put(ip,m);
|
|
|
}
|
|
|
}
|
...
|
...
|
|