Package org.apdplat.module.log.model

Examples of org.apdplat.module.log.model.OperateStatistics


        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);
View Full Code Here

TOP

Related Classes of org.apdplat.module.log.model.OperateStatistics

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.