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
341bef5b
Commit
341bef5b
authored
Feb 15, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改查询
parent
8e8147df
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
58 additions
and
1 deletion
+58
-1
MemInfoController.java
...cisoft/business/memInfo/controller/MemInfoController.java
+8
-1
MemInfoRepository.java
...a/org/rcisoft/business/memInfo/dao/MemInfoRepository.java
+5
-0
MemInfo.java
...ain/java/org/rcisoft/business/memInfo/entity/MemInfo.java
+6
-0
MemInfoService.java
.../org/rcisoft/business/memInfo/service/MemInfoService.java
+8
-0
MemInfoServiceImpl.java
...oft/business/memInfo/service/impl/MemInfoServiceImpl.java
+12
-0
MemInfoMapper.xml
...esources/mapper/business/memInfo/mapper/MemInfoMapper.xml
+19
-0
No files found.
src/main/java/org/rcisoft/business/memInfo/controller/MemInfoController.java
View file @
341bef5b
...
...
@@ -194,6 +194,13 @@ public class MemInfoController extends CyPaginationController<MemInfo> {
return
CyResultGenUtil
.
genSuccessResult
(
memInfoServiceImpl
.
getArticle
(
articleExamStatus
));
}
@PreAuthorize
(
"@cyPerm.hasPerm('mem:info:list')"
)
@CyOpeLogAnno
(
title
=
"system-会员表管理-查询会员表"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@Operation
(
summary
=
"分页查询会员热度表集合"
,
description
=
"分页查询会员热度表集合"
)
@GetMapping
(
value
=
"/memHost"
)
public
CyGridModel
listMemHostByPagination
(
MemInfo
memInfo
)
{
memInfoServiceImpl
.
findMemHostByPagination
(
getPaginationUtility
(),
memInfo
);
return
getGridModelResponse
();
}
}
src/main/java/org/rcisoft/business/memInfo/dao/MemInfoRepository.java
View file @
341bef5b
...
...
@@ -171,5 +171,10 @@ public interface MemInfoRepository extends CyBaseMapper<MemInfo> {
* 查询我喜欢的 喜欢我的 互相喜欢的数量
*/
MemInfo
selectUserFollowCount
(
Integer
userId
);
/**
* 分页查询会员热度表
*/
IPage
<
MemInfo
>
queryMemHostPaged
(
CyPageInfo
cyPageInfo
,
@Param
(
"entity"
)
MemInfo
memInfo
);
}
src/main/java/org/rcisoft/business/memInfo/entity/MemInfo.java
View file @
341bef5b
...
...
@@ -590,5 +590,11 @@ public class MemInfo extends CyIdIncreEntity<MemInfo> {
@TableField
(
exist
=
false
)
@Excel
(
name
=
"星座,1-12 水瓶-摩羯 ,根据birthday,自动带入"
,
orderNum
=
"4"
,
width
=
20
)
private
List
<
String
>
memConstellationList
;
/**
* 会员热度排序
*/
@TableField
(
exist
=
false
)
private
Integer
memSort
;
}
src/main/java/org/rcisoft/business/memInfo/service/MemInfoService.java
View file @
341bef5b
...
...
@@ -108,4 +108,12 @@ public interface MemInfoService {
CyPersistModel
addLike
(
MemLikeDTO
likeDTO
);
IPage
<
MemInfo
>
findRankByPagination
(
CyPageInfo
<
MemInfo
>
paginationUtility
,
MemInfo
memInfo
);
/**
* 分页查询 会员热度表
* @param memInfo
* @return
*/
IPage
<
MemInfo
>
findMemHostByPagination
(
CyPageInfo
<
MemInfo
>
paginationUtility
,
MemInfo
memInfo
);
}
src/main/java/org/rcisoft/business/memInfo/service/impl/MemInfoServiceImpl.java
View file @
341bef5b
...
...
@@ -708,4 +708,16 @@ public class MemInfoServiceImpl extends ServiceImpl<MemInfoRepository,MemInfo>
log
.
info
(
"用户点赞数据定时任务执行中..."
);
}
/**
* 分页查询 会员热度表
* @param memInfo
* @return
*/
@Override
public
IPage
<
MemInfo
>
findMemHostByPagination
(
CyPageInfo
<
MemInfo
>
paginationUtility
,
MemInfo
memInfo
){
return
baseMapper
.
queryMemHostPaged
(
paginationUtility
,
memInfo
);
}
}
src/main/resources/mapper/business/memInfo/mapper/MemInfoMapper.xml
View file @
341bef5b
...
...
@@ -729,4 +729,23 @@
ORDER BY mem_traffic desc
limit 10
</select>
<select
id=
"queryMemHostPaged"
resultType=
"org.rcisoft.business.memInfo.entity.MemInfo"
>
select *
from mem_info mi
where 1=1
<if
test=
"entity.memCode !=null and entity.memCode != '' "
>
and mi.mem_code = #{entity.memCode}
</if>
<if
test=
"entity.memSex !=null and entity.memSex != '' "
>
and mi.mem_sex = #{entity.memSex}
</if>
<choose>
<when
test=
"entity.memSort == 0"
>
ORDER BY mi.mem_liked_count DESC
</when>
<when
test=
"entity.memSort == 1"
>
ORDER BY mi.mem_followed_count DESC
</when>
</choose>
</select>
</mapper>
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