From c107112fcbe4262077d9f1fb6382e635d9c89dcc Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期二, 15 七月 2025 09:26:27 +0800
Subject: [PATCH] 视频监控URL增加一个路径参数&date=以备实现手动刷新

---
 pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/mqttSd1/weather/WeatherCtrl.java |   16 ++++++++++++----
 1 files changed, 12 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 410677e..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
@@ -43,6 +43,9 @@
     @SsoAop()
     public BaseResponse<VoWeather> oneLast(Long weatherId){
         try {
+            if(weatherId == null){
+                return BaseResponseUtils.buildFail("姘旇薄绔檌d涓嶈兘涓虹┖") ;
+            }
             return BaseResponseUtils.buildSuccess(sv.oneLast(weatherId));
         } catch (Exception e) {
             return BaseResponseUtils.buildException(e.getMessage()) ;
@@ -51,15 +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 {
-
-            return BaseResponseUtils.buildSuccess(sv.oneHistory(weatherId));
+            if(qo.weatherId == null){
+                return BaseResponseUtils.buildFail("姘旇薄绔檌d涓嶈兘涓虹┖") ;
+            }
+            qo.completionTime();
+           return BaseResponseUtils.buildSuccess(sv.oneHistory(qo));
         } catch (Exception e) {
             return BaseResponseUtils.buildException(e.getMessage()) ;
         }
@@ -74,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()) ;
@@ -89,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