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
a8d5bca7
Commit
a8d5bca7
authored
Nov 26, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增收货人和修改收发货人时同步更新客户编号冗余值
parent
812ba716
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
OrderServiceImpl.java
...dao/module/order/service/order/impl/OrderServiceImpl.java
+12
-0
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderServiceImpl.java
View file @
a8d5bca7
...
@@ -700,6 +700,10 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
...
@@ -700,6 +700,10 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
if
(
consigeeCustomer
!=
null
)
{
if
(
consigeeCustomer
!=
null
)
{
orderConsigneeDO
.
setCustomerId
(
consigeeCustomer
.
getCustomerId
());
orderConsigneeDO
.
setCustomerId
(
consigeeCustomer
.
getCustomerId
());
orderConsigneeDO
.
setCustomerContactsId
(
consigeeCustomer
.
getId
());
orderConsigneeDO
.
setCustomerContactsId
(
consigeeCustomer
.
getId
());
CustomerDO
customerDO
=
customerService
.
getCustomer
(
consigeeCustomer
.
getCustomerId
());
if
(
Objects
.
nonNull
(
customerDO
))
{
orderConsigneeDO
.
setCustomerNumber
(
customerDO
.
getNumber
());
}
}
}
}
}
}
}
...
@@ -2648,6 +2652,10 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
...
@@ -2648,6 +2652,10 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
}
}
orderConsignorBackVO
.
setCustomerContactsId
(
consignorContactsDO
.
getId
());
orderConsignorBackVO
.
setCustomerContactsId
(
consignorContactsDO
.
getId
());
orderConsignorBackVO
.
setCustomerId
(
consignorContactsDO
.
getCustomerId
());
orderConsignorBackVO
.
setCustomerId
(
consignorContactsDO
.
getCustomerId
());
CustomerDO
customerDO
=
customerService
.
getCustomer
(
consignorContactsDO
.
getCustomerId
());
if
(
Objects
.
nonNull
(
customerDO
))
{
orderConsignorBackVO
.
setCustomerNumber
(
customerDO
.
getNumber
());
}
// 发货人信息有变动
// 发货人信息有变动
orderConsignorBackVO
.
setIsCharge
(
true
);
orderConsignorBackVO
.
setIsCharge
(
true
);
// 重新定价
// 重新定价
...
@@ -2735,6 +2743,10 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
...
@@ -2735,6 +2743,10 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
}
}
orderConsigneeBackVO
.
setCustomerContactsId
(
consigneeContactsDO
.
getId
());
orderConsigneeBackVO
.
setCustomerContactsId
(
consigneeContactsDO
.
getId
());
orderConsigneeBackVO
.
setCustomerId
(
consigneeContactsDO
.
getCustomerId
());
orderConsigneeBackVO
.
setCustomerId
(
consigneeContactsDO
.
getCustomerId
());
CustomerDO
customerDO
=
customerService
.
getCustomer
(
consigneeContactsDO
.
getCustomerId
());
if
(
Objects
.
nonNull
(
customerDO
))
{
orderConsigneeBackVO
.
setCustomerNumber
(
customerDO
.
getNumber
());
}
// 收货人信息有变动
// 收货人信息有变动
orderConsigneeBackVO
.
setIsCharge
(
true
);
orderConsigneeBackVO
.
setIsCharge
(
true
);
// 重新定价
// 重新定价
...
...
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