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
1f9e0d86
Commit
1f9e0d86
authored
Jan 22, 2025
by
gaoyingwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master' into master
parents
e33fb70c
7df1a7a4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
0 deletions
+62
-0
MemInfoRepository.java
...a/org/rcisoft/business/memInfo/dao/MemInfoRepository.java
+15
-0
MemInfo.java
...ain/java/org/rcisoft/business/memInfo/entity/MemInfo.java
+9
-0
MemInfoServiceImpl.java
...oft/business/memInfo/service/impl/MemInfoServiceImpl.java
+14
-0
MemInfoMapper.xml
...esources/mapper/business/memInfo/mapper/MemInfoMapper.xml
+24
-0
No files found.
src/main/java/org/rcisoft/business/memInfo/dao/MemInfoRepository.java
View file @
1f9e0d86
...
...
@@ -31,6 +31,21 @@ public interface MemInfoRepository extends CyBaseMapper<MemInfo> {
*/
IPage
<
MemInfo
>
queryMemInfosPaged
(
CyPageInfo
cyPageInfo
,
@Param
(
"entity"
)
MemInfo
memInfo
);
/**
* 查询我喜欢的会员列表
*/
IPage
<
MemInfo
>
queryMeFollowPaged
(
CyPageInfo
cyPageInfo
,
@Param
(
"entity"
)
MemInfo
memInfo
);
/**
* 查询喜欢我的会员列表
*/
IPage
<
MemInfo
>
queryFollowMePaged
(
CyPageInfo
cyPageInfo
,
@Param
(
"entity"
)
MemInfo
memInfo
);
/**
* 查询互相喜欢的会员列表
*/
IPage
<
MemInfo
>
queryEachFollowPaged
(
CyPageInfo
cyPageInfo
,
@Param
(
"entity"
)
MemInfo
memInfo
);
/**
* 根据roleKey查询角色
* @param roleKey
...
...
src/main/java/org/rcisoft/business/memInfo/entity/MemInfo.java
View file @
1f9e0d86
...
...
@@ -547,16 +547,25 @@ public class MemInfo extends CyIdIncreEntity<MemInfo> {
/**
* 我喜欢的数量
*/
@TableField
(
exist
=
false
)
private
Integer
meFollowCount
;
/**
* 喜欢我的数量
*/
@TableField
(
exist
=
false
)
private
Integer
followMeCount
;
/**
* 互相喜欢的数量
*/
@TableField
(
exist
=
false
)
private
Integer
eachFollowCount
;
/**
* 查询类型 1:我喜欢的 2:喜欢我的 3:互相喜欢的
*/
@TableField
(
exist
=
false
)
private
String
queryType
;
}
src/main/java/org/rcisoft/business/memInfo/service/impl/MemInfoServiceImpl.java
View file @
1f9e0d86
...
...
@@ -241,6 +241,20 @@ public class MemInfoServiceImpl extends ServiceImpl<MemInfoRepository,MemInfo>
if
(
StringUtils
.
isNotEmpty
(
loginUserId
)){
memInfo
.
setLoginUserId
(
Integer
.
valueOf
(
loginUserId
));
}
//查询我喜欢的 喜欢我的 互相喜欢的会员列表(应用于小程序端-我的)
if
(
StringUtils
.
isNotEmpty
(
memInfo
.
getQueryType
())){
if
(
memInfo
.
getQueryType
().
equals
(
"1"
)){
//我喜欢的
return
baseMapper
.
queryMeFollowPaged
(
paginationUtility
,
memInfo
);
}
else
if
(
memInfo
.
getQueryType
().
equals
(
"2"
)){
//喜欢我的
return
baseMapper
.
queryFollowMePaged
(
paginationUtility
,
memInfo
);
}
else
if
(
memInfo
.
getQueryType
().
equals
(
"3"
)){
//互相喜欢的
return
baseMapper
.
queryEachFollowPaged
(
paginationUtility
,
memInfo
);
}
}
//查询会员表集合
return
baseMapper
.
queryMemInfosPaged
(
paginationUtility
,
memInfo
);
}
...
...
src/main/resources/mapper/business/memInfo/mapper/MemInfoMapper.xml
View file @
1f9e0d86
...
...
@@ -560,6 +560,30 @@
a.user_id = #{userId}
</select>
<select
id=
"queryMeFollowPaged"
resultType=
"org.rcisoft.business.memInfo.entity.MemInfo"
>
SELECT mi.*
FROM opm_user_follow ouf
LEFT JOIN sys_user su ON su.business_id = ouf.target_id
LEFT JOIN mem_info mi ON mi.user_id = su.business_id
WHERE 1=1
and ouf.user_id = #{entity.loginUserId}
</select>
<select
id=
"queryFollowMePaged"
resultType=
"org.rcisoft.business.memInfo.entity.MemInfo"
>
SELECT mi.*
FROM opm_user_follow ouf
LEFT JOIN sys_user su ON su.business_id = ouf.user_id
LEFT JOIN mem_info mi ON mi.user_id = su.business_id
WHERE 1=1
and ouf.target_id = #{entity.loginUserId}
</select>
<select
id=
"queryEachFollowPaged"
resultType=
"org.rcisoft.business.memInfo.entity.MemInfo"
>
SELECT mi.*
FROM opm_user_follow a
LEFT JOIN opm_user_follow b ON a.user_id = b.target_id and a.target_id = b.user_id
LEFT JOIN mem_info mi ON mi.user_id = b.user_id
WHERE 1=1
and b.target_id = #{entity.loginUserId}
</select>
<delete
id=
"deleteFollow"
parameterType=
"org.rcisoft.business.memInfo.entity.MemFollowDTO"
>
delete from opm_user_follow
where user_id = #{entity.userId} and target_id = #{entity.targetId}
...
...
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