From 25d9d2e1a9eaa7c0b098a225dc1fcf149bac7fbe Mon Sep 17 00:00:00 2001
From: 吴学文 <wuxuewen@wuxuewendeMacBook-Pro.local>
Date: 星期一, 08 七月 2019 22:44:12 +0800
Subject: [PATCH] 修改映射管理sql配置 key 加入引号问题
---
java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml | 78 +++++++++++++++++++++++++++++++++++++++
1 files changed, 78 insertions(+), 0 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml
index 2bbb03d..4981c72 100644
--- a/java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml
@@ -302,6 +302,9 @@
<if test="communityId != null and communityId != ''">
and ms.community_id = #{communityId}
</if>
+ <if test="page != -1 and page != null">
+ limit #{page},#{row}
+ </if>
</select>
<!-- 淇敼灏忓尯鎴愬憳 add by wuxw 2018-07-03 -->
@@ -353,4 +356,79 @@
</if>
</select>
+ <!-- 鏌ヨ灏忓尯淇℃伅 add by wuxw 2018-07-03 -->
+ <select id="getCommunityInfoNew" parameterType="Map" resultType="Map">
+ select t.address,t.nearby_landmarks,t.nearby_landmarks nearbyLandmarks,t.city_code,t.city_code cityCode,t.name,t.status_cd,t.status_cd statusCd,t.community_id,t.community_id communityId,t.b_id,t.b_id bId,t.map_y,t.map_y mapY,t.map_x,t.map_x mapX
+ from s_community t
+ where 1 =1
+ <if test="address !=null and address != ''">
+ and t.address= #{address}
+ </if>
+ <if test="nearbyLandmarks !=null and nearbyLandmarks != ''">
+ and t.nearby_landmarks= #{nearbyLandmarks}
+ </if>
+ <if test="cityCode !=null and cityCode != ''">
+ and t.city_code= #{cityCode}
+ </if>
+ <if test="name !=null and name != ''">
+ and t.name= #{name}
+ </if>
+ <if test="statusCd !=null and statusCd != ''">
+ and t.status_cd= #{statusCd}
+ </if>
+ <if test="communityId !=null and communityId != ''">
+ and t.community_id= #{communityId}
+ </if>
+ <if test="bId !=null and bId != ''">
+ and t.b_id= #{bId}
+ </if>
+ <if test="mapY !=null and mapY != ''">
+ and t.map_y= #{mapY}
+ </if>
+ <if test="mapX !=null and mapX != ''">
+ and t.map_x= #{mapX}
+ </if>
+ <if test="page != -1 and page != null ">
+ limit #{page}, #{row}
+ </if>
+
+ </select>
+
+
+
+ <!-- 鏌ヨ灏忓尯鏁伴噺 add by wuxw 2018-07-03 -->
+ <select id="queryCommunitysCount" parameterType="Map" resultType="Map">
+ select count(1) count
+ from s_community t
+ where 1 =1
+ <if test="address !=null and address != ''">
+ and t.address= #{address}
+ </if>
+ <if test="nearbyLandmarks !=null and nearbyLandmarks != ''">
+ and t.nearby_landmarks= #{nearbyLandmarks}
+ </if>
+ <if test="cityCode !=null and cityCode != ''">
+ and t.city_code= #{cityCode}
+ </if>
+ <if test="name !=null and name != ''">
+ and t.name= #{name}
+ </if>
+ <if test="statusCd !=null and statusCd != ''">
+ and t.status_cd= #{statusCd}
+ </if>
+ <if test="communityId !=null and communityId != ''">
+ and t.community_id= #{communityId}
+ </if>
+ <if test="bId !=null and bId != ''">
+ and t.b_id= #{bId}
+ </if>
+ <if test="mapY !=null and mapY != ''">
+ and t.map_y= #{mapY}
+ </if>
+ <if test="mapX !=null and mapX != ''">
+ and t.map_x= #{mapX}
+ </if>
+
+
+ </select>
</mapper>
--
Gitblit v1.8.0