<?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="org.springblade.modules.shopping.mapper.FavoritesMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="favoritesResultMap" type="org.springblade.modules.shopping.entity.Favorites">
        <id column="id" property="id"/>
        <result column="user_id" property="userId"/>
        <result column="goods_id" property="goodsId"/>
        <result column="shop_price" property="shopPrice"/>
        <result column="create_time" property="createTime"/>
    </resultMap>


    <select id="selectFavoritesPage" resultMap="favoritesResultMap">
        select * from t_favorites where is_deleted = 0
    </select>

</mapper>
