From a236d0878c1effdd328cf0abc45665097c9cfdc2 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期一, 01 九月 2025 14:22:13 +0800
Subject: [PATCH] 1、小程序后端实现作物及昨日蒸散量查询; 2、小程序后端实现查询一个作物阶段时间内的蒸散量;

---
 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