| | |
| | | package com.yeshi.fanli.dao.mybatis.goods; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.goods.RecommendUserGoods; |
| | | |
| | | public interface RecommendUserGoodsMapper extends BaseMapper<RecommendUserGoods> { |
| | | |
| | | /** |
| | | * 获取用户的推荐列表 |
| | | * |
| | | * @param uid |
| | | * @param start |
| | | * @param size |
| | | * @return |
| | | */ |
| | | List<RecommendUserGoods> listRecommendGoods(@Param("uid") Long uid, @Param("start") long start, |
| | | @Param("count") int count); |
| | | |
| | | /** |
| | | * 用户推荐的数量 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | Long countRecommendGoods(@Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 获取最近的推荐 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | RecommendUserGoods getLatestRecommendUserGoods(Long uid); |
| | | package com.yeshi.fanli.dao.mybatis.goods;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.goods.RecommendUserGoods;
|
| | |
|
| | | public interface RecommendUserGoodsMapper extends BaseMapper<RecommendUserGoods> {
|
| | |
|
| | | /**
|
| | | * 获取用户的推荐列表
|
| | | * |
| | | * @param uid
|
| | | * @param start
|
| | | * @param size
|
| | | * @return
|
| | | */
|
| | | List<RecommendUserGoods> listRecommendGoods(@Param("uid") Long uid, @Param("start") long start,
|
| | | @Param("count") int count);
|
| | |
|
| | | /**
|
| | | * 用户推荐的数量
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | Long countRecommendGoods(@Param("uid") Long uid);
|
| | |
|
| | | /**
|
| | | * 获取最近的推荐
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | RecommendUserGoods getLatestRecommendUserGoods(Long uid);
|
| | | |
| | | |
| | | /**
|
| | | * 根据设备号获取最近的推荐
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | RecommendUserGoods getLatestRecommendUserGoodsByDevice(String device);
|
| | | |
| | | |
| | | /**
|
| | | * 根据设备号获取用户的推荐列表
|
| | | * |
| | | * @param uid
|
| | | * @param start
|
| | | * @param size
|
| | | * @return
|
| | | */
|
| | | List<RecommendUserGoods> listRecommendGoodsByDevice(@Param("device")String device, @Param("start") long start,
|
| | | @Param("count") int count);
|
| | | |
| | | /**
|
| | | * 用户推荐的数量
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | Long countRecommendGoodsByDevice(@Param("device")String device);
|
| | |
|
| | |
|
| | | } |