From a1c1cc39423b5ad31cbcd7e377b650e0c1282aab Mon Sep 17 00:00:00 2001 From: bobol Date: Wed, 31 Jan 2024 17:46:01 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81bi=E5=A4=A7=E5=B1=8F=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/lzbi/common/enums/ReportNameEnum.java | 3 +- .../DcBusiDataScreenNewController.java | 39 ++- ...atSuppliedVO.java => FinishingRateVO.java} | 4 +- .../service/DcBusiDataScreenNewService.java | 261 ++++++++++-------- .../vo/TargetDraftDaynewAggregateResVo.java | 27 ++ 5 files changed, 202 insertions(+), 132 deletions(-) rename lzbi-module/src/main/java/com/lzbi/bi/domain/{HeatSuppliedVO.java => FinishingRateVO.java} (90%) create mode 100644 lzbi-module/src/main/java/com/lzbi/draft/domain/vo/TargetDraftDaynewAggregateResVo.java diff --git a/lzbi-common/src/main/java/com/lzbi/common/enums/ReportNameEnum.java b/lzbi-common/src/main/java/com/lzbi/common/enums/ReportNameEnum.java index 713f967..446dac9 100644 --- a/lzbi-common/src/main/java/com/lzbi/common/enums/ReportNameEnum.java +++ b/lzbi-common/src/main/java/com/lzbi/common/enums/ReportNameEnum.java @@ -20,7 +20,8 @@ public enum ReportNameEnum SECOND_NETWORK_WATER_CONSUMPTION_RATE("二次网耗水率"), PRIMARY_NET_RECHARGE_WATER("一次网补水量"), DATANG_PRIMARY_NET_RECHARGE_WATER("从大唐补一次网水量"), - POWER_CONSUMPTION_RATE_OF_HEAT_SOURCE_PLANT("热源厂电耗率"); + POWER_CONSUMPTION_RATE_OF_HEAT_SOURCE_PLANT("热源厂电耗率"), + TOTAL_HEAT_SUPPLIED("总供热量"); private final String name; diff --git a/lzbi-module/src/main/java/com/lzbi/bi/controller/DcBusiDataScreenNewController.java b/lzbi-module/src/main/java/com/lzbi/bi/controller/DcBusiDataScreenNewController.java index 73d947e..2720978 100644 --- a/lzbi-module/src/main/java/com/lzbi/bi/controller/DcBusiDataScreenNewController.java +++ b/lzbi-module/src/main/java/com/lzbi/bi/controller/DcBusiDataScreenNewController.java @@ -4,11 +4,10 @@ import com.lzbi.bi.domain.DcBusDataScreenNewReq; import com.lzbi.bi.service.DcBusiDataScreenNewService; import com.lzbi.common.core.controller.BaseController; import com.lzbi.common.core.domain.AjaxResult; +import com.lzbi.draft.domain.vo.TargetDraftDaynewReqVo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; /** * 大屏控制器 @@ -55,43 +54,43 @@ public class DcBusiDataScreenNewController extends BaseController { /** * 消耗 - * @param dcBusDataScreenNewReq + * @param targetDraftDaynewReqVo * @return */ - @GetMapping("/consumeStatistics") - public AjaxResult consumeStatistics(@Validated DcBusDataScreenNewReq dcBusDataScreenNewReq) { - return success(dcBusiDataScreenNewService.getConsumesStatistics(dcBusDataScreenNewReq)); + @PostMapping("/consumeStatistics") + public AjaxResult consumeStatistics(@Validated @RequestBody TargetDraftDaynewReqVo targetDraftDaynewReqVo) { + return success(dcBusiDataScreenNewService.getConsumesStatistics(targetDraftDaynewReqVo)); } /** * 发热量 - * @param dcBusDataScreenNewReq + * @param targetDraftDaynewReqVo * @return */ - @GetMapping("/calorificValue") - public AjaxResult calorificValue(@Validated DcBusDataScreenNewReq dcBusDataScreenNewReq) { - return success(dcBusiDataScreenNewService.getCalorificValue(dcBusDataScreenNewReq)); + @PostMapping("/calorificValue") + public AjaxResult calorificValue(@Validated @RequestBody TargetDraftDaynewReqVo targetDraftDaynewReqVo) { + return success(dcBusiDataScreenNewService.getCalorificValue(targetDraftDaynewReqVo)); } /** - * 供热量 - * @param dcBusDataScreenNewReq + * 完成率 + * @param targetDraftDaynewReqVo * @return */ - @GetMapping("/heatSupplied") - public AjaxResult heatSupplied(@Validated DcBusDataScreenNewReq dcBusDataScreenNewReq) { - return success(dcBusiDataScreenNewService.getHeatSupplied(dcBusDataScreenNewReq)); + @PostMapping("/finishingRate") + public AjaxResult finishingRate(@Validated @RequestBody TargetDraftDaynewReqVo targetDraftDaynewReqVo) { + return success(dcBusiDataScreenNewService.getFinishingRate(targetDraftDaynewReqVo)); } /** * 公司统计 - * @param dcBusDataScreenNewReq + * @param targetDraftDaynewReqVo * @return */ - @GetMapping("/corporateStatistics") - public AjaxResult corporateStatistics(@Validated DcBusDataScreenNewReq dcBusDataScreenNewReq) { - return success(dcBusiDataScreenNewService.getCorporateStatistics(dcBusDataScreenNewReq)); + @PostMapping("/corporateStatistics") + public AjaxResult corporateStatistics(@Validated @RequestBody TargetDraftDaynewReqVo targetDraftDaynewReqVo) { + return success(dcBusiDataScreenNewService.getCorporateStatistics(targetDraftDaynewReqVo)); } } diff --git a/lzbi-module/src/main/java/com/lzbi/bi/domain/HeatSuppliedVO.java b/lzbi-module/src/main/java/com/lzbi/bi/domain/FinishingRateVO.java similarity index 90% rename from lzbi-module/src/main/java/com/lzbi/bi/domain/HeatSuppliedVO.java rename to lzbi-module/src/main/java/com/lzbi/bi/domain/FinishingRateVO.java index c4b09dc..bc9f4b0 100644 --- a/lzbi-module/src/main/java/com/lzbi/bi/domain/HeatSuppliedVO.java +++ b/lzbi-module/src/main/java/com/lzbi/bi/domain/FinishingRateVO.java @@ -8,10 +8,10 @@ import java.math.BigDecimal; import java.util.List; /** - * 供热量 + * 完成率 */ @Data -public class HeatSuppliedVO { +public class FinishingRateVO { private List