yujian
2019-01-22 88b54772dbcf5ecab1e2316e4e4626ac901b8908
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 {
@@ -46,6 +46,25 @@
    * @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);
}