| | |
| | | <insert id="saveBusinessStoreInfo" parameterType="Map"> |
| | | insert into |
| | | business_store(store_id,b_id,user_id,name,address,tel,store_type_cd,nearby_landmarks,map_x,map_y,month,operate) |
| | | values(#{storeId},#{bId},#{userId},#{name},#{address},#{tel},#{storeTypeCd},#{nearbyLandmarks},#{mapX},#{mapY},#{month},#{operate}) |
| | | values(#{storeId},#{bId},#{userId},#{name},#{address},#{tel},#{storeTypeCd},#{nearByLandmarks},#{mapX},#{mapY},#{month},#{operate}) |
| | | </insert> |
| | | <!-- 保存商户属性信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveBusinessStoreAttr" parameterType="Map"> |
| | |
| | | |
| | | <!-- 查询商户属性信息 add by wuxw 2018-07-03 --> |
| | | <select id="getStoreAttrs" parameterType="Map" resultType="Map"> |
| | | select sa.b_id,sa.attr_id,sa.attr_id attrId,sa.store_id, sa.store_id storeId,sa.spec_cd,sa.spec_cd |
| | | specCd,sa.value,sa.status_cd |
| | | from s_store_attr sa |
| | | select |
| | | sa.b_id,sa.attr_id,sa.attr_id attrId, |
| | | sa.store_id, sa.store_id storeId,sa.spec_cd,sa.spec_cd specCd,sa.value,sa.status_cd, |
| | | c.name |
| | | from s_store_attr sa inner join spec c on sa.spec_cd = c.spec_cd |
| | | where |
| | | 1=1 |
| | | <if test="statusCd != null and statusCd != ''"> |
| | |
| | | |
| | | <!-- 查询商户 --> |
| | | <select id="getStores" parameterType="Map" resultType="Map"> |
| | | select s.store_id,s.b_id,s.user_id,s.name,s.name storeName,s.address,s.tel,s.store_id storeId, |
| | | s.store_type_cd,s.store_type_cd storeTypeCd, s.nearby_landmarks,s.map_x,s.map_y,s.status_cd, |
| | | st.name storeTypeName |
| | | select |
| | | s.store_id, |
| | | s.b_id, |
| | | s.user_id, |
| | | s.name,s.name storeName, |
| | | s.address, |
| | | s.tel, |
| | | s.store_id storeId, |
| | | s.store_type_cd,s.store_type_cd storeTypeCd, |
| | | s.nearby_landmarks,s.nearby_landmarks nearByLandmarks, |
| | | s.map_x,s.map_x mapX, |
| | | s.map_y,s.map_y mapY, |
| | | s.status_cd, |
| | | st.name storeTypeName |
| | | from s_store s,store_type st |
| | | where s.status_cd = '0' |
| | | and s.store_type_cd = st.store_type_cd |