From b042d6a5ae1959ad79b489e1d0b01c057b68d5f6 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期四, 19 六月 2025 10:45:44 +0800
Subject: [PATCH] 水肥机、墒情站、气象站增、改、查、删功能实现

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

diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrStManureMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrStManureMapper.xml
index e9db565..c16fe8a 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrStManureMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrStManureMapper.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_manure
     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_manure
+    where deleted != 1 ;
+  </select>
   <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
     <!--@mbg.generated-->
     delete from pr_st_manure
     where id = #{id,jdbcType=BIGINT}
   </delete>
+  <delete id="deleteLogicById" parameterType="java.lang.Long">
+    <!--@mbg.generated-->
+    update pr_st_manure set deleted = 1
+    where id = #{id,jdbcType=BIGINT}
+  </delete>
   <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoPr.PrStManure">
     <!--@mbg.generated-->
     insert into pr_st_manure (id, `no`, `name`, lng,

--
Gitblit v1.8.0