From b7ea296dcc09cf12a11aa1b649401f77b5520215 Mon Sep 17 00:00:00 2001
From: Administrator <zhubaomin>
Date: 星期一, 25 十二月 2023 20:00:40 +0800
Subject: [PATCH] 2023-12-25 朱宝民 农户对象查询一个、删除一个、修改一个
---
pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeClientMapper.xml | 22 +++++++++++++++++++---
1 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeClientMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeClientMapper.xml
index b576c6d..ce8f63e 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeClientMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeClientMapper.xml
@@ -260,9 +260,10 @@
address = #{address,jdbcType=VARCHAR},
remarks = #{remarks,jdbcType=VARCHAR},
`operator` = #{operator,jdbcType=BIGINT},
- operateDt = #{operatedt,jdbcType=TIMESTAMP},
- disabled = #{disabled,jdbcType=TINYINT},
- deleted = #{deleted,jdbcType=TINYINT}
+ operateDt = #{operatedt,jdbcType=TIMESTAMP}
+<!-- ,-->
+<!-- disabled = #{disabled,jdbcType=TINYINT},-->
+<!-- deleted = #{deleted,jdbcType=TINYINT}-->
where id = #{id,jdbcType=BIGINT}
</update>
@@ -347,4 +348,19 @@
<select id="getClientIdByNum" resultType="java.lang.Long">
SELECT id FROM se_client WHERE clientNum = ${clientNum}
</select>
+
+ <!--鏍规嵁鍐滄埛ID閫昏緫鍒犻櫎鍐滄埛-->
+ <update id="deleteClientById" parameterType="java.lang.Long">
+ update se_client set deleted = 1
+ <where>
+ <if test = "id != null and id > 0">
+ AND id = ${id}
+ </if>
+ </where>
+ </update>
+
+ <!--鏍规嵁涓婚敭鑾峰彇鏉慖D-->
+ <select id="getVillageIdById" parameterType="java.lang.Long" resultType="java.lang.Long">
+ SELECT villageId FROM se_client WHERE id = ${id}
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.8.0