wuxw
2022-05-10 ba5210dc8c6c537cacc59c18d58baa9744cd2b9d
java110-db/src/main/resources/mapper/store/StoreServiceDaoImplMapper.xml
old mode 100644 new mode 100755
@@ -563,7 +563,8 @@
    <!--查询员工和商户信息-->
    <select id="getStoreUserInfo" parameterType="Map" resultType="Map">
        select s.store_id,s.store_id storeId,s.b_id,s.user_id,s.user_id userId,s.name,s.address,s.tel,s.store_type_cd,s.store_type_cd storeTypeCd,
        select s.store_id,s.store_id storeId,s.b_id,s.user_id,s.user_id
        userId,s.name,s.address,s.tel,s.store_type_cd,s.store_type_cd storeTypeCd,
        s.nearby_landmarks,s.map_x,s.map_y,s.create_time,su.store_user_id,su.rel_cd,s.state
        from s_store s
        left join s_store_user su on s.store_id=su.store_id and su.status_cd = '0'
@@ -583,7 +584,7 @@
    <select id="getStoreStaffs" parameterType="Map" resultType="Map">
        select t.name storeName,t.address,su.user_id staffId , t.store_id storeId,t.create_time createTime
        select t.name storeName,t.address,su.user_id staffId , t.store_id storeId,t.create_time createTime,t.state
        from s_store t
        inner join s_store_user su on t.store_id = su.store_id and su.status_cd = '0'
        <if test="relCd != null and relCd != ''">
@@ -620,4 +621,41 @@
        </if>
        and t.status_cd = '0'
    </select>
    <!-- 修改商户信息 add by wuxw 2018-07-03 -->
    <update id="updateStore" parameterType="Map">
        update s_store s
        <set>
            <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>
            <if test="state != null and state != ''">
                s.state = #{state},
            </if>
        </set>
        where 1=1
        and s.store_id = #{storeId}
        and s.status_cd = '0'
    </update>
</mapper>