From e1f1023dee5d094fcb1e428f36cce09211c4542a Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期一, 08 九月 2025 11:29:11 +0800
Subject: [PATCH] 蒸腾改为蒸散

---
 pipIrr-platform/pipIrr-web/pipIrr-web-model/src/main/java/com/dy/pipIrrModel/vapor/VaporCtrl.java |   21 +++++++++++++--------
 1 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-model/src/main/java/com/dy/pipIrrModel/vapor/VaporCtrl.java b/pipIrr-platform/pipIrr-web/pipIrr-web-model/src/main/java/com/dy/pipIrrModel/vapor/VaporCtrl.java
index 76cbc15..c57dc04 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-model/src/main/java/com/dy/pipIrrModel/vapor/VaporCtrl.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-model/src/main/java/com/dy/pipIrrModel/vapor/VaporCtrl.java
@@ -19,6 +19,7 @@
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
+import java.util.ArrayList;
 import java.util.List;
 
 /**
@@ -27,7 +28,7 @@
  * @Description
  */
 @Slf4j
-@Tag(name = "浣滅墿鏃ヨ捀鑵鹃噺", description = "浣滅墿鏃ヨ捀鑵鹃噺鏌ヨ绛夋搷浣�")
+@Tag(name = "浣滅墿鏃ヨ捀鏁i噺", description = "浣滅墿鏃ヨ捀鏁i噺鏌ヨ绛夋搷浣�")
 @RestController
 @RequestMapping(path = "mdVapor")
 public class VaporCtrl {
@@ -39,14 +40,14 @@
 
 
     /**
-     * 瀹㈡埛绔姹傚緱鍒版墍鏈変綔鐗╃殑鏄ㄦ棩钂歌吘閲�
-     * @return 鎵�鏈夋墍鏈変綔鐗╃殑鏄ㄦ棩钂歌吘閲�
+     * 瀹㈡埛绔姹傚緱鍒版墍鏈変綔鐗╃殑鏄ㄦ棩钂告暎閲�
+     * @return 鎵�鏈夋墍鏈変綔鐗╃殑鏄ㄦ棩钂告暎閲�
      */
-    @Operation(summary = "鑾峰緱浣滅墿鐨勬槰鏃ヨ捀鑵鹃噺", description = "杩斿洖鎵�鏈変綔鐗╃殑鏄ㄦ棩钂歌吘閲忔暟鎹�")
+    @Operation(summary = "鑾峰緱浣滅墿鐨勬槰鏃ヨ捀鏁i噺", description = "杩斿洖鎵�鏈変綔鐗╃殑鏄ㄦ棩钂告暎閲忔暟鎹�")
     @ApiResponses(value = {
             @ApiResponse(
                     responseCode = ResultCodeMsg.RsCode.SUCCESS_CODE,
-                    description = "杩斿洖浣滅墿鐨勬槰鏃ヨ捀鑵鹃噺鏁版嵁锛圔aseResponse.content:QueryResultVo[{}]锛�",
+                    description = "杩斿洖浣滅墿鐨勬槰鏃ヨ捀鏁i噺鏁版嵁锛圔aseResponse.content:QueryResultVo[{}]锛�",
                     content = {@Content(mediaType = MediaType.APPLICATION_JSON_VALUE,
                             schema = @Schema(implementation = MdEt0.class))}
             )
@@ -62,13 +63,13 @@
             List<MdEt0> res = this.sv.selectEt0(ymd) ;
             return BaseResponseUtils.buildSuccess(res);
         } catch (Exception e) {
-            log.error("鏌ヨ鎵�鏈変綔鐗╃殑鏄ㄦ棩钂歌吘閲忓紓甯�", e);
+            log.error("鏌ヨ鎵�鏈変綔鐗╃殑鏄ㄦ棩钂告暎閲忓紓甯�", e);
             return BaseResponseUtils.buildException(e.getMessage()) ;
         }
     }
 
     /**
-     * 鏍规嵁鎸囧畾鏉′欢浣滅墿鏌ヨ涓�娈垫椂闂村唴鐨勮捀鑵鹃噺
+     * 鏍规嵁鎸囧畾鏉′欢浣滅墿鏌ヨ涓�娈垫椂闂村唴鐨勮捀鏁i噺
      * @param qo
      * @return
      */
@@ -85,7 +86,11 @@
             if(qo.timeStart == null || qo.timeStart.trim().equals("")){
                 qo.timeStart = DateTime.lastXDay_yyyy_MM_dd(qo.timeStop, 10);
             }
-            return BaseResponseUtils.buildSuccess(sv.oneCropsSomeEt0(qo));
+            List<MdEt0> list = sv.oneCropsSomeEt0(qo) ;
+            if(list == null){
+                list = new ArrayList<>() ;
+            }
+            return BaseResponseUtils.buildSuccess(list);
         } catch (Exception e) {
             return BaseResponseUtils.buildException(e.getMessage()) ;
         }

--
Gitblit v1.8.0