|
@@ -0,0 +1,751 @@
|
|
|
+package com.gyee.benchmarkinghive.service;
|
|
|
+
|
|
|
+import com.gyee.benchmarkinghive.common.PointData;
|
|
|
+import com.gyee.benchmarkinghive.common.StringUtils;
|
|
|
+import com.gyee.benchmarkinghive.contant.Contant;
|
|
|
+import com.gyee.benchmarkinghive.init.CacheContext;
|
|
|
+import com.gyee.benchmarkinghive.model.auto.*;
|
|
|
+import com.gyee.benchmarkinghive.model.vo.FjjxbVo;
|
|
|
+import com.gyee.benchmarkinghive.model.vo.FjjxbmxVo;
|
|
|
+import com.gyee.benchmarkinghive.model.vo.WxsslVo;
|
|
|
+import com.gyee.benchmarkinghive.util.BatchUpdateUtils;
|
|
|
+import com.gyee.benchmarkinghive.util.DateUtils;
|
|
|
+import com.gyee.benchmarkinghive.util.SortUtils;
|
|
|
+import com.gyee.benchmarkinghive.util.taos.EdosUtil;
|
|
|
+import org.springframework.jdbc.core.BeanPropertyRowMapper;
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
+
|
|
|
+import javax.swing.text.StyledEditorKit;
|
|
|
+import java.util.*;
|
|
|
+import java.util.concurrent.atomic.AtomicReference;
|
|
|
+import java.util.stream.Collectors;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @ClassName : BenchmarkingService
|
|
|
+ * @Author : xieshengjie
|
|
|
+ * @Date: 2021/6/15 17:46
|
|
|
+ * @Description : 对标管理service
|
|
|
+ */
|
|
|
+@Service
|
|
|
+public class BenchmarkingService extends GenericService {
|
|
|
+ private EdosUtil edosUtil = new EdosUtil();
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 保存日信息表
|
|
|
+ * @param beginDate
|
|
|
+ * @param endDate
|
|
|
+ */
|
|
|
+ public void saveEquipmentdayinfo(String beginDate,String endDate){
|
|
|
+ Map<String, Map<String, Windturbinetestingpointai2>> wtpAimap = CacheContext.wtpAimap;
|
|
|
+ List<Windturbine> wtls = CacheContext.wtls;
|
|
|
+ String[] uniformcodes = Contant.WXSS.split(",");
|
|
|
+ List<String> days = getDays(beginDate, endDate);
|
|
|
+ for (String d : days) {
|
|
|
+ String delSql = "delete from gyee_test.equipmentdayinfo where recorddate='"+d+"'";
|
|
|
+ jdbcTemplate.execute(delSql);
|
|
|
+ List<Equipmentdayinfo> resultList = new ArrayList<>();
|
|
|
+ Date date = DateUtils.parseDate(d);
|
|
|
+ Date begin = DateUtils.getStartDate(date);
|
|
|
+ Date end = DateUtils.getFinallyDate(date);
|
|
|
+ wtls.stream().filter(i->i.getWindpowerstationid().endsWith("FDC")).forEach(wt->{
|
|
|
+ Map<String,Double> wtDataMap = new HashMap<>();
|
|
|
+ Map<String, Windturbinetestingpointai2> nmap = wtpAimap.get(wt.getId());
|
|
|
+ Arrays.stream(uniformcodes).forEach(u->{
|
|
|
+ try {
|
|
|
+ Windturbinetestingpointai2 windturbinetestingpointai2 = nmap.get(u);
|
|
|
+ List<PointData> pointDatas = edosUtil.getHistStat(windturbinetestingpointai2, begin.getTime() / 1000, end.getTime() / 1000, 1l, 86400l, 0);
|
|
|
+ Optional<PointData> first = pointDatas.stream().findFirst();
|
|
|
+ Double value = first.isPresent()?first.get().getPointValueInDouble():0;
|
|
|
+ wtDataMap.put(wt.getId()+"_"+uniformcodes,value);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ Equipmentdayinfo equipmentdayinfo = new Equipmentdayinfo();
|
|
|
+ equipmentdayinfo.setId(StringUtils.getUUID());
|
|
|
+ equipmentdayinfo.setWindturbineid(wt.getId());
|
|
|
+ equipmentdayinfo.setLineid(wt.getLineid());
|
|
|
+ equipmentdayinfo.setProjectid(wt.getProjectid());
|
|
|
+ equipmentdayinfo.setWindpowerstationid(wt.getWindpowerstationid());
|
|
|
+ equipmentdayinfo.setRecorddate(d);
|
|
|
+ equipmentdayinfo.setGenecapacity(wtDataMap.get(wt.getId()+"_RFDL"));
|
|
|
+ equipmentdayinfo.setSpeed(wtDataMap.get(wt.getId()+"_AI022"));
|
|
|
+ //维护:RJXSSDL-ZS,RLZSSDL-ZS
|
|
|
+ equipmentdayinfo.setDaynhwhssdl(wtDataMap.get(wt.getId()+"_RJXSSDL-ZS") + wtDataMap.get(wt.getId()+"_RLZSSDL-ZS"));
|
|
|
+ //故障:RGZSSDL-ZS,NSZSSDL-ZS
|
|
|
+ equipmentdayinfo.setDaynhgzssdl(wtDataMap.get(wt.getId()+"_RGZSSDL-ZS") + wtDataMap.get(wt.getId()+"_NSZSSDL-ZS"));
|
|
|
+ //限电:RQFSSDL-ZS,RXDSSDL-ZS
|
|
|
+ equipmentdayinfo.setDaynhxdssdl(wtDataMap.get(wt.getId()+"_RQFSSDL-ZS") + wtDataMap.get(wt.getId()+"_RXDSSDL-ZS"));
|
|
|
+ //性能:RDJSSDL-ZS,RSTSSDL-ZS,RXNSSDL-ZS,RQXSSDL-ZS
|
|
|
+ equipmentdayinfo.setDaynhqfdl(wtDataMap.get(wt.getId()+"_RDJSSDL-ZS") + wtDataMap.get(wt.getId()+"_RSTSSDL-ZS") + wtDataMap.get(wt.getId()+"_RXNSSDL-ZS") + wtDataMap.get(wt.getId()+"_RQXSSDL-ZS"));
|
|
|
+ //受累:RWZSSDL-ZS,RTZSSDL-ZS
|
|
|
+ equipmentdayinfo.setDaynhcfdl(wtDataMap.get(wt.getId()+"_RWZSSDL-ZS") + wtDataMap.get(wt.getId()+"_RTZSSDL-ZS"));
|
|
|
+ equipmentdayinfo.setTherogenecapacity(equipmentdayinfo.getGenecapacity()+equipmentdayinfo.getDaynhwhssdl()+equipmentdayinfo.getDaynhgzssdl()+equipmentdayinfo.getDaynhxdssdl()+equipmentdayinfo.getDaynhqfdl()+equipmentdayinfo.getDaynhcfdl());
|
|
|
+ resultList.add(equipmentdayinfo);
|
|
|
+ });
|
|
|
+ BatchUpdateUtils batchUpdateUtils = new BatchUpdateUtils();
|
|
|
+ batchUpdateUtils.batchEquipmentinfoInsert(resultList);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 保存日信息明细
|
|
|
+ * @param beginDate
|
|
|
+ * @param endDate
|
|
|
+ */
|
|
|
+ public void saveEquipmentdaydetailed(String beginDate,String endDate){
|
|
|
+ Map<String, Map<String, Windturbinetestingpointai2>> wtpAimap = CacheContext.wtpAimap;
|
|
|
+ List<Windturbine> wtls = CacheContext.wtls;
|
|
|
+ String[] uniformcodes = Contant.WXSS.split(",");
|
|
|
+ List<String> days = getDays(beginDate, endDate);
|
|
|
+ for (String d : days) {
|
|
|
+ String delSql = "delete from gyee_test.equipmentdaydetailed where recorddate='"+d+"'";
|
|
|
+ jdbcTemplate.execute(delSql);
|
|
|
+ List<Equipmentdaydetailed> resultList = new ArrayList<>();
|
|
|
+ Date date = DateUtils.parseDate(d);
|
|
|
+ Date begin = DateUtils.getStartDate(date);
|
|
|
+ Date end = DateUtils.getFinallyDate(date);
|
|
|
+ wtls.stream().filter(i->i.getWindpowerstationid().endsWith("FDC")).forEach(wt->{
|
|
|
+ Map<String,Double> wtDataMap = new HashMap<>();
|
|
|
+ Map<String, Windturbinetestingpointai2> nmap = wtpAimap.get(wt.getId());
|
|
|
+ Arrays.stream(uniformcodes).forEach(u->{
|
|
|
+ try {
|
|
|
+ Windturbinetestingpointai2 windturbinetestingpointai2 = nmap.get(u);
|
|
|
+ List<PointData> pointDatas = edosUtil.getHistStat(windturbinetestingpointai2, begin.getTime() / 1000, end.getTime() / 1000, 1l, 86400l, 0);
|
|
|
+ Optional<PointData> first = pointDatas.stream().findFirst();
|
|
|
+ Double value = first.isPresent()?first.get().getPointValueInDouble():0;
|
|
|
+ wtDataMap.put(wt.getId()+"_"+uniformcodes,value);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ Equipmentdaydetailed equipmentdayinfo = new Equipmentdaydetailed();
|
|
|
+ equipmentdayinfo.setId(StringUtils.getUUID());
|
|
|
+ equipmentdayinfo.setWindturbineid(wt.getId());
|
|
|
+ equipmentdayinfo.setLineid(wt.getLineid());
|
|
|
+ equipmentdayinfo.setProjectid(wt.getProjectid());
|
|
|
+ equipmentdayinfo.setWindpowerstationid(wt.getWindpowerstationid());
|
|
|
+ equipmentdayinfo.setRecorddate(d);
|
|
|
+ equipmentdayinfo.setGenecapacity(wtDataMap.get(wt.getId()+"_RFDL"));
|
|
|
+ equipmentdayinfo.setSpeed(wtDataMap.get(wt.getId()+"_AI022"));
|
|
|
+ //维护:RJXSSDL-ZS,RLZSSDL-ZS
|
|
|
+ equipmentdayinfo.setDaynhwhssdl1(wtDataMap.get(wt.getId()+"_RJXSSDL-ZS"));
|
|
|
+ equipmentdayinfo.setDaynhwhssdl2(wtDataMap.get(wt.getId()+"_RLZSSDL-ZS"));
|
|
|
+ //故障:RGZSSDL-ZS,NSZSSDL-ZS
|
|
|
+ equipmentdayinfo.setDaynhgzssdl1(wtDataMap.get(wt.getId()+"_RGZSSDL-ZS"));
|
|
|
+ equipmentdayinfo.setDaynhgzssdl2(wtDataMap.get(wt.getId()+"_NSZSSDL-ZS"));
|
|
|
+ //限电:RQFSSDL-ZS,RXDSSDL-ZS
|
|
|
+ equipmentdayinfo.setDaynhxdssdl1(wtDataMap.get(wt.getId()+"_RQFSSDL-ZS"));
|
|
|
+ equipmentdayinfo.setDaynhxdssdl2(wtDataMap.get(wt.getId()+"_RXDSSDL-ZS"));
|
|
|
+ //性能:RDJSSDL-ZS,RSTSSDL-ZS,RXNSSDL-ZS,RQXSSDL-ZS
|
|
|
+ equipmentdayinfo.setDaynhqfdl1(wtDataMap.get(wt.getId()+"_RDJSSDL-ZS"));
|
|
|
+ equipmentdayinfo.setDaynhqfdl2(wtDataMap.get(wt.getId()+"_RSTSSDL-ZS"));
|
|
|
+ equipmentdayinfo.setDaynhqfdl3(wtDataMap.get(wt.getId()+"_RXNSSDL-ZS"));
|
|
|
+ equipmentdayinfo.setDaynhqfdl4(wtDataMap.get(wt.getId()+"_RQXSSDL-ZS"));
|
|
|
+ //受累:RWZSSDL-ZS,RTZSSDL-ZS
|
|
|
+ equipmentdayinfo.setDaynhcfdl1(wtDataMap.get(wt.getId()+"_RWZSSDL-ZS"));
|
|
|
+ equipmentdayinfo.setDaynhcfdl2(wtDataMap.get(wt.getId()+"_RTZSSDL-ZS"));
|
|
|
+
|
|
|
+ equipmentdayinfo.setTherogenecapacity(equipmentdayinfo.getGenecapacity()+equipmentdayinfo.getDaynhwhssdl1()+equipmentdayinfo.getDaynhwhssdl2()
|
|
|
+ +equipmentdayinfo.getDaynhgzssdl1()+equipmentdayinfo.getDaynhgzssdl2()
|
|
|
+ +equipmentdayinfo.getDaynhxdssdl1()+equipmentdayinfo.getDaynhxdssdl2()
|
|
|
+ +equipmentdayinfo.getDaynhqfdl1()+equipmentdayinfo.getDaynhqfdl2()+equipmentdayinfo.getDaynhqfdl3()+equipmentdayinfo.getDaynhqfdl4()
|
|
|
+ +equipmentdayinfo.getDaynhcfdl1()+equipmentdayinfo.getDaynhcfdl2());
|
|
|
+ resultList.add(equipmentdayinfo);
|
|
|
+ });
|
|
|
+ BatchUpdateUtils batchUpdateUtils = new BatchUpdateUtils();
|
|
|
+ batchUpdateUtils.batchEquipmentdetailedInsert(resultList);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取两日期间日期list
|
|
|
+ *
|
|
|
+ * @param beginDate
|
|
|
+ * @param endDate
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public static List<String> getDays(String beginDate, String endDate) {
|
|
|
+ List<String> days = null;
|
|
|
+ if (StringUtils.isNotEmpty(beginDate) && StringUtils.isNotEmpty(endDate)) {
|
|
|
+ days = DateUtils.getDays(beginDate, endDate);
|
|
|
+ } else {
|
|
|
+ days = new ArrayList<>();
|
|
|
+ days.add(DateUtils.getYesterdayStr("yyyy-MM-dd"));
|
|
|
+ }
|
|
|
+ return days;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 风机绩效榜
|
|
|
+ * @param wpids
|
|
|
+ * @param projectids
|
|
|
+ * @param lineids
|
|
|
+ * @param beginDate
|
|
|
+ * @param endDate
|
|
|
+ * @param type
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<FjjxbVo> fjjxb(String wpids, String projectids, String lineids, String beginDate, String endDate, String type) {
|
|
|
+ StringBuilder sb = new StringBuilder();
|
|
|
+ if (type.equals("1") ){
|
|
|
+ sb.append("select windpowerstationid as name, ");
|
|
|
+ }else if (type.equals("2")){
|
|
|
+ sb.append("select projectid as name, ");
|
|
|
+ } else if (type.equals("3")){
|
|
|
+ sb.append("select lineid as name, ");
|
|
|
+ }else {
|
|
|
+ sb.append("select windturbineid as name, ");
|
|
|
+ }
|
|
|
+ sb.append("sum(genecapacity) sjfdl,sum(therogenecapacity) llfdl,sum(speed) speed,sum(daynhwhssdl) jhjx,sum(daynhgzssdl) fjhjx,sum(daynhxdssdl) xd,sum(daynhqfdl) xn,sum(daynhcfdl) sl " +
|
|
|
+ " from gyee_test.equipmentdayinfo where recorddate>=to_date('");
|
|
|
+ sb.append(beginDate).append("','yyyy-MM-dd') and recorddate<=to_date('");
|
|
|
+ sb.append(endDate).append("','yyyy-MM-dd') ");
|
|
|
+ if (StringUtils.isNotEmpty(wpids)){
|
|
|
+ sb.append(" and (");
|
|
|
+ String[] wpArray = wpids.split(",");
|
|
|
+ for (String s : wpArray) {
|
|
|
+ sb.append(" windpowerstationid = '").append(s).append("' or");
|
|
|
+ }
|
|
|
+ sb = new StringBuilder(sb.substring(0, sb.length() - 2));
|
|
|
+ sb.append(")");
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(projectids)){
|
|
|
+ sb.append(" and (");
|
|
|
+ String[] wpArray = wpids.split(",");
|
|
|
+ for (String s : wpArray) {
|
|
|
+ sb.append(" projectid = '").append(s).append("' or");
|
|
|
+ }
|
|
|
+ sb = new StringBuilder(sb.substring(0, sb.length() - 2));
|
|
|
+ sb.append(")");
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(lineids)){
|
|
|
+ sb.append(" and (");
|
|
|
+ String[] wpArray = wpids.split(",");
|
|
|
+ for (String s : wpArray) {
|
|
|
+ sb.append(" lineid = '").append(s).append("' or");
|
|
|
+ }
|
|
|
+ sb = new StringBuilder(sb.substring(0, sb.length() - 2));
|
|
|
+ sb.append(")");
|
|
|
+ }
|
|
|
+ if (type.equals("1")){
|
|
|
+ sb.append(" group by windpowerstationid");
|
|
|
+ }else if(type.equals("2")){
|
|
|
+ sb.append(" group by projectid");
|
|
|
+ }else if(type.equals("3")){
|
|
|
+ sb.append(" group by lineid");
|
|
|
+ }else{
|
|
|
+ sb.append(" group by windturbineid");
|
|
|
+ }
|
|
|
+ List<FjjxbVo> list = jdbcTemplate.query(String.valueOf(sb), new BeanPropertyRowMapper(FjjxbVo.class));
|
|
|
+ AtomicReference<Double> llfdl = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> sjfdl = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> pjfs = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> wh = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> gz = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> xd = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> xn = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> sl = new AtomicReference<>((double) 0);
|
|
|
+ list.stream().forEach(i->{
|
|
|
+ i.setFnlly(i.getLlfdl()!=0?i.getSjfdl()/i.getLlfdl()*100:0);
|
|
|
+ llfdl.updateAndGet(v -> new Double((double) (v + i.getLlfdl())));
|
|
|
+ sjfdl.updateAndGet(v -> new Double((double) (v + i.getSjfdl())));
|
|
|
+ pjfs.updateAndGet(v -> new Double((double) (v + i.getSpeed())));
|
|
|
+ wh.updateAndGet(v -> new Double((double) (v + i.getJhjx())));
|
|
|
+ gz.updateAndGet(v -> new Double((double) (v + i.getFjhjx())));
|
|
|
+ xd.updateAndGet(v -> new Double((double) (v + i.getXd())));
|
|
|
+ xn.updateAndGet(v -> new Double((double) (v + i.getXn())));
|
|
|
+ sl.updateAndGet(v -> new Double((double) (v + i.getSl())));
|
|
|
+ });
|
|
|
+ FjjxbVo vo = new FjjxbVo();
|
|
|
+ vo.setName("合计");
|
|
|
+ vo.setSjfdl(sjfdl.get().doubleValue());
|
|
|
+ vo.setLlfdl(llfdl.get().doubleValue());
|
|
|
+ vo.setSpeed(list.size()!=0?pjfs.get().doubleValue()/list.size():0);
|
|
|
+ vo.setJhjx(wh.get().doubleValue());
|
|
|
+ vo.setFjhjx(gz.get().doubleValue());
|
|
|
+ vo.setXd(xd.get().doubleValue());
|
|
|
+ vo.setXn(xn.get().doubleValue());
|
|
|
+ vo.setSl(sl.get().doubleValue());
|
|
|
+ vo.setFnlly(vo.getLlfdl()!=0?vo.getSjfdl()/vo.getLlfdl()*100:0);
|
|
|
+ list.add(vo);
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 风机绩效榜明细
|
|
|
+ * @param wpids
|
|
|
+ * @param projectids
|
|
|
+ * @param lineids
|
|
|
+ * @param beginDate
|
|
|
+ * @param endDate
|
|
|
+ * @param type
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<FjjxbmxVo> fjjxbmx(String wpids, String projectids, String lineids, String beginDate, String endDate, String type) {
|
|
|
+ StringBuilder sb = new StringBuilder();
|
|
|
+ if (type.equals("1") ){
|
|
|
+ sb.append("select windpowerstationid as name, ");
|
|
|
+ }else if (type.equals("2")){
|
|
|
+ sb.append("select projectid as name, ");
|
|
|
+ } else if (type.equals("3")){
|
|
|
+ sb.append("select lineid as name, ");
|
|
|
+ }else {
|
|
|
+ sb.append("select windturbineid as name, ");
|
|
|
+ }
|
|
|
+ sb.append("sum(genecapacity) sjfdl,sum(therogenecapacity) llfdl,sum(speed) speed,sum(daynhwhssdl) jhjx1,sum(daynhwhssdl) jhjx2," +
|
|
|
+ "sum(daynhgzssdl1) fjhjx1,sum(daynhgzssdl2) fjhjx2," +
|
|
|
+ "sum(daynhxdssdl1) xd1,sum(daynhxdssdl2) xd2," +
|
|
|
+ "sum(daynhqfdl1) xn1,sum(daynhqfdl2) xn2,sum(daynhqfdl3) xn3,sum(daynhqfdl4) xn4," +
|
|
|
+ "sum(daynhcfdl1) sl1,sum(daynhcfdl2) sl2 " +
|
|
|
+ " from gyee_test.equipmentdayinfo where recorddate>=to_date('");
|
|
|
+ sb.append(beginDate).append("','yyyy-MM-dd') and recorddate<=to_date('");
|
|
|
+ sb.append(endDate).append("','yyyy-MM-dd') ");
|
|
|
+ if (StringUtils.isNotEmpty(wpids)){
|
|
|
+ sb.append(" and (");
|
|
|
+ String[] wpArray = wpids.split(",");
|
|
|
+ for (String s : wpArray) {
|
|
|
+ sb.append(" windpowerstationid = '").append(s).append("' or");
|
|
|
+ }
|
|
|
+ sb = new StringBuilder(sb.substring(0, sb.length() - 2));
|
|
|
+ sb.append(")");
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(projectids)){
|
|
|
+ sb.append(" and (");
|
|
|
+ String[] wpArray = wpids.split(",");
|
|
|
+ for (String s : wpArray) {
|
|
|
+ sb.append(" projectid = '").append(s).append("' or");
|
|
|
+ }
|
|
|
+ sb = new StringBuilder(sb.substring(0, sb.length() - 2));
|
|
|
+ sb.append(")");
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(lineids)){
|
|
|
+ sb.append(" and (");
|
|
|
+ String[] wpArray = wpids.split(",");
|
|
|
+ for (String s : wpArray) {
|
|
|
+ sb.append(" lineid = '").append(s).append("' or");
|
|
|
+ }
|
|
|
+ sb = new StringBuilder(sb.substring(0, sb.length() - 2));
|
|
|
+ sb.append(")");
|
|
|
+ }
|
|
|
+ if (type.equals("1")){
|
|
|
+ sb.append(" group by windpowerstationid");
|
|
|
+ }else if(type.equals("2")){
|
|
|
+ sb.append(" group by projectid");
|
|
|
+ }else if(type.equals("3")){
|
|
|
+ sb.append(" group by lineid");
|
|
|
+ }else{
|
|
|
+ sb.append(" group by windturbineid");
|
|
|
+ }
|
|
|
+ List<FjjxbmxVo> list = jdbcTemplate.query(String.valueOf(sb), new BeanPropertyRowMapper(FjjxbmxVo.class));
|
|
|
+ AtomicReference<Double> llfdl = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> sjfdl = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> pjfs = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> wh1 = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> wh2 = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> gz1 = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> gz2 = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> xd1 = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> xd2 = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> xn1 = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> xn2 = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> xn3 = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> xn4 = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> sl1 = new AtomicReference<>((double) 0);
|
|
|
+ AtomicReference<Double> sl2 = new AtomicReference<>((double) 0);
|
|
|
+ list.stream().forEach(i->{
|
|
|
+ i.setFnlly(i.getLlfdl()!=0?i.getSjfdl()/i.getLlfdl()*100:0);
|
|
|
+ llfdl.updateAndGet(v -> new Double((double) (v + i.getLlfdl())));
|
|
|
+ sjfdl.updateAndGet(v -> new Double((double) (v + i.getSjfdl())));
|
|
|
+ pjfs.updateAndGet(v -> new Double((double) (v + i.getSpeed())));
|
|
|
+ wh1.updateAndGet(v -> new Double((double) (v + i.getJhjx1())));
|
|
|
+ wh2.updateAndGet(v -> new Double((double) (v + i.getJhjx2())));
|
|
|
+ gz1.updateAndGet(v -> new Double((double) (v + i.getFjhjx1())));
|
|
|
+ gz2.updateAndGet(v -> new Double((double) (v + i.getFjhjx2())));
|
|
|
+ xd1.updateAndGet(v -> new Double((double) (v + i.getXd1())));
|
|
|
+ xd2.updateAndGet(v -> new Double((double) (v + i.getXd2())));
|
|
|
+ xn1.updateAndGet(v -> new Double((double) (v + i.getXn1())));
|
|
|
+ xn2.updateAndGet(v -> new Double((double) (v + i.getXn2())));
|
|
|
+ xn3.updateAndGet(v -> new Double((double) (v + i.getXn3())));
|
|
|
+ xn4.updateAndGet(v -> new Double((double) (v + i.getXn4())));
|
|
|
+ sl1.updateAndGet(v -> new Double((double) (v + i.getSl1())));
|
|
|
+ sl2.updateAndGet(v -> new Double((double) (v + i.getSl2())));
|
|
|
+ });
|
|
|
+ FjjxbmxVo vo = new FjjxbmxVo();
|
|
|
+ vo.setName("合计");
|
|
|
+ vo.setSjfdl(sjfdl.get().doubleValue());
|
|
|
+ vo.setLlfdl(llfdl.get().doubleValue());
|
|
|
+ vo.setSpeed(list.size()!=0?pjfs.get().doubleValue()/list.size():0);
|
|
|
+ vo.setJhjx1(wh1.get().doubleValue());
|
|
|
+ vo.setJhjx2(wh2.get().doubleValue());
|
|
|
+ vo.setFjhjx1(gz1.get().doubleValue());
|
|
|
+ vo.setFjhjx2(gz2.get().doubleValue());
|
|
|
+ vo.setXd1(xd1.get().doubleValue());
|
|
|
+ vo.setXd2(xd2.get().doubleValue());
|
|
|
+ vo.setXn1(xn1.get().doubleValue());
|
|
|
+ vo.setXn2(xn2.get().doubleValue());
|
|
|
+ vo.setXn3(xn3.get().doubleValue());
|
|
|
+ vo.setXn4(xn4.get().doubleValue());
|
|
|
+ vo.setSl1(sl1.get().doubleValue());
|
|
|
+ vo.setSl2(sl2.get().doubleValue());
|
|
|
+ vo.setFnlly(vo.getLlfdl()!=0?vo.getSjfdl()/vo.getLlfdl()*100:0);
|
|
|
+ list.add(vo);
|
|
|
+ return list;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 场站列表
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<Windpowerstation> wplist() {
|
|
|
+
|
|
|
+ List<Windpowerstation> wplist = CacheContext.wplist.stream().filter(i->i.getId().equals("FDC")).collect(Collectors.toList());
|
|
|
+ return wplist;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据场站查询项目列表
|
|
|
+ * @param wpids
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<Project> projectList(String wpids) {
|
|
|
+ List<Project> projects = CacheContext.projects.stream().filter(i -> wpids.contains(i.getWindpowerstationid())).collect(Collectors.toList());
|
|
|
+ return projects;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 根据项目查询线路列表
|
|
|
+ * @param projects
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<Line> lineList(String projects) {
|
|
|
+ List<Line> lines = CacheContext.lines.stream().filter(i -> projects.contains(i.getProjectid())).collect(Collectors.toList());
|
|
|
+ return lines;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 五项损失率
|
|
|
+ * @param wpids
|
|
|
+ * @param projectids
|
|
|
+ * @param lineids
|
|
|
+ * @param beginDate
|
|
|
+ * @param endDate
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<WxsslVo> wxssl(String wpids, String projectids, String lineids, String beginDate, String endDate) {
|
|
|
+ StringBuilder sb = new StringBuilder();
|
|
|
+ if (StringUtils.isNotEmpty(wpids) && StringUtils.isEmpty(projectids) && StringUtils.isEmpty(lineids)){
|
|
|
+ sb.append("select windpowerstationid as name, ");
|
|
|
+ }else if (StringUtils.isNotEmpty(wpids) && StringUtils.isNotEmpty(projectids) && StringUtils.isEmpty(lineids)){
|
|
|
+ sb.append("select projectid as name, ");
|
|
|
+ } else if (StringUtils.isNotEmpty(wpids) && StringUtils.isNotEmpty(projectids) && StringUtils.isNotEmpty(lineids)){
|
|
|
+ sb.append("select lineid as name, ");
|
|
|
+ }else {
|
|
|
+ sb.append("select windpowerstationid as name, ");
|
|
|
+ }
|
|
|
+ sb.append("sum(genecapacity) fdl,sum(therogenecapacity) llfdl,sum(daynhwhssdl) jxssdl,sum(daynhgzssdl) gzssdl,sum(daynhxdssdl) xdssdl,sum(daynhqfdl) xnssdl,sum(daynhcfdl) slssdl " +
|
|
|
+ " from gyee_test.equipmentdayinfo where recorddate>=to_date('");
|
|
|
+ sb.append(beginDate).append("','yyyy-MM-dd') and recorddate<=to_date('");
|
|
|
+ sb.append(endDate).append("','yyyy-MM-dd') ");
|
|
|
+
|
|
|
+ if (StringUtils.isNotEmpty(wpids)){
|
|
|
+ sb.append(" and (");
|
|
|
+ String[] wpArray = wpids.split(",");
|
|
|
+ for (String s : wpArray) {
|
|
|
+ sb.append(" windpowerstationid = '").append(s).append("' or");
|
|
|
+ }
|
|
|
+ sb = new StringBuilder(sb.substring(0, sb.length() - 2));
|
|
|
+ sb.append(")");
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(projectids)){
|
|
|
+ sb.append(" and (");
|
|
|
+ String[] wpArray = wpids.split(",");
|
|
|
+ for (String s : wpArray) {
|
|
|
+ sb.append(" projectid = '").append(s).append("' or");
|
|
|
+ }
|
|
|
+ sb = new StringBuilder(sb.substring(0, sb.length() - 2));
|
|
|
+ sb.append(")");
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(lineids)){
|
|
|
+ sb.append(" and (");
|
|
|
+ String[] wpArray = wpids.split(",");
|
|
|
+ for (String s : wpArray) {
|
|
|
+ sb.append(" lineid = '").append(s).append("' or");
|
|
|
+ }
|
|
|
+ sb = new StringBuilder(sb.substring(0, sb.length() - 2));
|
|
|
+ sb.append(")");
|
|
|
+ }
|
|
|
+
|
|
|
+ if (StringUtils.isNotEmpty(wpids) && StringUtils.isEmpty(projectids) && StringUtils.isEmpty(lineids)){
|
|
|
+ sb.append(" group by windpowerstationid ");
|
|
|
+ }else if (StringUtils.isNotEmpty(wpids) && StringUtils.isNotEmpty(projectids) && StringUtils.isEmpty(lineids)){
|
|
|
+ sb.append(" group by projectid");
|
|
|
+ } else if (StringUtils.isNotEmpty(wpids) && StringUtils.isNotEmpty(projectids) && StringUtils.isNotEmpty(lineids)){
|
|
|
+ sb.append(" group by lineid");
|
|
|
+ }else {
|
|
|
+ sb.append(" group by windpowerstationid ");
|
|
|
+ }
|
|
|
+
|
|
|
+ List<WxsslVo> wxsslVoList = jdbcTemplate.query(String.valueOf(sb), new BeanPropertyRowMapper(WxsslVo.class));
|
|
|
+ wxsslVoList.stream().forEach(i->{
|
|
|
+ i.setZssdl(i.getGzssdl()+i.getJxssdl()+i.getXdssdl()+i.getXnssdl()+i.getSlssdl());
|
|
|
+ i.setGzssl(i.getLlfdl()!=0?i.getGzssdl()/i.getLlfdl()*100:0);
|
|
|
+ i.setJxssl(i.getLlfdl()!=0?i.getJxssdl()/i.getLlfdl()*100:0);
|
|
|
+ i.setQfl(i.getLlfdl()!=0?i.getXdssdl()/i.getLlfdl()*100:0);
|
|
|
+ i.setXnssl(i.getLlfdl()!=0?i.getXnssdl()/i.getLlfdl()*100:0);
|
|
|
+ i.setSlssl(i.getLlfdl()!=0?i.getSlssdl()/i.getLlfdl()*100:0);
|
|
|
+ });
|
|
|
+ SortUtils.sort(wxsslVoList,"zssdl",SortUtils.ASC);
|
|
|
+ for (int i=0;i<wxsslVoList.size();i++){
|
|
|
+ wxsslVoList.get(i).setZhpm(i+1);
|
|
|
+ }
|
|
|
+ SortUtils.sort(wxsslVoList,"gzssdl",SortUtils.ASC);
|
|
|
+ for (int i=0;i<wxsslVoList.size();i++){
|
|
|
+ wxsslVoList.get(i).setGzssdlpm(i+1);
|
|
|
+ }
|
|
|
+ SortUtils.sort(wxsslVoList,"gzssl",SortUtils.ASC);
|
|
|
+ for (int i=0;i<wxsslVoList.size();i++){
|
|
|
+ wxsslVoList.get(i).setGzsslpm(i+1);
|
|
|
+ }
|
|
|
+ SortUtils.sort(wxsslVoList,"jxssdl",SortUtils.ASC);
|
|
|
+ for (int i=0;i<wxsslVoList.size();i++){
|
|
|
+ wxsslVoList.get(i).setJxssdlpm(i+1);
|
|
|
+ }
|
|
|
+ SortUtils.sort(wxsslVoList,"jxssl",SortUtils.ASC);
|
|
|
+ for (int i=0;i<wxsslVoList.size();i++){
|
|
|
+ wxsslVoList.get(i).setJxsslpm(i+1);
|
|
|
+ }
|
|
|
+ SortUtils.sort(wxsslVoList,"xdssdl",SortUtils.ASC);
|
|
|
+ for (int i=0;i<wxsslVoList.size();i++){
|
|
|
+ wxsslVoList.get(i).setXdssdlpm(i+1);
|
|
|
+ }
|
|
|
+ SortUtils.sort(wxsslVoList,"qfl",SortUtils.ASC);
|
|
|
+ for (int i=0;i<wxsslVoList.size();i++){
|
|
|
+ wxsslVoList.get(i).setQflpm(i+1);
|
|
|
+ }
|
|
|
+ SortUtils.sort(wxsslVoList,"xnssdl",SortUtils.ASC);
|
|
|
+ for (int i=0;i<wxsslVoList.size();i++){
|
|
|
+ wxsslVoList.get(i).setXnssdlpm(i+1);
|
|
|
+ }
|
|
|
+ SortUtils.sort(wxsslVoList,"xnssl",SortUtils.ASC);
|
|
|
+ for (int i=0;i<wxsslVoList.size();i++){
|
|
|
+ wxsslVoList.get(i).setXnsslpm(i+1);
|
|
|
+ }
|
|
|
+ SortUtils.sort(wxsslVoList,"slssdl",SortUtils.ASC);
|
|
|
+ for (int i=0;i<wxsslVoList.size();i++){
|
|
|
+ wxsslVoList.get(i).setSlssdlpm(i+1);
|
|
|
+ }
|
|
|
+ SortUtils.sort(wxsslVoList,"slssl",SortUtils.ASC);
|
|
|
+ for (int i=0;i<wxsslVoList.size();i++){
|
|
|
+ wxsslVoList.get(i).setSlsslpm(i+1);
|
|
|
+ }
|
|
|
+ return wxsslVoList;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 场内对标
|
|
|
+ * @param wpid
|
|
|
+ * @param beginDate
|
|
|
+ * @param endDate
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<WxsslVo> cndb(String wpid, String beginDate, String endDate) {
|
|
|
+ StringBuilder sb = new StringBuilder();
|
|
|
+ sb.append("select recorddate,sum(genecapacity) fdl,sum(therogenecapacity) llfdl,sum(daynhwhssdl) jxssdl,sum(daynhgzssdl) gzssdl,sum(daynhxdssdl) xdssdl,sum(daynhqfdl) xnssdl,sum(daynhcfdl) slssdl " +
|
|
|
+ " from gyee_test.equipmentdayinfo where recorddate>=to_date('");
|
|
|
+ sb.append(beginDate).append("','yyyy-MM-dd') and recorddate<=to_date('");
|
|
|
+ sb.append(endDate).append("','yyyy-MM-dd') ");
|
|
|
+ if (StringUtils.isNotEmpty(wpid)){
|
|
|
+ sb.append(" and windpowerstationid='").append(wpid).append("'");
|
|
|
+ }
|
|
|
+ sb.append(" group by recorddate");
|
|
|
+ List<WxsslVo> wxsslVoList = getWxsslSortVos(sb);
|
|
|
+ return wxsslVoList;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 场际对标
|
|
|
+ * @param wpids
|
|
|
+ * @param beginDate
|
|
|
+ * @param endDate
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<WxsslVo> cjdb(String wpids, String beginDate, String endDate) {
|
|
|
+ StringBuilder sb = new StringBuilder();
|
|
|
+
|
|
|
+ sb.append("select windpowerstationid as name ,sum(genecapacity) fdl,sum(therogenecapacity) llfdl,sum(daynhwhssdl) jxssdl,sum(daynhgzssdl) gzssdl,sum(daynhxdssdl) xdssdl,sum(daynhqfdl) xnssdl,sum(daynhcfdl) slssdl " +
|
|
|
+ " from gyee_test.equipmentdayinfo where recorddate>=to_date('");
|
|
|
+ sb.append(beginDate).append("','yyyy-MM-dd') and recorddate<=to_date('");
|
|
|
+ sb.append(endDate).append("','yyyy-MM-dd') ");
|
|
|
+ if (StringUtils.isNotEmpty(wpids)){
|
|
|
+ sb.append(" and (");
|
|
|
+ String[] wpArray = wpids.split(",");
|
|
|
+ for (String s : wpArray) {
|
|
|
+ sb.append(" windpowerstationid = '").append(s).append("' or");
|
|
|
+ }
|
|
|
+ sb = new StringBuilder(sb.substring(0, sb.length() - 2));
|
|
|
+ sb.append(")");
|
|
|
+ }
|
|
|
+ sb.append(" group by windpowerstationid");
|
|
|
+ List<WxsslVo> wxsslVoList = getWxsslSortVos(sb);
|
|
|
+ return wxsslVoList;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 项目对标
|
|
|
+ * @param wpids
|
|
|
+ * @param projectids
|
|
|
+ * @param beginDate
|
|
|
+ * @param endDate
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<WxsslVo> xmdb(String wpids, String projectids, String beginDate, String endDate) {
|
|
|
+ StringBuilder sb = new StringBuilder();
|
|
|
+
|
|
|
+ sb.append("select projectid as name ,sum(genecapacity) fdl,sum(therogenecapacity) llfdl,sum(daynhwhssdl) jxssdl,sum(daynhgzssdl) gzssdl,sum(daynhxdssdl) xdssdl,sum(daynhqfdl) xnssdl,sum(daynhcfdl) slssdl " +
|
|
|
+ " from gyee_test.equipmentdayinfo where recorddate>=to_date('");
|
|
|
+ sb.append(beginDate).append("','yyyy-MM-dd') and recorddate<=to_date('");
|
|
|
+ sb.append(endDate).append("','yyyy-MM-dd') ");
|
|
|
+ if (StringUtils.isNotEmpty(wpids)){
|
|
|
+ sb.append(" and (");
|
|
|
+ String[] wpArray = wpids.split(",");
|
|
|
+ for (String s : wpArray) {
|
|
|
+ sb.append(" windpowerstationid = '").append(s).append("' or");
|
|
|
+ }
|
|
|
+ sb = new StringBuilder(sb.substring(0, sb.length() - 2));
|
|
|
+ sb.append(")");
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(projectids)){
|
|
|
+ sb.append(" and (");
|
|
|
+ String[] wpArray = wpids.split(",");
|
|
|
+ for (String s : wpArray) {
|
|
|
+ sb.append(" projectid = '").append(s).append("' or");
|
|
|
+ }
|
|
|
+ sb = new StringBuilder(sb.substring(0, sb.length() - 2));
|
|
|
+ sb.append(")");
|
|
|
+ }
|
|
|
+ sb.append(" group by projectid");
|
|
|
+ List<WxsslVo> wxsslVoList = getWxsslSortVos(sb);
|
|
|
+ return wxsslVoList;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 线路对标
|
|
|
+ * @param wpids
|
|
|
+ * @param projectids
|
|
|
+ * @param lineids
|
|
|
+ * @param beginDate
|
|
|
+ * @param endDate
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<WxsslVo> xldb(String wpids, String projectids, String lineids, String beginDate, String endDate) {
|
|
|
+ StringBuilder sb = new StringBuilder();
|
|
|
+
|
|
|
+ sb.append("select lineid as name ,sum(genecapacity) fdl,sum(therogenecapacity) llfdl,sum(daynhwhssdl) jxssdl,sum(daynhgzssdl) gzssdl,sum(daynhxdssdl) xdssdl,sum(daynhqfdl) xnssdl,sum(daynhcfdl) slssdl " +
|
|
|
+ " from gyee_test.equipmentdayinfo where recorddate>=to_date('");
|
|
|
+ sb.append(beginDate).append("','yyyy-MM-dd') and recorddate<=to_date('");
|
|
|
+ sb.append(endDate).append("','yyyy-MM-dd') ");
|
|
|
+ if (StringUtils.isNotEmpty(wpids)){
|
|
|
+ sb.append(" and (");
|
|
|
+ String[] wpArray = wpids.split(",");
|
|
|
+ for (String s : wpArray) {
|
|
|
+ sb.append(" windpowerstationid = '").append(s).append("' or");
|
|
|
+ }
|
|
|
+ sb = new StringBuilder(sb.substring(0, sb.length() - 2));
|
|
|
+ sb.append(")");
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(projectids)){
|
|
|
+ sb.append(" and (");
|
|
|
+ String[] wpArray = wpids.split(",");
|
|
|
+ for (String s : wpArray) {
|
|
|
+ sb.append(" projectid = '").append(s).append("' or");
|
|
|
+ }
|
|
|
+ sb = new StringBuilder(sb.substring(0, sb.length() - 2));
|
|
|
+ sb.append(")");
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(lineids)){
|
|
|
+ sb.append(" and (");
|
|
|
+ String[] wpArray = wpids.split(",");
|
|
|
+ for (String s : wpArray) {
|
|
|
+ sb.append(" lineid = '").append(s).append("' or");
|
|
|
+ }
|
|
|
+ sb = new StringBuilder(sb.substring(0, sb.length() - 2));
|
|
|
+ sb.append(")");
|
|
|
+ }
|
|
|
+ sb.append(" group by lineid");
|
|
|
+ List<WxsslVo> wxsslVoList = getWxsslSortVos(sb);
|
|
|
+ return wxsslVoList;
|
|
|
+ }
|
|
|
+
|
|
|
+ private List<WxsslVo> getWxsslSortVos(StringBuilder sb) {
|
|
|
+ List<WxsslVo> wxsslVoList = jdbcTemplate.query(String.valueOf(sb), new BeanPropertyRowMapper(WxsslVo.class));
|
|
|
+ wxsslVoList.stream().forEach(i->{
|
|
|
+ i.setFnlyl(i.getLlfdl()!=0?i.getFdl()/i.getLlfdl()*100:0);
|
|
|
+ i.setGzssl(i.getLlfdl()!=0?i.getGzssdl()/i.getLlfdl()*100:0);
|
|
|
+ i.setJxssl(i.getLlfdl()!=0?i.getJxssdl()/i.getLlfdl()*100:0);
|
|
|
+ i.setQfl(i.getLlfdl()!=0?i.getXdssdl()/i.getLlfdl()*100:0);
|
|
|
+ i.setXnssl(i.getLlfdl()!=0?i.getXnssdl()/i.getLlfdl()*100:0);
|
|
|
+ i.setSlssl(i.getLlfdl()!=0?i.getSlssdl()/i.getLlfdl()*100:0);
|
|
|
+ });
|
|
|
+ SortUtils.sort(wxsslVoList,"llfdl",SortUtils.DESC);
|
|
|
+ for (int i=0;i<wxsslVoList.size();i++){
|
|
|
+ wxsslVoList.get(i).setZhpm(i+1);
|
|
|
+ }
|
|
|
+ SortUtils.sort(wxsslVoList,"fdl",SortUtils.DESC);
|
|
|
+ for (int i=0;i<wxsslVoList.size();i++){
|
|
|
+ wxsslVoList.get(i).setFdlpm(i+1);
|
|
|
+ }
|
|
|
+ SortUtils.sort(wxsslVoList,"fnlyl",SortUtils.DESC);
|
|
|
+ for (int i=0;i<wxsslVoList.size();i++){
|
|
|
+ wxsslVoList.get(i).setFnlylpm(i+1);
|
|
|
+ }
|
|
|
+ SortUtils.sort(wxsslVoList,"gzssdl",SortUtils.ASC);
|
|
|
+ for (int i=0;i<wxsslVoList.size();i++){
|
|
|
+ wxsslVoList.get(i).setGzssdlpm(i+1);
|
|
|
+ }
|
|
|
+ SortUtils.sort(wxsslVoList,"gzssl",SortUtils.ASC);
|
|
|
+ for (int i=0;i<wxsslVoList.size();i++){
|
|
|
+ wxsslVoList.get(i).setGzsslpm(i+1);
|
|
|
+ }
|
|
|
+ SortUtils.sort(wxsslVoList,"jxssdl",SortUtils.ASC);
|
|
|
+ for (int i=0;i<wxsslVoList.size();i++){
|
|
|
+ wxsslVoList.get(i).setJxssdlpm(i+1);
|
|
|
+ }
|
|
|
+ SortUtils.sort(wxsslVoList,"jxssl",SortUtils.ASC);
|
|
|
+ for (int i=0;i<wxsslVoList.size();i++){
|
|
|
+ wxsslVoList.get(i).setJxsslpm(i+1);
|
|
|
+ }
|
|
|
+ SortUtils.sort(wxsslVoList,"xdssdl",SortUtils.ASC);
|
|
|
+ for (int i=0;i<wxsslVoList.size();i++){
|
|
|
+ wxsslVoList.get(i).setXdssdlpm(i+1);
|
|
|
+ }
|
|
|
+ SortUtils.sort(wxsslVoList,"qfl",SortUtils.ASC);
|
|
|
+ for (int i=0;i<wxsslVoList.size();i++){
|
|
|
+ wxsslVoList.get(i).setQflpm(i+1);
|
|
|
+ }
|
|
|
+ SortUtils.sort(wxsslVoList,"xnssdl",SortUtils.ASC);
|
|
|
+ for (int i=0;i<wxsslVoList.size();i++){
|
|
|
+ wxsslVoList.get(i).setXnssdlpm(i+1);
|
|
|
+ }
|
|
|
+ SortUtils.sort(wxsslVoList,"xnssl",SortUtils.ASC);
|
|
|
+ for (int i=0;i<wxsslVoList.size();i++){
|
|
|
+ wxsslVoList.get(i).setXnsslpm(i+1);
|
|
|
+ }
|
|
|
+ SortUtils.sort(wxsslVoList,"slssdl",SortUtils.ASC);
|
|
|
+ for (int i=0;i<wxsslVoList.size();i++){
|
|
|
+ wxsslVoList.get(i).setSlssdlpm(i+1);
|
|
|
+ }
|
|
|
+ SortUtils.sort(wxsslVoList,"slssl",SortUtils.ASC);
|
|
|
+ for (int i=0;i<wxsslVoList.size();i++){
|
|
|
+ wxsslVoList.get(i).setSlsslpm(i+1);
|
|
|
+ }
|
|
|
+ return wxsslVoList;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+}
|