<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="shop.alien.mapper.StoreTagDetailMapper">

    <!-- 根据门店id查询店铺标签详情 -->
    <select id="selectStoreTagDetailByStoreId" resultType="shop.alien.entity.store.TagStoreRelation">
        SELECT
            id,
            store_id AS storeId,
            tag_column_a AS tagColumn1,
            tag_column_b AS tagColumn2,
            tag_column_c AS tagColumn3,
            tag_column_d AS tagColumn4,
            tag_column_e AS tagColumn5,
            tag_column_f AS tagColumn6,
            tag_column_g AS tagColumn7,
            tag_column_h AS tagColumn8,
            tag_column_i AS tagColumn9,
            tag_column_j AS tagColumn10,
            tag_column_k AS tagColumn11,
            tag_column_l AS tagColumn12,
            tag_column_m AS tagColumn13,
            tag_column_n AS tagColumn14,
            tag_column_o AS tagColumn15,
            tag_column_p AS tagColumn16,
            tag_column_q AS tagColumn17,
            tag_column_r AS tagColumn18,
            tag_column_s AS tagColumn19,
            tag_column_t AS tagColumn20,
            tag_column_u AS tagColumn21,
            tag_column_v AS tagColumn22,
            tag_column_w AS tagColumn23,
            tag_column_x AS tagColumn24,
            tag_column_y AS tagColumn25,
            created_time AS createdTime,
            created_user_id AS createdUserId,
            updated_time AS updatedTime,
            updated_user_id AS updatedUserId,
            delete_flag AS deleteFlag
        FROM
            tag_store_relation
        WHERE
            store_id = #{storeId}
            AND delete_flag = 0
        LIMIT 1
    </select>

</mapper>
