Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-api-boot-master
Commits
d7a59e26
Commit
d7a59e26
authored
Dec 10, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跟进列表返回上级跟进记录详情信息
parent
cdc6515f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
CustomerFollowupController.java
...er/admin/customerFollowup/CustomerFollowupController.java
+6
-4
No files found.
yudao-module-customer/yudao-module-customer-rest/src/main/java/cn/iocoder/yudao/module/customer/controller/admin/customerFollowup/CustomerFollowupController.java
View file @
d7a59e26
...
...
@@ -15,6 +15,8 @@ import cn.iocoder.yudao.module.system.enums.ErrorCodeConstants;
import
cn.iocoder.yudao.module.system.enums.download.DownloadTypeEnum
;
import
cn.iocoder.yudao.module.system.enums.permission.DataScopeEnum
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.Resource
;
import
org.springframework.validation.annotation.Validated
;
...
...
@@ -123,8 +125,8 @@ public class CustomerFollowupController {
PageResult
<
CustomerFollowupBackVO
>
backVOPageResult
=
CustomerFollowupConvert
.
INSTANCE
.
convertPage
(
pageResult
);
if
(
CollectionUtil
.
isNotEmpty
(
backVOPageResult
.
getList
())){
for
(
CustomerFollowupBackVO
followupBackVO
:
backVOPageResult
.
getList
())
{
if
(
Objects
.
nonNull
(
followupBackVO
.
getParentId
())){
CustomerFollowupDO
followupDO
=
followupService
.
get
ById
(
followupBackVO
.
getParentId
(
));
if
(
StringUtils
.
isNotBlank
(
followupBackVO
.
getParentNumber
())){
CustomerFollowupDO
followupDO
=
followupService
.
get
One
(
new
LambdaQueryWrapper
<
CustomerFollowupDO
>().
eq
(
CustomerFollowupDO:
:
getParentNumber
,
followupBackVO
.
getParentNumber
()).
orderByDesc
(
CustomerFollowupDO:
:
getId
).
last
(
"limit 1"
));
if
(
Objects
.
nonNull
(
followupDO
)){
followupBackVO
.
setParentVO
(
CustomerFollowupConvert
.
INSTANCE
.
convertParent
(
followupDO
));
}
...
...
@@ -154,8 +156,8 @@ public class CustomerFollowupController {
PageResult
<
CustomerFollowupBackVO
>
backVOPageResult
=
CustomerFollowupConvert
.
INSTANCE
.
convertPage
(
pageResult
);
if
(
CollectionUtil
.
isNotEmpty
(
backVOPageResult
.
getList
())){
for
(
CustomerFollowupBackVO
followupBackVO
:
backVOPageResult
.
getList
())
{
if
(
Objects
.
nonNull
(
followupBackVO
.
getParentId
())){
CustomerFollowupDO
followupDO
=
followupService
.
get
ById
(
followupBackVO
.
getParentId
(
));
if
(
StringUtils
.
isNotBlank
(
followupBackVO
.
getParentNumber
())){
CustomerFollowupDO
followupDO
=
followupService
.
get
One
(
new
LambdaQueryWrapper
<
CustomerFollowupDO
>().
eq
(
CustomerFollowupDO:
:
getParentNumber
,
followupBackVO
.
getParentNumber
()).
orderByDesc
(
CustomerFollowupDO:
:
getId
).
last
(
"limit 1"
));
if
(
Objects
.
nonNull
(
followupDO
)){
followupBackVO
.
setParentVO
(
CustomerFollowupConvert
.
INSTANCE
.
convertParent
(
followupDO
));
}
...
...
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