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
4ff62b22
Commit
4ff62b22
authored
Oct 19, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/release' into release
parents
954da1d1
0084341a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
CustomerMergeServiceImpl.java
...r/controller/admin/customer/CustomerMergeServiceImpl.java
+12
-14
No files found.
yudao-module-customer/yudao-module-customer-rest/src/main/java/cn/iocoder/yudao/module/customer/controller/admin/customer/CustomerMergeServiceImpl.java
View file @
4ff62b22
...
...
@@ -9,15 +9,13 @@ import cn.iocoder.yudao.module.customer.dal.dataobject.customer.CustomerDO;
import
cn.iocoder.yudao.module.customer.dal.dataobject.customer.complaint.CustomerComplaintDO
;
import
cn.iocoder.yudao.module.customer.dal.dataobject.customer.follow.CustomerFollowDO
;
import
cn.iocoder.yudao.module.customer.dal.dataobject.customerContacts.CustomerContactsDO
;
import
cn.iocoder.yudao.module.customer.dal.dataobject.customerFollowup.CustomerFollowupDO
;
import
cn.iocoder.yudao.module.customer.service.customer.CustomerService
;
import
cn.iocoder.yudao.module.customer.service.customer.commission.CustomerCommissionService
;
import
cn.iocoder.yudao.module.customer.service.customer.complaint.CustomerComplaintService
;
import
cn.iocoder.yudao.module.customer.service.customer.complaint.follow.CustomerFollowService
;
import
cn.iocoder.yudao.module.customer.service.customerContacts.CustomerContactsService
;
import
cn.iocoder.yudao.module.customer.service.customerCredit.CustomerCreditService
;
import
cn.iocoder.yudao.module.customer.service.customerLevel.CustomerLevelService
;
import
cn.iocoder.yudao.module.customer.service.customerFollowup.CustomerFollowupService
;
import
cn.iocoder.yudao.module.customer.service.customerLevelLog.CustomerLevelLogService
;
import
cn.iocoder.yudao.module.customer.service.customerLevelLog.CustomerLevelLogServiceImpl
;
import
cn.iocoder.yudao.module.customer.service.customerOperateLog.CustomerOperateLogService
;
import
cn.iocoder.yudao.module.customer.vo.customerOperateLog.CustomerOperateLogCreateReqVO
;
import
cn.iocoder.yudao.module.ecw.enums.CustomerOperateTypeEnum
;
...
...
@@ -60,7 +58,7 @@ public class CustomerMergeServiceImpl implements CustomerMergeService {
//客户跟进
@Resource
CustomerFollow
Service
customerFollow
Service
;
CustomerFollow
upService
customerFollowup
Service
;
@Resource
private
CustomerComplaintService
customerComplaintService
;
...
...
@@ -134,7 +132,7 @@ public class CustomerMergeServiceImpl implements CustomerMergeService {
//合并报价单 2
doMogeOffer
(
customerDOSaved
,
customerDODeleted
,
loginUserId
);
//合并跟进记录 3
doMergeCustomerFollow
(
customerDOSaved
,
customerDODeleted
,
loginUserId
);
doMergeCustomerFollow
up
(
customerDOSaved
,
customerDODeleted
,
loginUserId
);
//合并客户投诉 4
doMergeCustomerComplaint
(
customerDOSaved
,
customerDODeleted
,
loginUserId
);
//合并产品品牌授权 6
...
...
@@ -293,19 +291,19 @@ public class CustomerMergeServiceImpl implements CustomerMergeService {
//合并客户跟进
private
void
doMergeCustomerFollow
(
CustomerDO
customerDOSaved
,
CustomerDO
customerDODeleted
,
long
loginUserId
)
{
private
void
doMergeCustomerFollow
up
(
CustomerDO
customerDOSaved
,
CustomerDO
customerDODeleted
,
long
loginUserId
)
{
LambdaQueryWrapperX
q2
=
new
LambdaQueryWrapperX
<
CustomerFollowDO
>().
eq
(
CustomerFollowDO:
:
getCustomerId
,
customerDODeleted
.
getId
());
List
<
CustomerFollow
DO
>
list
=
customerFollow
Service
.
selectList
(
q2
);
new
LambdaQueryWrapperX
<
CustomerFollow
up
DO
>().
eq
(
CustomerFollow
up
DO:
:
getCustomerId
,
customerDODeleted
.
getId
());
List
<
CustomerFollow
upDO
>
list
=
customerFollowup
Service
.
selectList
(
q2
);
if
(
CollectionUtil
.
isEmpty
(
list
))
return
;
for
(
CustomerFollowDO
d
:
list
for
(
CustomerFollow
up
DO
d
:
list
)
{
d
.
setCustomerId
(
customerDOSaved
.
getId
());
customerFollowService
.
updateById
(
d
);
customerFollow
up
Service
.
updateById
(
d
);
}
}
...
...
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