| | |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.goods.CollectionGoodsV2; |
| | | import com.yeshi.fanli.entity.goods.CollectionGoodsV2; |
| | | |
| | | public interface CollectionGoodsV2Mapper { |
| | | |
| | |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<CollectionGoodsV2> selectCountByUid(@Param("uid") Long uid); |
| | | long selectCountByUid(@Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 根据用户ID,商品ID,商品类型查询商品 |
| | | * |
| | | * @param id |
| | | * @param goodsType |
| | | * @param goodsId |
| | | * @return |
| | | */ |
| | | CollectionGoodsV2 selectByUidAndGoodsTypeAndGoodsId(@Param("uid") Long uid, @Param("goodsType") int goodsType, |
| | | @Param("goodsId") Long goodsId); |
| | | |
| | | /** |
| | | * 根据UID删除收藏 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | int deleteByUid(@Param("uid") Long uid); |
| | | |
| | | } |