Update MemberProductCollectionRepository.java
This commit is contained in:
parent
a8f0d6fffd
commit
845c4adc99
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user