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
eff18ea4
Commit
eff18ea4
authored
Nov 10, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出货订单修改海外仓属性值判断逻辑修正
parent
c80cae7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
OrderServiceImpl.java
...dao/module/order/service/order/impl/OrderServiceImpl.java
+4
-6
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 @
eff18ea4
...
@@ -1903,7 +1903,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
...
@@ -1903,7 +1903,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
if
(
vo
.
getTransportId
()
==
TransportTypeShortEnum
.
SEA_CONTAINER
.
getValue
())
{
if
(
vo
.
getTransportId
()
==
TransportTypeShortEnum
.
SEA_CONTAINER
.
getValue
())
{
throw
exception
(
ORDER_PRE_INSTALLATION_UNPACKAGED_CONTAINER_NOT_UPDATE
);
throw
exception
(
ORDER_PRE_INSTALLATION_UNPACKAGED_CONTAINER_NOT_UPDATE
);
}
else
{
}
else
{
//
TODO
当前不是海运就是空运
// 当前不是海运就是空运
throw
exception
(
ORDER_SORTING_NOT_SHIPMENT_NOT_UPDATE
);
throw
exception
(
ORDER_SORTING_NOT_SHIPMENT_NOT_UPDATE
);
}
}
}
}
...
@@ -1911,7 +1911,6 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
...
@@ -1911,7 +1911,6 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
if
(
updateReqVO
.
getTransportId
()
!=
vo
.
getTransportId
())
{
if
(
updateReqVO
.
getTransportId
()
!=
vo
.
getTransportId
())
{
throw
exception
(
NOT_UPDATE_TRANSPORT
);
throw
exception
(
NOT_UPDATE_TRANSPORT
);
}
}
// TODO 这里需要优化查询,这里查询了后面调用不建议重复查询,后面做优化
LogisticsInfoDto
logisticsInfoDto
=
warehouseLineMapper
.
getStartInfoAndDestInfoByLineId
(
updateReqVO
.
getLineId
());
LogisticsInfoDto
logisticsInfoDto
=
warehouseLineMapper
.
getStartInfoAndDestInfoByLineId
(
updateReqVO
.
getLineId
());
LogisticsInfoDto
orgLogisticsInfoDto
=
warehouseLineMapper
.
getStartInfoAndDestInfoByLineId
(
vo
.
getLineId
());
LogisticsInfoDto
orgLogisticsInfoDto
=
warehouseLineMapper
.
getStartInfoAndDestInfoByLineId
(
vo
.
getLineId
());
// 不允许修改始发地
// 不允许修改始发地
...
@@ -1923,8 +1922,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
...
@@ -1923,8 +1922,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
throw
exception
(
NOT_UPDATE_DEST_COUNTRY
);
throw
exception
(
NOT_UPDATE_DEST_COUNTRY
);
}
}
// 海外仓业务变动申请
// 海外仓业务变动申请
if
(!
vo
.
getType
().
contains
(
"2"
)
&&
updateReqVO
.
getType
().
contains
(
"2"
))
{
if
((!
vo
.
getType
().
contains
(
"2"
)
&&
updateReqVO
.
getType
().
contains
(
"2"
))
||
(
vo
.
getType
().
contains
(
"2"
)
&&
!
updateReqVO
.
getType
().
contains
(
"2"
)))
{
// TODO 订单如果转海外仓需要单独申请, 订单如果是海外仓改为非海外仓呢?
throw
exception
(
ORDER_OVERSEAS_WAREHOUSE_UPDATE_NEED_APPLY
);
throw
exception
(
ORDER_OVERSEAS_WAREHOUSE_UPDATE_NEED_APPLY
);
}
}
// 当是否控货从是修改成否,需校验订单是否有放货记录状态≠已取消,有则弹出提示“订单已放货,无法修改为不控货”
// 当是否控货从是修改成否,需校验订单是否有放货记录状态≠已取消,有则弹出提示“订单已放货,无法修改为不控货”
...
@@ -1940,7 +1938,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
...
@@ -1940,7 +1938,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
}
}
// 当是否控货从否修改成是,校验订单是否有提货记录,有则弹出提示“订单已有提货记录,无法修改成控货”
// 当是否控货从否修改成是,校验订单是否有提货记录,有则弹出提示“订单已有提货记录,无法修改成控货”
if
(!
vo
.
getIsCargoControl
()
&&
updateReqVO
.
getIsCargoControl
())
{
if
(!
vo
.
getIsCargoControl
()
&&
updateReqVO
.
getIsCargoControl
())
{
//
TODO
校验订单是否有提货记录
// 校验订单是否有提货记录
long
pickupCount
=
orderPickupMapper
.
selectCount
(
new
LambdaQueryWrapper
<
OrderPickupDO
>()
long
pickupCount
=
orderPickupMapper
.
selectCount
(
new
LambdaQueryWrapper
<
OrderPickupDO
>()
.
eq
(
OrderPickupDO:
:
getOrderId
,
vo
.
getOrderNo
()));
.
eq
(
OrderPickupDO:
:
getOrderId
,
vo
.
getOrderNo
()));
if
(
pickupCount
>
0
)
{
if
(
pickupCount
>
0
)
{
...
@@ -2170,7 +2168,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
...
@@ -2170,7 +2168,7 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
}
}
}
}
if
(
isShipment
)
{
if
(
isShipment
)
{
//
TODO
出货阶段的修改,需要将当前订单状态值标出,放首位
// 出货阶段的修改,需要将当前订单状态值标出,放首位
ApplyInfoVO
applyInfoVO
=
new
ApplyInfoVO
();
ApplyInfoVO
applyInfoVO
=
new
ApplyInfoVO
();
applyInfoVO
.
setName
(
statusName
);
applyInfoVO
.
setName
(
statusName
);
applyInfoList
.
addFirst
(
applyInfoVO
);
applyInfoList
.
addFirst
(
applyInfoVO
);
...
...
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