From 71b9ac1d2459239d2c5340b384f1536b156fc003 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期五, 20 六月 2025 08:39:50 +0800
Subject: [PATCH] 表阀一体机协议,根据王江海测试问题,进行修改完善

---
 pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrStWeatherMapper.xml |   16 ++++++++++++++++
 1 files changed, 16 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 1738c70..e971ed2 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrStWeatherMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrStWeatherMapper.xml
@@ -20,6 +20,10 @@
     <!--@mbg.generated-->
     id, `no`, `name`, lng, lat, remark
   </sql>
+  <sql id="simple_Column_List">
+    <!--@mbg.generated-->
+    id, `no`, `name`
+  </sql>
   <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
     <!--@mbg.generated-->
     select
@@ -27,11 +31,23 @@
     from pr_st_weather
     where id = #{id,jdbcType=BIGINT}
   </select>
+  <select id="selectAllSimple" resultType="com.dy.pipIrrGlobal.voPr.VoMqttSimple">
+    <!--@mbg.generated-->
+    select
+    <include refid="simple_Column_List" />
+    from pr_st_weather
+    where deleted != 1 ;
+  </select>
   <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
     <!--@mbg.generated-->
     delete from pr_st_weather
     where id = #{id,jdbcType=BIGINT}
   </delete>
+  <delete id="deleteLogicById" parameterType="java.lang.Long">
+    <!--@mbg.generated-->
+    update pr_st_weather set deleted = 1
+    where id = #{id,jdbcType=BIGINT}
+  </delete>
   <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoPr.PrStWeather">
     <!--@mbg.generated-->
     insert into pr_st_weather (id, `no`, `name`, lng,

--
Gitblit v1.8.0