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
a8f0d6ff
Commit
a8f0d6ff
authored
Aug 22, 2021
by
macro
Browse files
Update MemberBrandAttentionRepository.java
parent
0e22b919
Changes
1
Hide whitespace changes
Inline
Side-by-side
mall-portal/src/main/java/com/macro/mall/portal/repository/MemberBrandAttentionRepository.java
View file @
a8f0d6ff
...
...
@@ -11,9 +11,24 @@ import java.util.List;
* 会员品牌关注Repository
* Created by macro on 2018/8/2.
*/
public
interface
MemberBrandAttentionRepository
extends
MongoRepository
<
MemberBrandAttention
,
String
>
{
public
interface
MemberBrandAttentionRepository
extends
MongoRepository
<
MemberBrandAttention
,
String
>
{
/**
* 根据会员ID和品牌ID查找记录
*/
MemberBrandAttention
findByMemberIdAndBrandId
(
Long
memberId
,
Long
brandId
);
int
deleteByMemberIdAndBrandId
(
Long
memberId
,
Long
brandId
);
/**
* 根据会员ID和品牌ID删除记录
*/
int
deleteByMemberIdAndBrandId
(
Long
memberId
,
Long
brandId
);
/**
* 根据会员ID分页查找记录
*/
Page
<
MemberBrandAttention
>
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