From aa36d81e83b27c52d126af07a186bf8a9cc9a4f6 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期四, 26 六月 2025 14:36:55 +0800
Subject: [PATCH] 1、增加墒情日数据查询功能; 2、完善代码。

---
 pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrStWeatherMapper.xml |   57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 57 insertions(+), 0 deletions(-)

diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrStWeatherMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrStWeatherMapper.xml
index ade2d3c..cbf0c66 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrStWeatherMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrStWeatherMapper.xml
@@ -32,6 +32,63 @@
     from pr_st_weather
     where id = #{id,jdbcType=BIGINT}
   </select>
+
+
+  <select id="selectOne" parameterType="java.lang.Long" resultType="com.dy.pipIrrGlobal.voPr.VoWeather">
+    <!--@mbg.generated-->
+    SELECT tb.id,
+    tb.fbox_id AS fboxId,
+    tb.`no`,
+    tb.`name`,
+    tb.lng,
+    tb.lat,
+    tb.remark
+    FROM pr_st_weather tb
+    where id = #{id,jdbcType=BIGINT}
+  </select>
+  <!--鏍规嵁鎸囧畾鏉′欢鏌ヨ鎬绘暟-->
+  <select id="totalCount" parameterType="java.util.Map" resultType="java.lang.Long">
+    SELECT COUNT(*) AS recordCount
+    FROM pr_st_weather tb
+    <where>
+      tb.deleted != 1
+      <if test="name != null and name != ''">
+        AND tb.name LIKE CONCAT('%', #{name}, '%')
+      </if>
+    </where>
+  </select>
+  <!--鏍规嵁鎸囧畾鏉′欢鏌ヨ-->
+  <select id="selectSome" parameterType="java.util.Map" resultType="com.dy.pipIrrGlobal.voPr.VoWeather">
+    SELECT tb.id,
+    tb.fbox_id AS fboxId,
+    tb.`no`,
+    tb.`name`,
+    tb.lng,
+    tb.lat,
+    tb.remark
+    FROM pr_st_weather tb
+    <where>
+      tb.deleted != 1
+      <if test="name != null and name != ''">
+        AND tb.name LIKE CONCAT('%', #{name}, '%')
+      </if>
+    </where>
+    ORDER BY tb.id DESC
+    <trim prefix="limit ">
+      <if test="start != null and count != null">
+        #{start,javaType=Integer,jdbcType=INTEGER}, #{count,javaType=Integer,jdbcType=INTEGER}
+      </if>
+    </trim>
+  </select>
+
+  <!--鏍规嵁FBox搴忓垪鍙峰緱鍒板疄浣撳垪琛�-->
+  <select id="selectStPoByFBoxIdAndNo" resultMap="BaseResultMap">
+    select
+    <include refid="part_Column_List" />
+    FROM pr_st_weather
+    WHERE deleted = 0 AND fbox_id=#{fbox_id,jdbcType=VARCHAR} AND no=#{fbox_id,jdbcType=INTEGER}
+  </select>
+
   <select id="selectAllSimple" resultType="com.dy.pipIrrGlobal.voPr.VoMqttSimple">
     <!--@mbg.generated-->
     select

--
Gitblit v1.8.0