From f42983b35c738a28ed4b9d1732d1045c5f2a19bb Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期日, 09 五月 2021 16:57:12 +0800
Subject: [PATCH] 优化代码
---
java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml
old mode 100644
new mode 100755
index f962a32..8bcdbdb
--- a/java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml
@@ -7,18 +7,12 @@
<!-- 淇濆瓨灏忓尯淇℃伅 add by wuxw 2018-07-03 -->
<insert id="saveBusinessCommunityInfo" parameterType="Map">
insert into business_community(community_id,b_id,name,address,city_code,
- nearby_landmarks,map_x,map_y,month,state,operate,community_area)
+ nearby_landmarks,map_x,map_y,month,state,operate,community_area,tel)
values(#{communityId},#{bId},#{name},#{address},#{cityCode},
- #{nearbyLandmarks},#{mapX},#{mapY},#{month},#{state},#{operate},#{communityArea})
+ #{nearbyLandmarks},#{mapX},#{mapY},#{month},#{state},#{operate},#{communityArea},#{tel})
</insert>
- <!-- 淇濆瓨灏忓尯淇℃伅 -->
- <insert id="saveCommunity" parameterType="Map">
- insert into s_community(community_id,b_id,name,address,city_code,
- nearby_landmarks,map_x,map_y,create_time,state,tel,community_area)
- values(#{communityId},#{bId},#{name},#{address},#{cityCode},
- #{nearbyLandmarks},#{mapX},#{mapY},#{createTime},#{state},#{tel},#{communityArea})
- </insert>
+
<!-- 淇濆瓨灏忓尯灞炴�т俊鎭� add by wuxw 2018-07-03 -->
<insert id="saveBusinessCommunityAttr" parameterType="Map">
@@ -534,9 +528,11 @@
</foreach>
</if>
group by t.community_id
+ order by t.create_time ASC
<if test="page != -1 and page != null ">
limit #{page}, #{row}
</if>
+
</select>
--
Gitblit v1.8.0