Parcourir la source

增加生产日报数据返回接口

wangb il y a 1 semaine
Parent
commit
dd6769c9cb

+ 13 - 0
runeconomy-xk/src/main/java/com/gyee/runeconomy/controller/ProEconEquipmentInfoJsController.java

@@ -2,6 +2,7 @@ package com.gyee.runeconomy.controller;
 
 
 import com.gyee.runeconomy.model.ProEconEquipmentInfoJs;
+import com.gyee.runeconomy.model.vo.ProductionDailyReportVo;
 import com.gyee.runeconomy.service.ProEconEquipmentInfoJsService;
 import org.springframework.web.bind.annotation.*;
 
@@ -24,6 +25,18 @@ public class ProEconEquipmentInfoJsController {
     @Resource
     private ProEconEquipmentInfoJsService proEconEquipmentInfoJsService;
 
+
+    /**
+     * 生产日报数据返回
+     */
+    @GetMapping("/queryAll")
+    public ProductionDailyReportVo queryAll(@RequestParam("date") String date) throws Exception {
+
+        return proEconEquipmentInfoJsService.queryAll(date);
+
+    }
+
+
     /**
      * 查询单个记录
      */

+ 2 - 0
runeconomy-xk/src/main/java/com/gyee/runeconomy/service/ProEconEquipmentInfoJsService.java

@@ -2,6 +2,7 @@ package com.gyee.runeconomy.service;
 
 import com.gyee.runeconomy.model.ProEconEquipmentInfoJs;
 import com.baomidou.mybatisplus.extension.service.IService;
+import com.gyee.runeconomy.model.vo.ProductionDailyReportVo;
 
 import java.util.List;
 import java.util.Map;
@@ -20,4 +21,5 @@ public interface ProEconEquipmentInfoJsService extends IService<ProEconEquipment
 
     boolean update(List<ProEconEquipmentInfoJs> jsls);
 
+    ProductionDailyReportVo queryAll(String date) throws Exception;
 }

+ 231 - 1
runeconomy-xk/src/main/java/com/gyee/runeconomy/service/impl/ProEconEquipmentInfoJsServiceImpl.java

@@ -1,14 +1,24 @@
 package com.gyee.runeconomy.service.impl;
 
+import cn.hutool.core.date.DateTime;
+import cn.hutool.core.date.DateUtil;
+import cn.hutool.core.util.NumberUtil;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.gyee.common.model.PointData;
 import com.gyee.runeconomy.model.ProEconEquipmentInfoJs;
 import com.gyee.runeconomy.mapper.ProEconEquipmentInfoJsMapper;
+import com.gyee.runeconomy.model.vo.ProductionDailyReport;
+import com.gyee.runeconomy.model.vo.ProductionDailyReportVo;
 import com.gyee.runeconomy.service.ProEconEquipmentInfoJsService;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.gyee.runeconomy.util.realtimesource.EdosUtil;
+import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;
 
+import javax.annotation.Resource;
 import java.time.LocalDate;
 import java.util.*;
+import java.util.stream.Collectors;
 
 /**
  * <p>
@@ -21,12 +31,232 @@ import java.util.*;
 @Service
 public class ProEconEquipmentInfoJsServiceImpl extends ServiceImpl<ProEconEquipmentInfoJsMapper, ProEconEquipmentInfoJs> implements ProEconEquipmentInfoJsService {
 
+    @Value("${report.js}")
+    private String js;
+
+    @Resource
+    private EdosUtil edosUtil;
+
+    @Override
+    public ProductionDailyReportVo queryAll(String date) throws Exception {
+        LocalDate recordDate = LocalDate.parse(date);
+        QueryWrapper<ProEconEquipmentInfoJs> qw = new QueryWrapper<>();
+        qw.lambda().eq(ProEconEquipmentInfoJs::getRecordDate, recordDate)
+                .in(ProEconEquipmentInfoJs::getMeterName, Arrays.asList(js.split(",")));
+        List<ProEconEquipmentInfoJs> jsls = list(qw);
+        Map<String, List<ProEconEquipmentInfoJs>> jsMap = jsls.stream().collect(Collectors.groupingBy(ProEconEquipmentInfoJs::getMeterName));
+
+        ProductionDailyReportVo revo = new ProductionDailyReportVo();
+
+        ProductionDailyReport fdl_jh = new ProductionDailyReport();
+        DateTime dateTime = DateUtil.parse(date);
+        DateTime beginOfMonth = DateUtil.beginOfMonth(dateTime);
+        Long s = beginOfMonth.getTime() / 1000;
+        Long e = dateTime.getTime() / 1000;
+        double yjh = 0.0;
+        double njh = 0.0;
+        List<PointData> yjhpd = edosUtil.getHistoryDatasRaw("区域集控.惠安风场.统计计算.月计划输入值", s, e);
+        if (null != yjhpd && !yjhpd.isEmpty()) {
+            yjh = yjhpd.get(yjhpd.size() - 1).getPointValueInDouble();
+        }
+        List<PointData> njhpd = edosUtil.getHistoryDatasRaw("区域集控.惠安风场.统计计算.年计划输入值", s, e);
+        if (null != njhpd && !njhpd.isEmpty()) {
+            njh = njhpd.get(njhpd.size() - 1).getPointValueInDouble();
+        }
+
+        int day = DateUtil.endOfMonth(dateTime).dayOfMonth();
+        fdl_jh.setAll_bq(NumberUtil.round(yjh / day, 4).doubleValue());
+        fdl_jh.setAll_month(NumberUtil.round(yjh, 4).doubleValue());
+        fdl_jh.setAll_year(NumberUtil.round(njh, 4).doubleValue());
+        fdl_jh.setProject1_month(NumberUtil.round(yjh / 2, 4).doubleValue());
+        fdl_jh.setProject1_bq(NumberUtil.round(fdl_jh.getProject1_month() / day, 4).doubleValue());
+        fdl_jh.setProject1_year(NumberUtil.round(njh / 2, 4).doubleValue());
+        fdl_jh.setProject2_bq(NumberUtil.round(fdl_jh.getProject1_month() / day, 4).doubleValue());
+        fdl_jh.setProject2_month(NumberUtil.round(yjh / 2, 4).doubleValue());
+        fdl_jh.setProject2_year(NumberUtil.round(njh / 2, 4).doubleValue());
+        revo.setFdl_plan(fdl_jh);
+
+        ProductionDailyReport fdl_actual = new ProductionDailyReport();
+        Double bq1_actual = jsMap.get("区域集控.惠安风场.一期本期实际发电量").get(0).getStopCode();
+        Double bq2_actual = jsMap.get("区域集控.惠安风场.二期本期实际发电量").get(0).getStopCode();
+        fdl_actual.setAll_bq(NumberUtil.round(bq1_actual + bq2_actual, 4).doubleValue());
+        Double mon1_actual = jsMap.get("区域集控.惠安风场.一期月累实际发电量").get(0).getStopCode();
+        Double mon2_actual = jsMap.get("区域集控.惠安风场.二期月累实际发电量").get(0).getStopCode();
+        fdl_actual.setAll_month(NumberUtil.round(mon1_actual + mon2_actual, 4).doubleValue());
+        Double year1_actual = jsMap.get("区域集控.惠安风场.一期年累实际发电量").get(0).getStopCode();
+        Double year2_actual = jsMap.get("区域集控.惠安风场.二期年累实际发电量").get(0).getStopCode();
+        fdl_actual.setAll_year(NumberUtil.round(year1_actual + year2_actual, 4).doubleValue());
+        fdl_actual.setProject1_bq(NumberUtil.round(bq1_actual, 4).doubleValue());
+        fdl_actual.setProject1_month(NumberUtil.round(mon1_actual, 4).doubleValue());
+        fdl_actual.setProject1_year(NumberUtil.round(year1_actual, 4).doubleValue());
+        fdl_actual.setProject2_bq(NumberUtil.round(bq2_actual, 4).doubleValue());
+        fdl_actual.setProject2_month(NumberUtil.round(mon2_actual, 4).doubleValue());
+        fdl_actual.setProject2_year(NumberUtil.round(year2_actual, 4).doubleValue());
+        revo.setFdl_actual(fdl_actual);
+
+        ProductionDailyReport lyxss = new ProductionDailyReport();
+        lyxss.setAll_bq(NumberUtil.round(fdl_actual.getAll_bq() / 10, 4).doubleValue());
+        lyxss.setAll_month(NumberUtil.round(fdl_actual.getAll_month() / 10, 4).doubleValue());
+        lyxss.setAll_year(NumberUtil.round(fdl_actual.getAll_year() / 10, 4).doubleValue());
+        lyxss.setProject1_bq(NumberUtil.round(fdl_actual.getProject1_bq() / 5, 4).doubleValue());
+        lyxss.setProject1_month(NumberUtil.round(fdl_actual.getProject1_month() / 5, 4).doubleValue());
+        lyxss.setProject1_year(NumberUtil.round(fdl_actual.getProject1_year() / 5, 4).doubleValue());
+        lyxss.setProject2_bq(NumberUtil.round(fdl_actual.getProject2_bq() / 5, 4).doubleValue());
+        lyxss.setProject2_month(NumberUtil.round(fdl_actual.getProject2_month() / 5, 4).doubleValue());
+        lyxss.setProject2_year(NumberUtil.round(fdl_actual.getProject2_year() / 5, 4).doubleValue());
+        revo.setLyxss(lyxss);
+
+        ProductionDailyReport pjfs = new ProductionDailyReport();
+        Double bq1_pjfs = jsMap.get("区域集控.惠安风场.一期本期平均风速").get(0).getStopCode();
+        Double bq2_pjfs = jsMap.get("区域集控.惠安风场.二期本期平均风速").get(0).getStopCode();
+        Double month1_pjfs = jsMap.get("区域集控.惠安风场.一期月累平均风速").get(0).getStopCode();
+        Double month2_pjfs = jsMap.get("区域集控.惠安风场.二期月累平均风速").get(0).getStopCode();
+        Double year1_pjfs = jsMap.get("区域集控.惠安风场.一期年累平均风速").get(0).getStopCode();
+        Double year2_pjfs = jsMap.get("区域集控.惠安风场.二期年累平均风速").get(0).getStopCode();
+        pjfs.setAll_bq(NumberUtil.round((bq1_pjfs + bq2_pjfs) / 2, 4).doubleValue());
+        pjfs.setAll_month(NumberUtil.round((month1_pjfs + month2_pjfs) / 2, 4).doubleValue());
+        pjfs.setAll_year(NumberUtil.round((year1_pjfs + year2_pjfs) / 2, 4).doubleValue());
+        pjfs.setProject1_bq(NumberUtil.round(bq1_pjfs, 4).doubleValue());
+        pjfs.setProject1_month(NumberUtil.round(month1_pjfs, 4).doubleValue());
+        pjfs.setProject1_year(NumberUtil.round(year1_pjfs, 4).doubleValue());
+        pjfs.setProject2_bq(NumberUtil.round(bq2_pjfs, 4).doubleValue());
+        pjfs.setProject2_month(NumberUtil.round(month2_pjfs, 4).doubleValue());
+        pjfs.setProject2_year(NumberUtil.round(year2_pjfs, 4).doubleValue());
+        revo.setPjfs(pjfs);
+
+        ProductionDailyReport swdl = new ProductionDailyReport();
+        swdl.setAll_bq(NumberUtil.round(jsMap.get("区域集控.惠安风场.全场本期上网电量").get(0).getStopCode(), 4).doubleValue());
+        swdl.setAll_month(NumberUtil.round(jsMap.get("区域集控.惠安风场.全场月累上网电量").get(0).getStopCode(), 4).doubleValue());
+        swdl.setAll_year(NumberUtil.round(jsMap.get("区域集控.惠安风场.全场年累上网电量").get(0).getStopCode(), 4).doubleValue());
+        revo.setSwdl(swdl);
+
+        ProductionDailyReport wgdl = new ProductionDailyReport();
+        wgdl.setAll_bq(NumberUtil.round(jsMap.get("区域集控.惠安风场.全场本期购网电量").get(0).getStopCode(), 4).doubleValue());
+        wgdl.setAll_month(NumberUtil.round(jsMap.get("区域集控.惠安风场.全场月累购网电量").get(0).getStopCode(), 4).doubleValue());
+        wgdl.setAll_year(NumberUtil.round(jsMap.get("区域集控.惠安风场.全场年累购网电量").get(0).getStopCode(), 4).doubleValue());
+        revo.setWgdl(wgdl);
+
+        ProductionDailyReport xdli = new ProductionDailyReport();
+        xdli.setAll_bq(NumberUtil.round(jsMap.get("区域集控.惠安风场.全场本期限电量").get(0).getStopCode(), 4).doubleValue());
+        xdli.setAll_month(NumberUtil.round(jsMap.get("区域集控.惠安风场.全场月累限电量").get(0).getStopCode(), 4).doubleValue());
+        xdli.setAll_year(NumberUtil.round(jsMap.get("区域集控.惠安风场.全场年累限电量").get(0).getStopCode(), 4).doubleValue());
+        xdli.setProject1_bq(NumberUtil.round(jsMap.get("区域集控.惠安风场.一期本期限电量").get(0).getStopCode(), 4).doubleValue());
+        xdli.setProject1_month(NumberUtil.round(jsMap.get("区域集控.惠安风场.一期月累限电量").get(0).getStopCode(), 4).doubleValue());
+        xdli.setProject1_year(NumberUtil.round(jsMap.get("区域集控.惠安风场.一期年累限电量").get(0).getStopCode(), 4).doubleValue());
+        xdli.setProject2_bq(NumberUtil.round(jsMap.get("区域集控.惠安风场.二期本期限电量").get(0).getStopCode(), 4).doubleValue());
+        xdli.setProject2_month(NumberUtil.round(jsMap.get("区域集控.惠安风场.二期月累限电量").get(0).getStopCode(), 4).doubleValue());
+        xdli.setProject2_year(NumberUtil.round(jsMap.get("区域集控.惠安风场.二期年累限电量").get(0).getStopCode(), 4).doubleValue());
+        revo.setXdli(xdli);
+
+        ProductionDailyReport xdlv = new ProductionDailyReport();
+        Double totalBq = xdli.getAll_bq() + fdl_actual.getAll_bq();
+        Double totalMonth = xdli.getAll_month() + fdl_actual.getAll_month();
+        Double totalYear = xdli.getAll_year() + fdl_actual.getAll_year();
+        Double p1TotalBq = xdli.getProject1_bq() + fdl_actual.getProject1_bq();
+        Double p1TotalMonth = xdli.getProject1_month() + fdl_actual.getProject1_month();
+        Double p1TotalYear = xdli.getProject1_year() + fdl_actual.getProject1_year();
+        Double p2TotalBq = xdli.getProject2_bq() + fdl_actual.getProject2_bq();
+        Double p2TotalMonth = xdli.getProject2_month() + fdl_actual.getProject2_month();
+        Double p2TotalYear = xdli.getProject2_year() + fdl_actual.getProject2_year();
+
+        xdlv.setAll_bq(totalBq != 0 ? NumberUtil.round(xdli.getAll_bq() / totalBq * 100, 4).doubleValue() : 0.0);
+        xdlv.setAll_month(totalMonth != 0 ? NumberUtil.round(xdli.getAll_month() / totalMonth * 100, 4).doubleValue() : 0.0);
+        xdlv.setAll_year(totalYear != 0 ? NumberUtil.round(xdli.getAll_year() / totalYear * 100, 4).doubleValue() : 0.0);
+        xdlv.setProject1_bq(p1TotalBq != 0 ? NumberUtil.round(xdli.getProject1_bq() / p1TotalBq * 100, 4).doubleValue() : 0.0);
+        xdlv.setProject1_month(p1TotalMonth != 0 ? NumberUtil.round(xdli.getProject1_month() / p1TotalMonth * 100, 4).doubleValue() : 0.0);
+        xdlv.setProject1_year(p1TotalYear != 0 ? NumberUtil.round(xdli.getProject1_year() / p1TotalYear * 100, 4).doubleValue() : 0.0);
+        xdlv.setProject2_bq(p2TotalBq != 0 ? NumberUtil.round(xdli.getProject2_bq() / p2TotalBq * 100, 4).doubleValue() : 0.0);
+        xdlv.setProject2_month(p2TotalMonth != 0 ? NumberUtil.round(xdli.getProject2_month() / p2TotalMonth * 100, 4).doubleValue() : 0.0);
+        xdlv.setProject2_year(p2TotalYear != 0 ? NumberUtil.round(xdli.getProject2_year() / p2TotalYear * 100, 4).doubleValue() : 0.0);
+        revo.setXdlv(xdlv);
+
+        ProductionDailyReport gzss = new ProductionDailyReport();
+        gzss.setAll_bq(NumberUtil.round(jsMap.get("区域集控.惠安风场.全场本期故障损失电量").get(0).getStopCode(), 4).doubleValue());
+        gzss.setAll_month(NumberUtil.round(jsMap.get("区域集控.惠安风场.全场月累故障损失电量").get(0).getStopCode(), 4).doubleValue());
+        gzss.setAll_year(NumberUtil.round(jsMap.get("区域集控.惠安风场.全场年累故障损失电量").get(0).getStopCode(), 4).doubleValue());
+        gzss.setProject1_bq(NumberUtil.round(jsMap.get("区域集控.惠安风场.一期本期故障损失电量").get(0).getStopCode(), 4).doubleValue());
+        gzss.setProject1_month(NumberUtil.round(jsMap.get("区域集控.惠安风场.一期月累故障损失电量").get(0).getStopCode(), 4).doubleValue());
+        gzss.setProject1_year(NumberUtil.round(jsMap.get("区域集控.惠安风场.一期年累故障损失电量").get(0).getStopCode(), 4).doubleValue());
+        gzss.setProject2_bq(NumberUtil.round(jsMap.get("区域集控.惠安风场.二期本期故障损失电量").get(0).getStopCode(), 4).doubleValue());
+        gzss.setProject2_month(NumberUtil.round(jsMap.get("区域集控.惠安风场.二期月累故障损失电量").get(0).getStopCode(), 4).doubleValue());
+        gzss.setProject2_year(NumberUtil.round(jsMap.get("区域集控.惠安风场.二期年累故障损失电量").get(0).getStopCode(), 4).doubleValue());
+        revo.setGzss(gzss);
+
+        ProductionDailyReport whss = new ProductionDailyReport();
+        whss.setAll_bq(NumberUtil.round(jsMap.get("区域集控.惠安风场.全场本期定检维护电量").get(0).getStopCode(), 4).doubleValue());
+        whss.setAll_month(NumberUtil.round(jsMap.get("区域集控.惠安风场.全场月累定检维护电量").get(0).getStopCode(), 4).doubleValue());
+        whss.setAll_year(NumberUtil.round(jsMap.get("区域集控.惠安风场.全场年累定检维护电量").get(0).getStopCode(), 4).doubleValue());
+        whss.setProject1_bq(NumberUtil.round(jsMap.get("区域集控.惠安风场.一期本期定检维护电量").get(0).getStopCode(), 4).doubleValue());
+        whss.setProject1_month(NumberUtil.round(jsMap.get("区域集控.惠安风场.一期月累定检维护电量").get(0).getStopCode(), 4).doubleValue());
+        whss.setProject1_year(NumberUtil.round(jsMap.get("区域集控.惠安风场.一期年累定检维护电量").get(0).getStopCode(), 4).doubleValue());
+        whss.setProject2_bq(NumberUtil.round(jsMap.get("区域集控.惠安风场.二期本期定检维护电量").get(0).getStopCode(), 4).doubleValue());
+        whss.setProject2_month(NumberUtil.round(jsMap.get("区域集控.惠安风场.二期月累定检维护电量").get(0).getStopCode(), 4).doubleValue());
+        whss.setProject2_year(NumberUtil.round(jsMap.get("区域集控.惠安风场.二期年累定检维护电量").get(0).getStopCode(), 4).doubleValue());
+        revo.setDjss(whss);
+
+        ProductionDailyReport slss = new ProductionDailyReport();
+        slss.setAll_bq(NumberUtil.round(jsMap.get("区域集控.惠安风场.全场本期受累损失电量").get(0).getStopCode(), 4).doubleValue());
+        slss.setAll_month(NumberUtil.round(jsMap.get("区域集控.惠安风场.全场月累受累损失电量").get(0).getStopCode(), 4).doubleValue());
+        slss.setAll_year(NumberUtil.round(jsMap.get("区域集控.惠安风场.全场年累受累损失电量").get(0).getStopCode(), 4).doubleValue());
+        slss.setProject1_bq(NumberUtil.round(jsMap.get("区域集控.惠安风场.一期本期受累损失电量").get(0).getStopCode(), 4).doubleValue());
+        slss.setProject1_month(NumberUtil.round(jsMap.get("区域集控.惠安风场.一期月累受累损失电量").get(0).getStopCode(), 4).doubleValue());
+        slss.setProject1_year(NumberUtil.round(jsMap.get("区域集控.惠安风场.一期年累受累损失电量").get(0).getStopCode(), 4).doubleValue());
+        slss.setProject2_bq(NumberUtil.round(jsMap.get("区域集控.惠安风场.二期本期受累损失电量").get(0).getStopCode(), 4).doubleValue());
+        slss.setProject2_month(NumberUtil.round(jsMap.get("区域集控.惠安风场.二期月累受累损失电量").get(0).getStopCode(), 4).doubleValue());
+        slss.setProject2_year(NumberUtil.round(jsMap.get("区域集控.惠安风场.二期年累受累损失电量").get(0).getStopCode(), 4).doubleValue());
+        revo.setSlss(slss);
+
+        ProductionDailyReport cydli = new ProductionDailyReport();
+        cydli.setAll_bq(NumberUtil.round(jsMap.get("区域集控.惠安风场.全场本期场用电量").get(0).getStopCode(), 4).doubleValue());
+        cydli.setAll_month(NumberUtil.round(jsMap.get("区域集控.惠安风场.全场月累场用电量").get(0).getStopCode(), 4).doubleValue());
+        cydli.setAll_year(NumberUtil.round(jsMap.get("区域集控.惠安风场.全场年累场用电量").get(0).getStopCode(), 4).doubleValue());
+        revo.setCydli(cydli);
+
+        ProductionDailyReport cydlv = new ProductionDailyReport();
+        cydlv.setAll_bq(NumberUtil.round(cydli.getAll_bq() / fdl_actual.getAll_bq() * 100, 4).doubleValue());
+        cydlv.setAll_month(NumberUtil.round(cydli.getAll_month() / fdl_actual.getAll_month() * 100, 4).doubleValue());
+        cydlv.setAll_year(NumberUtil.round(cydli.getAll_year() / fdl_actual.getAll_year() * 100, 4).doubleValue());
+        revo.setCydlv(cydlv);
+
+        ProductionDailyReport zhcydli = new ProductionDailyReport();
+        zhcydli.setAll_bq(NumberUtil.round(fdl_actual.getAll_bq() + wgdl.getAll_bq() - swdl.getAll_bq(), 4).doubleValue());
+        zhcydli.setAll_month(NumberUtil.round(fdl_actual.getAll_month() + wgdl.getAll_month() - swdl.getAll_month(), 4).doubleValue());
+        zhcydli.setAll_year(NumberUtil.round(fdl_actual.getAll_year() + wgdl.getAll_year() - swdl.getAll_year(), 4).doubleValue());
+        revo.setZhcydli(zhcydli);
+
+        ProductionDailyReport zhcydlv = new ProductionDailyReport();
+        zhcydlv.setAll_bq(fdl_actual.getAll_bq() != 0 ? NumberUtil.round(zhcydli.getAll_bq() / fdl_actual.getAll_bq() * 100, 4).doubleValue() : 0.0);
+        zhcydlv.setAll_month(fdl_actual.getAll_month() != 0 ? NumberUtil.round(zhcydli.getAll_month() / fdl_actual.getAll_month() * 100, 4).doubleValue() : 0.0);
+        zhcydlv.setAll_year(fdl_actual.getAll_year() != 0 ? NumberUtil.round(zhcydli.getAll_year() / fdl_actual.getAll_year() * 100, 4).doubleValue() : 0.0);
+        revo.setZhcydlv(zhcydlv);
+
+        ProductionDailyReport sbklyl = new ProductionDailyReport();
+        Double bq1_sbklyl = jsMap.get("区域集控.惠安风场.一期本期设备可利用率").get(0).getStopCode();
+        Double bq2_sbklyl = jsMap.get("区域集控.惠安风场.二期本期设备可利用率").get(0).getStopCode();
+        sbklyl.setAll_bq(NumberUtil.round((bq1_sbklyl + bq2_sbklyl) / 2, 4).doubleValue());
+        Double mon1_sbklyl = jsMap.get("区域集控.惠安风场.一期月累设备可利用率").get(0).getStopCode();
+        Double mon2_sbklyl = jsMap.get("区域集控.惠安风场.二期月累设备可利用率").get(0).getStopCode();
+        sbklyl.setAll_month(NumberUtil.round((mon1_sbklyl + mon2_sbklyl) / 2, 4).doubleValue());
+        Double year1_sbklyl = jsMap.get("区域集控.惠安风场.一期年累设备可利用率").get(0).getStopCode();
+        Double year2_sbklyl = jsMap.get("区域集控.惠安风场.二期年累设备可利用率").get(0).getStopCode();
+        sbklyl.setAll_year(NumberUtil.round((year1_sbklyl + year2_sbklyl) / 2, 4).doubleValue());
+        sbklyl.setProject1_bq(NumberUtil.round(bq1_sbklyl, 4).doubleValue());
+        sbklyl.setProject1_month(NumberUtil.round(mon1_sbklyl, 4).doubleValue());
+        sbklyl.setProject1_year(NumberUtil.round(year1_sbklyl, 4).doubleValue());
+        sbklyl.setProject2_bq(NumberUtil.round(bq2_sbklyl, 4).doubleValue());
+        sbklyl.setProject2_month(NumberUtil.round(mon2_sbklyl, 4).doubleValue());
+        sbklyl.setProject2_year(NumberUtil.round(year2_sbklyl, 4).doubleValue());
+        revo.setSbklyl(sbklyl);
+
+        return revo;
+    }
+
+
     @Override
     public List<ProEconEquipmentInfoJs> query(Map<String, List<String>> name) {
         if (name == null || name.isEmpty()) {
             return new ArrayList<>();
         }
-        Map<String, List<ProEconEquipmentInfoJs>> map = new HashMap<>();
         QueryWrapper<ProEconEquipmentInfoJs> qw = new QueryWrapper<>();
         String record = name.keySet().iterator().next();
         LocalDate recordDate = LocalDate.parse(record);

Fichier diff supprimé car celui-ci est trop grand
+ 1 - 0
runeconomy-xk/src/main/resources/application-nxf.yml


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff