Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
mall
Commits
845c4adc
Commit
845c4adc
authored
Aug 24, 2021
by
macro
Browse files
Update MemberProductCollectionRepository.java
parent
a8f0d6ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
mall-portal/src/main/java/com/macro/mall/portal/repository/MemberProductCollectionRepository.java
View file @
845c4adc
...
...
@@ -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
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment