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
b936ff67
Commit
b936ff67
authored
Feb 19, 2025
by
gaoyingwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 小程序首页接口问题(排序,实名
parent
45d90a3f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
1 deletion
+17
-1
AppMemInfoController.java
...isoft/app/appMemInfo/controller/AppMemInfoController.java
+1
-1
MemInfoServiceImpl.java
...oft/business/memInfo/service/impl/MemInfoServiceImpl.java
+9
-0
MemLeaveMessageServiceImpl.java
...LeaveMessage/service/impl/MemLeaveMessageServiceImpl.java
+4
-0
MemInfoMapper.xml
...esources/mapper/business/memInfo/mapper/MemInfoMapper.xml
+3
-0
No files found.
src/main/java/org/rcisoft/app/appMemInfo/controller/AppMemInfoController.java
View file @
b936ff67
...
@@ -84,7 +84,7 @@ public class AppMemInfoController extends CyPaginationController<MemInfo> {
...
@@ -84,7 +84,7 @@ public class AppMemInfoController extends CyPaginationController<MemInfo> {
@CyOpeLogAnno
(
title
=
"system-会员表管理-查询会员表"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@CyOpeLogAnno
(
title
=
"system-会员表管理-查询会员表"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@Operation
(
summary
=
"查询单一会员表"
,
description
=
"查询单一会员表"
)
@Operation
(
summary
=
"查询单一会员表"
,
description
=
"查询单一会员表"
)
@Parameters
({
@Parameter
(
name
=
"businessId"
,
description
=
"businessId"
,
required
=
true
,
schema
=
@Schema
(
type
=
"string"
))})
@Parameters
({
@Parameter
(
name
=
"businessId"
,
description
=
"businessId"
,
required
=
true
,
schema
=
@Schema
(
type
=
"string"
))})
@GetMapping
(
"/
open/
memInfo/detail/{businessId:\\w+}"
)
@GetMapping
(
"/memInfo/detail/{businessId:\\w+}"
)
public
CyResult
detail
(
@PathVariable
int
businessId
)
{
public
CyResult
detail
(
@PathVariable
int
businessId
)
{
MemInfo
info
=
memInfoServiceImpl
.
findById
(
businessId
);
MemInfo
info
=
memInfoServiceImpl
.
findById
(
businessId
);
info
.
setMemWxCode
(
null
);
info
.
setMemWxCode
(
null
);
...
...
src/main/java/org/rcisoft/business/memInfo/service/impl/MemInfoServiceImpl.java
View file @
b936ff67
...
@@ -593,6 +593,11 @@ public class MemInfoServiceImpl extends ServiceImpl<MemInfoRepository,MemInfo>
...
@@ -593,6 +593,11 @@ public class MemInfoServiceImpl extends ServiceImpl<MemInfoRepository,MemInfo>
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
isolation
=
Isolation
.
DEFAULT
)
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
isolation
=
Isolation
.
DEFAULT
)
@Override
@Override
public
MemFollowDTO
isFollow
(
MemFollowDTO
followDTO
){
public
MemFollowDTO
isFollow
(
MemFollowDTO
followDTO
){
//添加实名判断
String
userId
=
CyUserUtil
.
getAuthenBusinessId
();
MemInfo
memInfo
=
memInfoRepository
.
getInfoByUserId
(
userId
);
if
(!
"1"
.
equals
(
memInfo
.
getMemRealAuthen
()))
throw
new
CyServiceException
(
"请先进行实名认证"
);
return
baseMapper
.
getIsFollow
(
followDTO
);
return
baseMapper
.
getIsFollow
(
followDTO
);
}
}
/**
/**
...
@@ -614,6 +619,10 @@ public class MemInfoServiceImpl extends ServiceImpl<MemInfoRepository,MemInfo>
...
@@ -614,6 +619,10 @@ public class MemInfoServiceImpl extends ServiceImpl<MemInfoRepository,MemInfo>
@Override
@Override
public
CyPersistModel
addLike
(
MemLikeDTO
likeDTO
)
{
public
CyPersistModel
addLike
(
MemLikeDTO
likeDTO
)
{
String
userId
=
CyUserUtil
.
getAuthenBusinessId
();
String
userId
=
CyUserUtil
.
getAuthenBusinessId
();
//添加实名判断
MemInfo
info
=
memInfoRepository
.
getInfoByUserId
(
userId
);
if
(!
"1"
.
equals
(
info
.
getMemRealAuthen
()))
throw
new
CyServiceException
(
"请先进行实名认证"
);
//获取留言每天限制条数
//获取留言每天限制条数
List
<
DictData
>
userLikeConfig
=
dictionaryService
.
selectByTypes
(
"user_like_config"
);
List
<
DictData
>
userLikeConfig
=
dictionaryService
.
selectByTypes
(
"user_like_config"
);
DictData
dictData1
=
userLikeConfig
.
stream
().
filter
(
item
->
item
.
getDictLabel
().
equals
(
"like_limit_count"
)).
findFirst
().
orElse
(
null
);
DictData
dictData1
=
userLikeConfig
.
stream
().
filter
(
item
->
item
.
getDictLabel
().
equals
(
"like_limit_count"
)).
findFirst
().
orElse
(
null
);
...
...
src/main/java/org/rcisoft/business/memLeaveMessage/service/impl/MemLeaveMessageServiceImpl.java
View file @
b936ff67
...
@@ -70,7 +70,11 @@ public class MemLeaveMessageServiceImpl extends ServiceImpl<MemLeaveMessageRepos
...
@@ -70,7 +70,11 @@ public class MemLeaveMessageServiceImpl extends ServiceImpl<MemLeaveMessageRepos
@Override
@Override
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
isolation
=
Isolation
.
DEFAULT
)
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
isolation
=
Isolation
.
DEFAULT
)
public
CyPersistModel
leaveMessage
(
MemLeaveMessage
memLeaveMessage
)
{
public
CyPersistModel
leaveMessage
(
MemLeaveMessage
memLeaveMessage
)
{
//添加实名判断
String
userId
=
CyUserUtil
.
getAuthenBusinessId
();
String
userId
=
CyUserUtil
.
getAuthenBusinessId
();
MemInfo
info
=
memInfoRepository
.
getInfoByUserId
(
userId
);
if
(!
"1"
.
equals
(
info
.
getMemRealAuthen
()))
throw
new
CyServiceException
(
"请先进行实名认证"
);
//获取留言每天限制条数
//获取留言每天限制条数
List
<
DictData
>
leaveMessageConfig
=
dictionaryService
.
selectByTypes
(
"user_leave_message_config"
);
List
<
DictData
>
leaveMessageConfig
=
dictionaryService
.
selectByTypes
(
"user_leave_message_config"
);
DictData
dictData1
=
leaveMessageConfig
.
stream
().
filter
(
item
->
item
.
getDictLabel
().
equals
(
"leave_message_limit_count"
)).
findFirst
().
orElse
(
null
);
DictData
dictData1
=
leaveMessageConfig
.
stream
().
filter
(
item
->
item
.
getDictLabel
().
equals
(
"leave_message_limit_count"
)).
findFirst
().
orElse
(
null
);
...
...
src/main/resources/mapper/business/memInfo/mapper/MemInfoMapper.xml
View file @
b936ff67
...
@@ -631,6 +631,7 @@
...
@@ -631,6 +631,7 @@
WHERE 1=1
WHERE 1=1
and ouf.user_id = #{entity.loginUserId}
and ouf.user_id = #{entity.loginUserId}
and su.del_flag = '0'
and su.del_flag = '0'
ORDER BY mi.mem_level desc,mi.mem_real_authen desc,mi.is_recommended desc,mi.sort,mi.mem_code desc,mi.business_id DESC
</select>
</select>
<select
id=
"queryFollowMePaged"
resultType=
"org.rcisoft.business.memInfo.entity.MemInfo"
>
<select
id=
"queryFollowMePaged"
resultType=
"org.rcisoft.business.memInfo.entity.MemInfo"
>
SELECT mi.*
SELECT mi.*
...
@@ -640,6 +641,7 @@
...
@@ -640,6 +641,7 @@
WHERE 1=1
WHERE 1=1
and ouf.target_id = #{entity.loginUserId}
and ouf.target_id = #{entity.loginUserId}
and su.del_flag = '0'
and su.del_flag = '0'
ORDER BY mi.mem_level desc,mi.mem_real_authen desc,mi.is_recommended desc,mi.sort,mi.mem_code desc,mi.business_id DESC
</select>
</select>
<select
id=
"queryEachFollowPaged"
resultType=
"org.rcisoft.business.memInfo.entity.MemInfo"
>
<select
id=
"queryEachFollowPaged"
resultType=
"org.rcisoft.business.memInfo.entity.MemInfo"
>
SELECT mi.*
SELECT mi.*
...
@@ -648,6 +650,7 @@
...
@@ -648,6 +650,7 @@
LEFT JOIN mem_info mi ON mi.user_id = b.user_id
LEFT JOIN mem_info mi ON mi.user_id = b.user_id
WHERE 1=1
WHERE 1=1
and b.target_id = #{entity.loginUserId}
and b.target_id = #{entity.loginUserId}
ORDER BY mi.mem_level desc,mi.mem_real_authen desc,mi.is_recommended desc,mi.sort,mi.mem_code desc,mi.business_id DESC
</select>
</select>
<delete
id=
"deleteFollow"
parameterType=
"org.rcisoft.business.memInfo.entity.MemFollowDTO"
>
<delete
id=
"deleteFollow"
parameterType=
"org.rcisoft.business.memInfo.entity.MemFollowDTO"
>
delete from opm_user_follow
delete from opm_user_follow
...
...
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