Browse Source

优化 查询store sql 问题

wuxw 6 years ago
parent
commit
42f3d3fe59

+ 2 - 2
java110-db/src/main/resources/mapper/store/StoreServiceDaoImplMapper.xml

@@ -444,11 +444,11 @@
 
     <!-- 查询商户 -->
     <select id="getStores" parameterType="Map" resultType="Map">
-        select s.store_id,s.b_id,s.user_id,s.name,s.storeName,s.address,s.tel,
+        select s.store_id,s.b_id,s.user_id,s.name,s.name storeName,s.address,s.tel,
         s.store_type_cd,s.store_type_cd storeTypeCd, s.nearby_landmarks,s.map_x,s.map_y,s.status_cd,
         st.name storeTypeName
         from s_store s,store_type st
-        where s.status_cd = '0',
+        where s.status_cd = '0'
         and s.store_type_cd = st.store_type_cd
 
         <if test="userId != null and userId != ''">