From 7d11bb1480edfbd09652da84dd1699dddf48a483 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期一, 14 七月 2025 13:53:16 +0800
Subject: [PATCH] 修改用水户年用水量统计查询中的bug

---
 pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/mqttSd1/weather/WeatherCtrl.java |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/mqttSd1/weather/WeatherCtrl.java b/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/mqttSd1/weather/WeatherCtrl.java
index 5ed8380..c53f4db 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/mqttSd1/weather/WeatherCtrl.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/mqttSd1/weather/WeatherCtrl.java
@@ -54,17 +54,18 @@
 
     /**
      * 鏍规嵁鎸囧畾鏉′欢鏌ヨ鍘嗗彶璁板綍
-     * @param weatherId
+     * @param qo
      * @return
      */
     @GetMapping(path = "oneHistory")
     @SsoAop()
-    public BaseResponse<QueryResultVo<List<VoWeather>>> oneHistory(Long weatherId){
+    public BaseResponse<QueryResultVo<List<VoWeather>>> oneHistory(WeatherQo qo){
         try {
-            if(weatherId == null){
+            if(qo.weatherId == null){
                 return BaseResponseUtils.buildFail("姘旇薄绔檌d涓嶈兘涓虹┖") ;
             }
-           return BaseResponseUtils.buildSuccess(sv.oneHistory(weatherId));
+            qo.completionTime();
+           return BaseResponseUtils.buildSuccess(sv.oneHistory(qo));
         } catch (Exception e) {
             return BaseResponseUtils.buildException(e.getMessage()) ;
         }
@@ -79,6 +80,7 @@
     @SsoAop()
     public BaseResponse<QueryResultVo<List<VoWeather>>> someLast(WeatherQo qo){
         try {
+            qo.completionTime();
             return BaseResponseUtils.buildSuccess(sv.someLast(qo));
         } catch (Exception e) {
             return BaseResponseUtils.buildException(e.getMessage()) ;
@@ -94,6 +96,7 @@
     @SsoAop()
     public BaseResponse<QueryResultVo<List<VoWeather>>> someHistory(WeatherQo qo){
         try {
+            qo.completionTime();
             return BaseResponseUtils.buildSuccess(sv.someHistory(qo));
         } catch (Exception e) {
             return BaseResponseUtils.buildException(e.getMessage()) ;

--
Gitblit v1.8.0