From 2f73a671db8bf132baaba12a5c2a9c3b611589e9 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期四, 01 八月 2019 17:14:26 +0800
Subject: [PATCH] 修复 添加房屋时的侦听 类修改
---
java110-code-generator/src/main/resources/template/ServiceDaoImplMapper.txt | 61 ++++--------------------------
1 files changed, 9 insertions(+), 52 deletions(-)
diff --git a/java110-code-generator/src/main/resources/template/ServiceDaoImplMapper.txt b/java110-code-generator/src/main/resources/template/ServiceDaoImplMapper.txt
index ac2bd70..d91a9c2 100644
--- a/java110-code-generator/src/main/resources/template/ServiceDaoImplMapper.txt
+++ b/java110-code-generator/src/main/resources/template/ServiceDaoImplMapper.txt
@@ -21,29 +21,14 @@
<!-- 淇濆瓨鍟嗘埛淇℃伅鑷� instance琛ㄤ腑 add by wuxw 2018-07-03 -->
<insert id="saveStoreInfoInstance" parameterType="Map">
- insert into s_store(store_id,b_id,user_id,name,address,tel,store_type_cd,nearby_landmarks,map_x,map_y,status_cd)
- select s.store_id,s.b_id,s.user_id,s.name,s.address,s.tel,s.store_type_cd,s.nearby_landmarks,s.map_x,s.map_y,'0'
- from business_store s where
- s.operate = 'ADD' and s.b_id=#{bId}
+ $saveInfoInstance$
</insert>
<!-- 鏌ヨ鍟嗘埛淇℃伅 add by wuxw 2018-07-03 -->
<select id="getStoreInfo" parameterType="Map" resultType="Map">
- select s.store_id,s.b_id,s.user_id,s.name,s.address,s.tel,s.store_type_cd,s.nearby_landmarks,s.map_x,s.map_y,s.status_cd
- from s_store s
- where 1=1
- <if test="statusCd != null and statusCd != ''">
- and s.status_cd = #{statusCd}
- </if>
-
- <if test="bId != null and bId !=''">
- and s.b_id = #{bId}
- </if>
- <if test="storeId != null and storeId !=''">
- and s.store_id = #{storeId}
- </if>
+ $getInfo$
</select>
@@ -51,41 +36,13 @@
<!-- 淇敼鍟嗘埛淇℃伅 add by wuxw 2018-07-03 -->
<update id="updateStoreInfoInstance" parameterType="Map">
- update s_store s set s.status_cd = #{statusCd}
- <if test="newBId != null and newBId != ''">
- ,s.b_id = #{newBId}
- </if>
- <if test="userId != null and userId != ''">
- ,s.user_id = #{userId}
- </if>
- <if test="name != null and name != ''">
- ,s.name = #{name}
- </if>
- <if test="address != null and address != ''">
- ,s.address = #{address}
- </if>
- <if test="tel != null and tel != ''">
- ,s.tel = #{tel}
- </if>
- <if test="storeTypeCd != null and storeTypeCd != ''">
- ,s.store_type_cd = #{storeTypeCd}
- </if>
- <if test="nearbyLandmarks != null and nearbyLandmarks != ''">
- ,s.nearby_landmarks = #{nearbyLandmarks}
- </if>
- <if test="mapX != null and mapX != ''">
- ,s.map_x = #{mapX}
- </if>
- <if test="mapY != null and mapY != ''">
- ,s.map_y = #{mapY}
- </if>
- where 1=1
- <if test="bId != null and bId !=''">
- and s.b_id = #{bId}
- </if>
- <if test="storeId != null and storeId !=''">
- and s.store_id = #{storeId}
- </if>
+ $updateInfoInstance$
</update>
+ <!-- 鏌ヨ鍟嗘埛鏁伴噺 add by wuxw 2018-07-03 -->
+ <select id="queryStoresCount" parameterType="Map" resultType="Map">
+ $queryCount$
+
+ </select>
+
</mapper>
--
Gitblit v1.8.0