欢迎来到天天文库
浏览记录
ID:42212948
大小:760.70 KB
页数:68页
时间:2019-09-10
《能源集中监测与分析系统软件代码》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、packagecom.fpi.bear.ems.realtimelist;importjava.util.ArrayList;importjava.util.Collections;importjava.util.List;importorg.apache.commons」ang.StringUtils;importcom.fpi.bear.db.Node;importcom.fpi.bear.db.NodeAccessService;importcom.fpi.bear.dts.control.nodesmatcher.CommonMtNode;import
2、com.fpi.bear.dts.control.nodesmatcher.MtNode;importcom.fpi.bear.sql.condition.Condition;importcom.fpi.bear.sql.conditionJunction;publicclassCompanyControlService{privateNodeAccessServicenodeAccessService;privatefinalstaticStringCOMPANY_TYPE_CODE=HEMS_COMPANY";publicListsearc
3、hCompany(longindustryld,longareald,StringcompanyName){Junctioncondition二Condition.and();iffindustryld!=-1&&industryld!=0){condition.add(Condition.eq("TRADEID",industryld));}讦(areald!=-1&&areald!=0){condition.add(Condition.eq("AREAID",areald));}if(!StringUtils.isBlank(companyName)){c
4、ondition.addfCondition.likeC'NAME","%"+companyName+"%"));}Listnodes=nodeAccessService.getByCondition(COMPANY_TYPE_CODE,condition);returnconvertToMtNodes(nodes);}privateListconvertToMtNodes(Listnodes){if(nodes==null11nodes.size()==0){returnCollections.emptyList();
5、}Ustlist=newArrayList();for(Nodenode:nodes){if(node==null){continue;}list.add(convertToMtNode(node));}returnlist;}privateMtNodeconvertToMtNode(Nodenode){CommonMtNodemtNode=newCommonMtNode();mtNode.setNodeld((Long)node.getldf));mtNode.setNodeTypeCode(COMPANY_TYPE_CODE
6、);mtNode.setName((String)node.get(Node.NAME));returnmtNode;}publicvoidsetNodeAccessService(NodeAccessServicenodeAccessService){this.nodeAccessService=nodeAccessService;}}packagecom.fpi.bear.ems.statistic;importjava.util.ArrayList;importjava.util.Collections;importjava.util.Date;impo
7、rtjava.util.List;importcom.fpi.bear.db.Node;importcom.fpi.bear.db.NodeAccessService;importcom.fpi.bear.db.tree.TreeNode;importcom.fpi.bear.db.tree.fk.AutocorrelationExtendedTreeHandler;importcom.fpi.bear.dts.statistic.core.statitem.AutocorrelationStatNode;importcom.fpi.bear.dts.stat
8、istic.core.statitem
此文档下载收益归作者所有