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
bb470b69
Commit
bb470b69
authored
Jan 25, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善了留言功能
parent
30e590b6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
2 deletions
+54
-2
AppMemInfoController.java
...isoft/app/appMemInfo/controller/AppMemInfoController.java
+12
-0
MemInfoRepository.java
...a/org/rcisoft/business/memInfo/dao/MemInfoRepository.java
+5
-0
MemInfoService.java
.../org/rcisoft/business/memInfo/service/MemInfoService.java
+5
-0
MemInfoServiceImpl.java
...oft/business/memInfo/service/impl/MemInfoServiceImpl.java
+12
-0
MemInfoMapper.xml
...esources/mapper/business/memInfo/mapper/MemInfoMapper.xml
+20
-2
No files found.
src/main/java/org/rcisoft/app/appMemInfo/controller/AppMemInfoController.java
View file @
bb470b69
...
@@ -374,4 +374,16 @@ public class AppMemInfoController extends CyPaginationController<MemInfo> {
...
@@ -374,4 +374,16 @@ public class AppMemInfoController extends CyPaginationController<MemInfo> {
return
getGridModelResponse
();
return
getGridModelResponse
();
}
}
/**
* 查询留言列表详情 1对1的
*/
@CyOpeLogAnno
(
title
=
"system-会员表管理-查询留言表"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@Operation
(
summary
=
"分页查询留言列表"
,
description
=
"分页查询留言列表"
)
@GetMapping
(
value
=
"/memInfo/leaveMessageDetailList"
)
// @CyEncryptSm4Anno
public
CyGridModel
leaveMessageDetailList
(
UserLeaveMessageDTO
dto
)
{
IPage
<
MemInfo
>
userLeaveMessage
=
memInfoServiceImpl
.
leaveMessageDetailByPagination
(
getPaginationUtility
(),
dto
);
return
getGridModelResponse
();
}
}
}
src/main/java/org/rcisoft/business/memInfo/dao/MemInfoRepository.java
View file @
bb470b69
...
@@ -172,5 +172,10 @@ public interface MemInfoRepository extends CyBaseMapper<MemInfo> {
...
@@ -172,5 +172,10 @@ public interface MemInfoRepository extends CyBaseMapper<MemInfo> {
* 分页查询留言
* 分页查询留言
*/
*/
IPage
<
MemInfo
>
leaveMessageByPagination
(
CyPageInfo
cyPageInfo
,
@Param
(
"entity"
)
UserLeaveMessageDTO
dto
);
IPage
<
MemInfo
>
leaveMessageByPagination
(
CyPageInfo
cyPageInfo
,
@Param
(
"entity"
)
UserLeaveMessageDTO
dto
);
/**
* 查询留言详情列表
*/
IPage
<
MemInfo
>
leaveMessageDetailList
(
CyPageInfo
cyPageInfo
,
@Param
(
"entity"
)
UserLeaveMessageDTO
dto
);
}
}
src/main/java/org/rcisoft/business/memInfo/service/MemInfoService.java
View file @
bb470b69
...
@@ -112,4 +112,9 @@ public interface MemInfoService {
...
@@ -112,4 +112,9 @@ public interface MemInfoService {
* 分页查询留言列表
* 分页查询留言列表
*/
*/
IPage
<
MemInfo
>
leaveMessageByPagination
(
CyPageInfo
<
MemInfo
>
paginationUtility
,
UserLeaveMessageDTO
dto
);
IPage
<
MemInfo
>
leaveMessageByPagination
(
CyPageInfo
<
MemInfo
>
paginationUtility
,
UserLeaveMessageDTO
dto
);
/**
* 查询留言列表详情 1对1的
*/
IPage
<
MemInfo
>
leaveMessageDetailByPagination
(
CyPageInfo
<
MemInfo
>
paginationUtility
,
UserLeaveMessageDTO
dto
);
}
}
src/main/java/org/rcisoft/business/memInfo/service/impl/MemInfoServiceImpl.java
View file @
bb470b69
...
@@ -702,4 +702,16 @@ public class MemInfoServiceImpl extends ServiceImpl<MemInfoRepository,MemInfo>
...
@@ -702,4 +702,16 @@ public class MemInfoServiceImpl extends ServiceImpl<MemInfoRepository,MemInfo>
IPage
<
MemInfo
>
userLeaveMessageIPage
=
memInfoRepository
.
leaveMessageByPagination
(
paginationUtility
,
dto
);
IPage
<
MemInfo
>
userLeaveMessageIPage
=
memInfoRepository
.
leaveMessageByPagination
(
paginationUtility
,
dto
);
return
userLeaveMessageIPage
;
return
userLeaveMessageIPage
;
}
}
/**
* 查询留言列表详情 1对1的
* @param paginationUtility
* @param dto
*/
@Override
public
IPage
<
MemInfo
>
leaveMessageDetailByPagination
(
CyPageInfo
<
MemInfo
>
paginationUtility
,
UserLeaveMessageDTO
dto
)
{
dto
.
setUserId
(
Integer
.
valueOf
(
CyUserUtil
.
getAuthenBusinessId
()));
IPage
<
MemInfo
>
userLeaveMessageIPage
=
memInfoRepository
.
leaveMessageDetailList
(
paginationUtility
,
dto
);
return
userLeaveMessageIPage
;
}
}
}
src/main/resources/mapper/business/memInfo/mapper/MemInfoMapper.xml
View file @
bb470b69
...
@@ -626,13 +626,31 @@
...
@@ -626,13 +626,31 @@
mi.avatar,
mi.avatar,
mi.mem_nick_name
mi.mem_nick_name
FROM opm_user_leave_message oulm
FROM opm_user_leave_message oulm
LEFT JOIN mem_info mi ON mi.user_id = oulm.
create_by
LEFT JOIN mem_info mi ON mi.user_id = oulm.
target_id
WHERE oulm.create_by = #{entity.userId}
WHERE oulm.create_by = #{entity.userId}
AND oulm.create_date = (
AND oulm.create_date = (
SELECT MAX(oulm2.create_date)
SELECT MAX(oulm2.create_date)
FROM opm_user_leave_message oulm2
FROM opm_user_leave_message oulm2
WHERE oulm2.target_id = oulm.target_id
WHERE oulm2.target_id = oulm.target_id
AND oulm2.create_by = #{entity.userId}
AND oulm2.create_by = #{entity.userId}
)
)
order by oulm.create_date desc
</select>
<select
id=
"leaveMessageDetailList"
resultType=
"org.rcisoft.business.memInfo.entity.MemInfo"
>
select
oulm.business_id,
oulm.content as leaveMessageContent,
oulm.del_status,
oulm.create_date,
oulm.create_by as userId,
oulm.target_id,
mi.avatar,
mi.mem_nick_name
from opm_user_leave_message oulm
LEFT JOIN mem_info mi ON mi.user_id = oulm.create_by
WHERE
(oulm.create_by = #{entity.userId} and oulm.target_id = #{entity.targetId})
OR (oulm.create_by = #{entity.targetId} and oulm.target_id = #{entity.userId})
ORDER BY create_date asc
</select>
</select>
</mapper>
</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