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
11cd5e75
Commit
11cd5e75
authored
Jan 21, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了首页热门推荐能看到登录人自己的bug
parent
c57723b9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
MemInfo.java
...ain/java/org/rcisoft/business/memInfo/entity/MemInfo.java
+6
-0
MemInfoServiceImpl.java
...oft/business/memInfo/service/impl/MemInfoServiceImpl.java
+5
-0
MemInfoMapper.xml
...esources/mapper/business/memInfo/mapper/MemInfoMapper.xml
+3
-0
No files found.
src/main/java/org/rcisoft/business/memInfo/entity/MemInfo.java
View file @
11cd5e75
...
...
@@ -537,5 +537,11 @@ public class MemInfo extends CyIdIncreEntity<MemInfo> {
*/
@TableField
(
exist
=
false
)
private
String
metaInfo
;
/**
* 登录人id 用于小程序首页排除当前登录人
*/
@TableField
(
exist
=
false
)
private
Integer
loginUserId
;
}
src/main/java/org/rcisoft/business/memInfo/service/impl/MemInfoServiceImpl.java
View file @
11cd5e75
...
...
@@ -220,6 +220,11 @@ public class MemInfoServiceImpl extends ServiceImpl<MemInfoRepository,MemInfo>
memInfo
.
setBeginBirthday
(
computeBirthdayBegin
(
memInfo
.
getMaxAge
()));
memInfo
.
setEndBirthday
(
computeBirthdayEnd
(
memInfo
.
getMinAge
()));
}
//去除小程序端首页的登录人显示 不能自己热门推荐自己
String
loginUserId
=
CyUserUtil
.
getAuthenBusinessId
();
if
(
StringUtils
.
isNotEmpty
(
loginUserId
)){
memInfo
.
setLoginUserId
(
Integer
.
valueOf
(
loginUserId
));
}
return
baseMapper
.
queryMemInfosPaged
(
paginationUtility
,
memInfo
);
}
...
...
src/main/resources/mapper/business/memInfo/mapper/MemInfoMapper.xml
View file @
11cd5e75
...
...
@@ -344,6 +344,9 @@
<if
test=
"entity.endTime !=null and entity.endTime != '' "
>
and m.create_date
<
= #{entity.endTime}
</if>
<if
test=
"entity.loginUserId !=null and entity.loginUserId != '' "
>
and m.user_id != #{entity.loginUserId}
</if>
ORDER BY m.mem_level desc,m.mem_real_authen desc,m.is_recommended desc,m.sort,m.mem_code desc,m.business_id DESC
</select>
...
...
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