From 85a4a4c76e6df004dd901682f333390d625994d0 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期四, 28 八月 2025 17:38:23 +0800
Subject: [PATCH] 增加“蒸散量计算公式”文档

---
 pipIrr-platform/pipIrr-global/src/main/resources/mapper/MdEt0Mapper.xml |   14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/MdEt0Mapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/MdEt0Mapper.xml
index adb6ecb..3474bc7 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/MdEt0Mapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/MdEt0Mapper.xml
@@ -40,16 +40,12 @@
     and dt = #{dt,jdbcType=DATE}
   </select>
 
-  <select id="selectEt0ByDt" resultMap="BaseResultMap">
+  <select id="selectEt0ByDt" resultType="com.dy.pipIrrGlobal.pojoMd.MdEt0">
     <!--@mbg.generated-->
-    select
-    <include refid="Base_Column_List_with_alias" >
-      <property name="alias" value="et"/>
-    </include>,
-    mc.name as cropName
-    from md_et0 et
-    inner join md_crops mc on et.crop_id = mc.id
-    where mc.stopped != 1 and et.dt = #{ymd,jdbcType=DATE}
+    select mc.id id, mc.id cropId, mc.name as cropName, et.et0 et0
+    from md_crops mc
+    left join md_et0 et on (et.crop_id = mc.id and et.dt = #{ymd,jdbcType=DATE})
+    where mc.stopped != 1
   </select>
   <!--鏍规嵁鎸囧畾鏉′欢鏌ヨ璁板綍-->
   <select id="selectEt0ByCropAndDt" resultType="com.dy.pipIrrGlobal.pojoMd.MdEt0">

--
Gitblit v1.8.0