package com.macro.mall.portal.repository;

import com.macro.mall.portal.domain.MemberProductCollection;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * 会员商品收藏Repository
 * Created by macro on 2018/8/2.
 */
public interface MemberProductCollectionRepository extends MongoRepository<MemberProductCollection,String> {
    MemberProductCollection findByMemberIdAndProductId(Long memberId, Long productId);
    int deleteByMemberIdAndProductId(Long memberId,Long productId);
    Page<MemberProductCollection> findByMemberId(Long memberId, Pageable pageable);
    void deleteAllByMemberId(Long memberId);
}

@@ -444,16 +444,17 @@
 lection,
+ 
 String%3E 
@@ -455,16 +455,55 @@
 ring%3E %7B%0A
+    /**%0A     * %E6%A0%B9%E6%8D%AE%E4%BC%9A%E5%91%98ID%E5%92%8C%E5%95%86%E5%93%81ID%E6%9F%A5%E6%89%BE%E8%AE%B0%E5%BD%95%0A     */%0A
     Memb
@@ -576,24 +576,64 @@
  productId);
+%0A%0A    /**%0A     * %E6%A0%B9%E6%8D%AE%E4%BC%9A%E5%91%98ID%E5%92%8C%E5%95%86%E5%93%81ID%E5%88%A0%E9%99%A4%E8%AE%B0%E5%BD%95%0A     */
 %0A    int del
@@ -672,16 +672,17 @@
 emberId,
+ 
 Long pro
@@ -689,16 +689,53 @@
 ductId);
+%0A%0A    /**%0A     * %E6%A0%B9%E6%8D%AE%E4%BC%9A%E5%91%98ID%E5%88%86%E9%A1%B5%E6%9F%A5%E8%AF%A2%E8%AE%B0%E5%BD%95%0A     */
 %0A    Pag
@@ -810,16 +810,50 @@
 geable);
+%0A%0A    /**%0A     * %E6%A0%B9%E6%8D%AE%E4%BC%9A%E5%91%98ID%E5%88%A0%E9%99%A4%E5%BD%95%0A     */
 %0A    voi

Update MemberProductCollectionRepository.java