admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/CollectionGoodsV2Mapper.java
@@ -4,7 +4,7 @@
import org.apache.ibatis.annotations.Param;
import com.yeshi.fanli.goods.CollectionGoodsV2;
import com.yeshi.fanli.entity.goods.CollectionGoodsV2;
public interface CollectionGoodsV2Mapper {
@@ -38,7 +38,7 @@
    * @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);
   /**
    * 获取收藏的数量
@@ -46,6 +46,45 @@
    * @param uid
    * @return
    */
   List<CollectionGoodsV2> selectCountByUid(@Param("uid") Long uid);
   long selectCountByUid(@Param("uid") Long uid, @Param("source")Integer source, @Param("notBackSuVip") boolean notBackSuVip);
   /**
    * 根据用户ID,商品ID,商品类型查询商品
    *
    * @param id
    * @param goodsType
    * @param goodsId
    * @return
    */
   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删除收藏
    *
    * @param 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);
}