From d1a0613fbc255ca235135b85d19f61356472cda7 Mon Sep 17 00:00:00 2001 From: yang_shj <1069818635@QQ.com> Date: Thu, 5 Sep 2024 16:38:08 +0800 Subject: [PATCH 1/2] =?UTF-8?q?#=E8=AE=BE=E5=A4=87=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E5=8F=91=E7=94=B5=E9=87=8Ffeign=E6=8E=A5=E5=8F=A3get=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E8=B6=85=E9=95=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/hnac/hzims/equipment/feign/IPlanGenertionClient.java | 7 +++---- .../com/hnac/hzims/equipment/feign/PlanGenertionClient.java | 9 ++++----- .../java/com/hnac/hzinfo/inspect/task/mapper/TaskMapper.xml | 2 +- .../homePage/service/impl/HydroelectricServiceImpl.java | 5 ++++- .../operational/main/service/impl/HydropowerServiceImpl.java | 5 ++++- .../main/service/impl/MainSystemMonitoringServiceImpl.java | 10 ++++++++-- 6 files changed, 24 insertions(+), 14 deletions(-) diff --git a/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/equipment/feign/IPlanGenertionClient.java b/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/equipment/feign/IPlanGenertionClient.java index 2b2ed6d..d550a9f 100644 --- a/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/equipment/feign/IPlanGenertionClient.java +++ b/hzims-service-api/equipment-api/src/main/java/com/hnac/hzims/equipment/feign/IPlanGenertionClient.java @@ -76,12 +76,11 @@ public interface IPlanGenertionClient { /** * 年计划/实际发电量 - * @param stationIds - * @param date + * @param param * @return */ - @GetMapping(GET_POWER_YEAR) - Double getPlanPowerYear(@RequestParam(value = "stationIds", required = false) List stationIds, @RequestParam(value = "date", required = false) String date); + @PostMapping(GET_POWER_YEAR) + Double getPlanPowerYear(@RequestBody DevicePlanGenerationVo param); /** * 计划发电量查询 diff --git a/hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/feign/PlanGenertionClient.java b/hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/feign/PlanGenertionClient.java index c549eae..ef65993 100644 --- a/hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/feign/PlanGenertionClient.java +++ b/hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/feign/PlanGenertionClient.java @@ -107,14 +107,13 @@ public class PlanGenertionClient implements IPlanGenertionClient{ /** * 年计划发电量/实际发电量 - * @param stationIds - * @param date 'yyyy' + * @param param * @return */ - @GetMapping(GET_POWER_YEAR) + @PostMapping(GET_POWER_YEAR) @Override - public Double getPlanPowerYear(List stationIds, String date) { - return service.getPlanPowerYear(stationIds,date); + public Double getPlanPowerYear(DevicePlanGenerationVo param) { + return service.getPlanPowerYear(param.getStationIds(),param.getDate()); } /** diff --git a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/mapper/TaskMapper.xml b/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/mapper/TaskMapper.xml index 3bc04c3..84ecf4e 100644 --- a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/mapper/TaskMapper.xml +++ b/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/mapper/TaskMapper.xml @@ -238,7 +238,7 @@ order by t.UPDATE_TIME desc -、 +