Commit 845c4adc authored by macro's avatar macro
Browse files

Update MemberProductCollectionRepository.java

parent a8f0d6ff
......@@ -11,9 +11,24 @@ import java.util.List;
* 会员商品收藏Repository
* Created by macro on 2018/8/2.
*/
public interface MemberProductCollectionRepository extends MongoRepository<MemberProductCollection,String> {
public interface MemberProductCollectionRepository extends MongoRepository<MemberProductCollection, String> {
/**
* 根据会员ID和商品ID查找记录
*/
MemberProductCollection findByMemberIdAndProductId(Long memberId, Long productId);
int deleteByMemberIdAndProductId(Long memberId,Long productId);
/**
* 根据会员ID和商品ID删除记录
*/
int deleteByMemberIdAndProductId(Long memberId, Long productId);
/**
* 根据会员ID分页查询记录
*/
Page<MemberProductCollection> findByMemberId(Long memberId, Pageable pageable);
/**
* 根据会员ID删除录
*/
void deleteAllByMemberId(Long memberId);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment