zhanghua
2022-11-09 81341a45d4538871ef40ced2f2693e6d48b50a3e
ycl-platform/src/main/resources/mapper/store/UmsStoreInfoMapper.xml
@@ -17,14 +17,17 @@
    <select id="selectStorePage" resultType="com.ycl.vo.store.StoreInfoVO">
        SELECT
            t1.*,
            t2.`name`
            t2.`name` as typeName,
            t3.*
        FROM
            ums_store_store_info t1
                JOIN ums_data_dictionary t2 ON t1.type = t2.id
            left JOIN ums_data_dictionary t2 ON t1.type = t2.id
            left JOIN ums_video_point t3 ON t1.video_id = t3.id
        <where>
            <if test="keyword!=null and keyword!=''">
                t1.store_name LIKE  CONCAT('%', #{keyword}, '%')
            </if>
        </where>
        order by t1.id desc
    </select>
</mapper>