Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李伟
cust-api
Commits
d7281c19
Commit
d7281c19
authored
Jan 21, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改关注
parent
14d2571e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
MemInfoRepository.java
...a/org/rcisoft/business/memInfo/dao/MemInfoRepository.java
+1
-1
OpmArticleServiceImpl.java
...siness/opmArticle/service/impl/OpmArticleServiceImpl.java
+6
-2
No files found.
src/main/java/org/rcisoft/business/memInfo/dao/MemInfoRepository.java
View file @
d7281c19
...
...
@@ -121,7 +121,7 @@ public interface MemInfoRepository extends CyBaseMapper<MemInfo> {
/**
* 查询关注的id集合
*/
List
<
Integer
>
queryFollowIdById
(
String
authenBusinessId
);
List
<
Integer
>
queryFollowIdById
(
@Param
(
"userId"
)
String
authenBusinessId
);
/**
* 排行榜
...
...
src/main/java/org/rcisoft/business/opmArticle/service/impl/OpmArticleServiceImpl.java
View file @
d7281c19
...
...
@@ -164,12 +164,16 @@ public class OpmArticleServiceImpl extends ServiceImpl<OpmArticleRepository, Opm
public
IPage
<
OpmArticle
>
findAllByPagination
(
CyPageInfo
<
OpmArticle
>
paginationUtility
,
OpmArticle
opmArticle
){
IPage
<
OpmArticle
>
result
=
null
;
if
(
opmArticle
.
getArticleType
().
equals
(
"0"
)){
if
(
opmArticle
.
getArticleType
()
!=
null
&&
opmArticle
.
getArticleType
()
.
equals
(
"0"
)){
//关注
//查询该用户关注对象的id集合
List
<
Integer
>
list
=
memInfoRepository
.
queryFollowIdById
(
CyUserUtil
.
getAuthenBusinessId
());
opmArticle
.
setFollowList
(
list
);
result
=
baseMapper
.
queryOpmArticlePaged
(
paginationUtility
,
opmArticle
);
if
(
list
.
isEmpty
()){
result
=
paginationUtility
;
}
else
{
result
=
baseMapper
.
queryOpmArticlePaged
(
paginationUtility
,
opmArticle
);
}
}
else
{
if
(
StringUtils
.
isNotEmpty
(
opmArticle
.
getUserId
())){
//设置查询用户 查询某个人的动态列表
...
...
Write
Preview
Markdown
is supported
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