From 2096da83588173e291ef4a50ec2a6d1dfccf86c9 Mon Sep 17 00:00:00 2001
From: zhubaomin <zhubaomin>
Date: 星期四, 15 八月 2024 15:15:42 +0800
Subject: [PATCH] 2024-08-15 朱宝民 优化代码
---
pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeClientMapper.xml | 10 +++++++---
1 files changed, 7 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 bb6d416..6569c2b 100644
--- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeClientMapper.xml
+++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeClientMapper.xml
@@ -343,7 +343,7 @@
blo.name AS blockName,
CAST(cli.divideId AS char) AS divideId,
divi.name AS divideName,
- CAST(cli.typeId AS char) AS waterTypeId,
+ CAST(cli.typeId AS char) AS typeId,
wat.typeName AS waterTypeName,
CAST(cli.id AS char) AS clientId,
cli.name,
@@ -380,6 +380,10 @@
<if test = "address != null and address !=''">
AND cli.address like CONCAT('%',#{address},'%')
</if>
+
+ <if test = "villageId != null and villageId !=''">
+ AND cli.villageId = #{villageId}
+ </if>
</where>
ORDER BY cli.operateDt DESC
<trim prefix="limit " >
@@ -396,7 +400,7 @@
<!--鏍规嵁鍐滄埛缂栧彿鑾峰彇5绾ц鏀垮尯鍒掍覆areaCode锛岃ˉ鍗¤繃绋嬩腑寮�鏂板崱浣跨敤-->
<select id="getAreaCodeById" resultType="java.lang.Long">
- SELECT districtNum FROM se_client WHERE id = ${clientId}
+ SELECT districtNum FROM se_client WHERE id = #{clientId}
</select>
<!--鏍规嵁鍐滄埛缂栧彿鑾峰彇鍐滄埛ID-->
@@ -431,7 +435,7 @@
<!--鑾峰彇鐢ㄦ按鏂瑰紡鍒楄〃-->
<select id="getWaterTypes" resultType="java.util.Map">
- SELECT id, typeName from se_water_type
+ SELECT CAST(se_water_type.id AS char) AS id, typeName from se_water_type
</select>
<!--鑾峰彇鍐滄埛鍩烘湰淇℃伅锛屽皬绋嬪簭棣栭〉浣跨敤-->
--
Gitblit v1.8.0