From 2929692585407909e95676b0651a9310bb228f48 Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期二, 08 七月 2025 14:59:32 +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