From d9ced0cba82dfb6931ca65540eed2f55058342db Mon Sep 17 00:00:00 2001
From: wuzeyu <1223318623@qq.com>
Date: 星期二, 02 一月 2024 20:23:08 +0800
Subject: [PATCH] 取水口的 添加 修改 逻辑删除 查询一个 查询全部 分页查询
---
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