| | |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.goods.CollectionGoodsV2; |
| | | import com.yeshi.fanli.entity.goods.CollectionGoodsV2; |
| | | |
| | | public interface CollectionGoodsV2Mapper { |
| | | |
| | |
| | | * @return |
| | | */ |
| | | List<CollectionGoodsV2> selectByUidOrderByCreateTimeDesc(@Param("uid") Long uid, @Param("start") long start, |
| | | @Param("count") int count); |
| | | @Param("count") int count, @Param("source")Integer source, @Param("notBackSuVip") boolean notBackSuVip); |
| | | |
| | | /** |
| | | * 获取收藏的数量 |
| | |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | long selectCountByUid(@Param("uid") Long uid); |
| | | long selectCountByUid(@Param("uid") Long uid, @Param("source")Integer source, @Param("notBackSuVip") boolean notBackSuVip); |
| | | |
| | | |
| | | /** |
| | | * 根据用户ID,商品ID,商品类型查询商品 |
| | | * |
| | |
| | | * @param goodsId |
| | | * @return |
| | | */ |
| | | CollectionGoodsV2 selectByUidAndGoodsTypeAndGoodsId(@Param("uid") Long uid, @Param("goodsType") int goodsType, |
| | | @Param("goodsId") Long goodsId); |
| | | CollectionGoodsV2 selectByUidAndGoodsId(@Param("uid") Long uid, @Param("goodsId") Long goodsId); |
| | | |
| | | |
| | | /** |
| | | * 根据用户ID,商品ID,商品类型查询商品 |
| | | * |
| | | * @param id |
| | | * @param goodsType |
| | | * @param goodsId |
| | | * @return |
| | | */ |
| | | CollectionGoodsV2 selectByUidAndGoodsType(@Param("uid") Long uid, @Param("goodsId") String goodsId, |
| | | @Param("goodsType") Integer goodsType); |
| | | |
| | | /** |
| | | * 根据UID删除收藏 |
| | |
| | | * @return |
| | | */ |
| | | int deleteByUid(@Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 用户id/收藏简版商品id |
| | | * @param uid |
| | | * @param commonId |
| | | * @return |
| | | */ |
| | | List<CollectionGoodsV2> getByUidAndCommonId(@Param("uid") Long uid, @Param("commonId") Long commonId); |
| | | |
| | | } |