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
db723be1
Commit
db723be1
authored
Dec 04, 2024
by
yanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
task: #952 3.客户列表,新增一列【最新报价单】,显示当前客户关联的最晚创建时间的报价单,可穿越到报价单详情
parent
4c1bf40a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
7 deletions
+26
-7
CustomerController.java
...ustomer/controller/admin/customer/CustomerController.java
+26
-7
No files found.
yudao-module-customer/yudao-module-customer-rest/src/main/java/cn/iocoder/yudao/module/customer/controller/admin/customer/CustomerController.java
View file @
db723be1
...
...
@@ -522,6 +522,9 @@ public class CustomerController {
if
(
Objects
.
nonNull
(
customerFollowupDO
))
{
respVO
.
setFollowupBackVO
(
CustomerFollowupConvert
.
INSTANCE
.
convert
(
customerFollowupDO
));
}
// 设置报价单号和报价id
setCustomerLastOffer
(
respVO
);
}
}
return
success
(
respVOPageResult
);
...
...
@@ -558,6 +561,9 @@ public class CustomerController {
if
(
Objects
.
nonNull
(
customerFollowupDO
))
{
respVO
.
setFollowupBackVO
(
CustomerFollowupConvert
.
INSTANCE
.
convert
(
customerFollowupDO
));
}
// 设置报价单号和报价id
setCustomerLastOffer
(
respVO
);
}
}
return
success
(
respVOPageResult
);
...
...
@@ -580,6 +586,9 @@ public class CustomerController {
if
(
Objects
.
nonNull
(
customerFollowupDO
))
{
respVO
.
setFollowupBackVO
(
CustomerFollowupConvert
.
INSTANCE
.
convert
(
customerFollowupDO
));
}
// 设置报价单号和报价id
setCustomerLastOffer
(
respVO
);
}
}
return
success
(
respVOPageResult
);
...
...
@@ -602,6 +611,9 @@ public class CustomerController {
if
(
Objects
.
nonNull
(
customerFollowupDO
))
{
respVO
.
setFollowupBackVO
(
CustomerFollowupConvert
.
INSTANCE
.
convert
(
customerFollowupDO
));
}
// 设置报价单号和报价id
setCustomerLastOffer
(
respVO
);
}
}
return
success
(
respVOPageResult
);
...
...
@@ -715,6 +727,9 @@ public class CustomerController {
if
(
Objects
.
nonNull
(
customerFollowupDO
))
{
respVO
.
setFollowupBackVO
(
CustomerFollowupConvert
.
INSTANCE
.
convert
(
customerFollowupDO
));
}
// 设置报价单号和报价id
setCustomerLastOffer
(
respVO
);
}
}
return
success
(
respVOPageResult
);
...
...
@@ -807,18 +822,22 @@ public class CustomerController {
respVO
.
setFollowupBackVO
(
CustomerFollowupConvert
.
INSTANCE
.
convert
(
customerFollowupDO
));
}
// 设置报价单号和报价id
OfferDO
lastOfferDO
=
offerMapper
.
selectOne
(
new
LambdaQueryWrapper
<
OfferDO
>().
eq
(
OfferDO:
:
getRelationId
,
respVO
.
getId
())
.
orderByDesc
(
OfferDO:
:
getCreateTime
).
last
(
"limit 1"
));
if
(
lastOfferDO
!=
null
)
{
respVO
.
setOfferId
(
lastOfferDO
.
getOfferId
());
respVO
.
setOfferNumber
(
lastOfferDO
.
getNumber
());
}
setCustomerLastOffer
(
respVO
);
}
}
return
success
(
respVOPageResult
);
}
private
void
setCustomerLastOffer
(
CustomerRespVO
respVO
)
{
// 设置报价单号和报价id
OfferDO
lastOfferDO
=
offerMapper
.
selectOne
(
new
LambdaQueryWrapper
<
OfferDO
>().
eq
(
OfferDO:
:
getRelationId
,
respVO
.
getId
())
.
orderByDesc
(
OfferDO:
:
getCreateTime
).
last
(
"limit 1"
));
if
(
lastOfferDO
!=
null
)
{
respVO
.
setOfferId
(
lastOfferDO
.
getOfferId
());
respVO
.
setOfferNumber
(
lastOfferDO
.
getNumber
());
}
}
@GetMapping
(
"/deptPage"
)
@ApiOperation
(
"获得部门客户"
)
@PreAuthorize
(
"@ss.hasAnyPermissions('ecw:customer:query', 'ecw:customer:dep-query')"
)
...
...
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