for(OperateLog item : models){
String username=item.getUsername();
if(username == null){
username = "匿名用户";
}
OperateStatistics sta=temp.get(username);
if(sta==null){
sta=new OperateStatistics();
sta.setUsername(username);
temp.put(username, sta);
}
if(OperateLogType.ADD.equals(item.getOperatingType())){
sta.increaseAddCount();
}
if(OperateLogType.DELETE.equals(item.getOperatingType())){
sta.increaseDeleteCount();
}
if(OperateLogType.UPDATE.equals(item.getOperatingType())){
sta.increaseUpdateCount();
}
}
List<OperateStatistics> data=new ArrayList<>();
for(OperateStatistics item : temp.values()){
data.add(item);