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
da71d7ea
Commit
da71d7ea
authored
Nov 20, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单控货且有收货人才限制修改收货人业务bug修复
parent
196deb73
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
OrderServiceImpl.java
...dao/module/order/service/order/impl/OrderServiceImpl.java
+8
-8
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 @
da71d7ea
...
...
@@ -612,7 +612,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
// 当订单为控货订单,且发货人客户档案未设置控货无收货人,则需要校验收货人信息
if
(!
order
.
getIsCargoControl
()
||
hasConsignee
)
{
// 控货订单有收货人则限制修改收货人
if
(
order
.
getIsCargoControl
())
{
if
(
order
.
getIsCargoControl
()
&&
hasConsignee
)
{
order
.
setIsLimitUpdateConsignee
(
Boolean
.
TRUE
);
}
else
{
order
.
setIsLimitUpdateConsignee
(
Boolean
.
FALSE
);
...
...
@@ -706,7 +706,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
orderConsigneeService
.
save
(
orderConsigneeDO
);
}
else
{
// 控货订单没有收货人则不限制修改收货人
if
(
order
.
getIsCargoControl
()
&&
!
hasConsignee
)
{
if
(
order
.
getIsCargoControl
()
&&
hasConsignee
)
{
order
.
setIsLimitUpdateConsignee
(
Boolean
.
TRUE
);
}
else
{
order
.
setIsLimitUpdateConsignee
(
Boolean
.
FALSE
);
...
...
@@ -840,7 +840,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
OrderConsigneeDO
orderConsigneeDO
=
null
;
if
(!
order
.
getIsCargoControl
()
||
hasConsignee
)
{
// 控货订单有收货人则限制修改收货人
if
(
order
.
getIsCargoControl
())
{
if
(
order
.
getIsCargoControl
()
&&
hasConsignee
)
{
order
.
setIsLimitUpdateConsignee
(
Boolean
.
TRUE
);
}
else
{
order
.
setIsLimitUpdateConsignee
(
Boolean
.
FALSE
);
...
...
@@ -960,7 +960,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
}
}
else
{
// 控货订单没有收货人则不限制修改收货人
if
(
order
.
getIsCargoControl
()
&&
!
hasConsignee
)
{
if
(
order
.
getIsCargoControl
()
&&
hasConsignee
)
{
order
.
setIsLimitUpdateConsignee
(
Boolean
.
TRUE
);
}
else
{
order
.
setIsLimitUpdateConsignee
(
Boolean
.
FALSE
);
...
...
@@ -3253,7 +3253,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
OrderConsigneeDO
orderConsigneeDO
=
orderConsigneeService
.
getOne
(
new
LambdaQueryWrapper
<
OrderConsigneeDO
>().
eq
(
OrderConsigneeDO:
:
getOrderId
,
updateObj
.
getOrderId
()).
orderByDesc
(
OrderConsigneeDO:
:
getId
).
last
(
"limit 1"
));
if
(!
updateObj
.
getIsCargoControl
()
||
hasConsignee
)
{
// 控货订单有收货人则限制修改收货人
if
(
updateObj
.
getIsCargoControl
())
{
if
(
updateObj
.
getIsCargoControl
()
&&
hasConsignee
)
{
updateObj
.
setIsLimitUpdateConsignee
(
Boolean
.
TRUE
);
}
else
{
updateObj
.
setIsLimitUpdateConsignee
(
Boolean
.
FALSE
);
...
...
@@ -3342,7 +3342,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
orderConsigneeDO
=
null
;
}
// 控货订单没有收货人则不限制修改收货人
if
(
updateObj
.
getIsCargoControl
()
&&
!
hasConsignee
)
{
if
(
updateObj
.
getIsCargoControl
()
&&
hasConsignee
)
{
updateObj
.
setIsLimitUpdateConsignee
(
Boolean
.
TRUE
);
}
else
{
updateObj
.
setIsLimitUpdateConsignee
(
Boolean
.
FALSE
);
...
...
@@ -3495,7 +3495,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
if
(!
updateObj
.
getIsCargoControl
()
||
hasConsignee
)
{
// 控货订单有收货人则限制修改收货人
if
(
updateObj
.
getIsCargoControl
())
{
if
(
updateObj
.
getIsCargoControl
()
&&
hasConsignee
)
{
updateObj
.
setIsLimitUpdateConsignee
(
Boolean
.
TRUE
);
}
else
{
updateObj
.
setIsLimitUpdateConsignee
(
Boolean
.
FALSE
);
...
...
@@ -3610,7 +3610,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
}
consigneeDO
=
null
;
// 控货订单没有收货人则不限制修改收货人
if
(
updateObj
.
getIsCargoControl
()
&&
!
hasConsignee
)
{
if
(
updateObj
.
getIsCargoControl
()
&&
hasConsignee
)
{
updateObj
.
setIsLimitUpdateConsignee
(
Boolean
.
TRUE
);
}
else
{
updateObj
.
setIsLimitUpdateConsignee
(
Boolean
.
FALSE
);
...
...
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