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
8e7bcdb1
Commit
8e7bcdb1
authored
Nov 28, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增、编辑订单时,收货人冗余数据bug修复
parent
e8f308d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
OrderServiceImpl.java
...dao/module/order/service/order/impl/OrderServiceImpl.java
+7
-7
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 @
8e7bcdb1
...
...
@@ -676,7 +676,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
orderConsigneeDO
.
setCustomerContactsId
(
consignee
.
getId
());
CustomerDO
consigneeDO
=
customerService
.
getCustomer
(
consignee
.
getCustomerId
());
if
(
Objects
.
nonNull
(
consigneeDO
))
{
orderConsign
or
DO
.
setCustomerNumber
(
consigneeDO
.
getNumber
());
orderConsign
ee
DO
.
setCustomerNumber
(
consigneeDO
.
getNumber
());
}
}
else
{
// 客户不存在,新增客户联系人信息 orderConsigneeDO中有值
...
...
@@ -863,13 +863,13 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
orderConsigneeDO
.
setCustomerNumber
(
consigneeDO
.
getNumber
());
CountryDO
consigneeCountryDO
=
countryService
.
getById
(
consigneeDO
.
getCountry
());
if
(
consigneeCountryDO
!=
null
)
{
orderConsign
or
DO
.
setCountryAbbreviation
(
consigneeCountryDO
.
getNameShort
());
orderConsign
ee
DO
.
setCountryAbbreviation
(
consigneeCountryDO
.
getNameShort
());
}
}
else
{
orderConsigneeDO
.
setCompany
(
createReqVO
.
getConsigneeCompany
());
orderConsigneeDO
.
setCompanyEn
(
createReqVO
.
getConsigneeCompanyEn
());
orderConsigneeDO
.
setAddress
(
createReqVO
.
getConsigneeAddress
());
orderConsign
or
DO
.
setCountryAbbreviation
(
createReqVO
.
getCountryAbbreviation
());
orderConsign
ee
DO
.
setCountryAbbreviation
(
createReqVO
.
getCountryAbbreviation
());
}
//客户联系人
CustomerContactsDO
consigneeContactsDO
=
...
...
@@ -3328,7 +3328,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
orderConsigneeDO
.
setCustomerContactsId
(
consignee
.
getId
());
CustomerDO
consigneeDO
=
customerService
.
getCustomer
(
consignee
.
getCustomerId
());
if
(
Objects
.
nonNull
(
consigneeDO
))
{
orderConsign
or
DO
.
setCustomerNumber
(
consigneeDO
.
getNumber
());
orderConsign
ee
DO
.
setCustomerNumber
(
consigneeDO
.
getNumber
());
}
}
else
{
// 客户不存在,新增客户联系人信息 orderConsigneeDO中有值
...
...
@@ -3341,7 +3341,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
orderConsigneeDO
.
setCustomerContactsId
(
consigeeCustomer
.
getId
());
CustomerDO
consigneeDO
=
customerService
.
getCustomer
(
consigeeCustomer
.
getCustomerId
());
if
(
Objects
.
nonNull
(
consigneeDO
))
{
orderConsign
or
DO
.
setCustomerNumber
(
consigneeDO
.
getNumber
());
orderConsign
ee
DO
.
setCustomerNumber
(
consigneeDO
.
getNumber
());
}
}
}
...
...
@@ -3522,13 +3522,13 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
orderConsigneeDO
.
setCustomerNumber
(
consigneeDO
.
getNumber
());
CountryDO
consigneeCountryDO
=
countryService
.
getById
(
consigneeDO
.
getCountry
());
if
(
consigneeCountryDO
!=
null
)
{
orderConsign
or
DO
.
setCountryAbbreviation
(
consigneeCountryDO
.
getNameShort
());
orderConsign
ee
DO
.
setCountryAbbreviation
(
consigneeCountryDO
.
getNameShort
());
}
}
else
{
orderConsigneeDO
.
setCompany
(
updateReqVO
.
getConsigneeCompany
());
orderConsigneeDO
.
setCompanyEn
(
updateReqVO
.
getConsigneeCompanyEn
());
orderConsigneeDO
.
setAddress
(
updateReqVO
.
getConsigneeAddress
());
orderConsign
or
DO
.
setCountryAbbreviation
(
updateReqVO
.
getCountryAbbreviation
());
orderConsign
ee
DO
.
setCountryAbbreviation
(
updateReqVO
.
getCountryAbbreviation
());
}
CustomerContactsDO
consigneeContactsDO
=
customerContactsService
.
getCustomerContacts
(
updateReqVO
.
getConsigneeContactsId
());
if
(
null
!=
consigneeContactsDO
)
{
...
...
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