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
79aa2612
Commit
79aa2612
authored
Dec 11, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出货阶段的入仓修改和订单修改状态节点权限修正,海运是装柜审批完成,空运是已出仓
parent
2e3a9f89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
2 deletions
+45
-2
OrderServiceImpl.java
...dao/module/order/service/order/impl/OrderServiceImpl.java
+11
-2
OrderWarehouseInServiceImpl.java
...service/orderWarehouseIn/OrderWarehouseInServiceImpl.java
+34
-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 @
79aa2612
...
@@ -1910,8 +1910,17 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
...
@@ -1910,8 +1910,17 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
* 订单修改审批流程跟现有的订单审批流程一致,订单信息修改后无需产生异常,不判断异常条件是否满足
* 订单修改审批流程跟现有的订单审批流程一致,订单信息修改后无需产生异常,不判断异常条件是否满足
* 海运订单、拆单子单已装柜/空运已出货,订单信息修改,不需要更新价格
* 海运订单、拆单子单已装柜/空运已出货,订单信息修改,不需要更新价格
*/
*/
// 海运订单预装未装柜/空运订单分拣未出货, 锁定订单信息无法修改
// 海运订单预装未装柜/空运订单分拣未出货, 锁定订单信息无法修改 exclude(scope.row.shipmentState, [305, 307, 309, 310, 311, 313, 407,409])
if
(
vo
.
getShipmentState
()
==
0
||
vo
.
getShipmentState
()
==
305
||
vo
.
getShipmentState
()
==
307
||
vo
.
getShipmentState
()
==
407
)
{
if
(
vo
.
getShipmentState
()
==
0
||
vo
.
getShipmentState
()
==
305
||
vo
.
getShipmentState
()
==
307
||
vo
.
getShipmentState
()
==
309
||
vo
.
getShipmentState
()
==
310
||
vo
.
getShipmentState
()
==
311
||
vo
.
getShipmentState
()
==
313
||
vo
.
getShipmentState
()
==
407
||
vo
.
getShipmentState
()
==
409
||
vo
.
getShipmentState
()
==
411
)
{
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
{
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderWarehouseIn/OrderWarehouseInServiceImpl.java
View file @
79aa2612
...
@@ -3698,6 +3698,23 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
...
@@ -3698,6 +3698,23 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
if
(
orderDO
==
null
)
{
if
(
orderDO
==
null
)
{
throw
ServiceExceptionUtil
.
exception
(
ErrorCodeConstants
.
ORDER_NOT_EXISTS
);
throw
ServiceExceptionUtil
.
exception
(
ErrorCodeConstants
.
ORDER_NOT_EXISTS
);
}
}
if
(
orderDO
.
getShipmentState
()
==
0
||
orderDO
.
getShipmentState
()
==
305
||
orderDO
.
getShipmentState
()
==
307
||
orderDO
.
getShipmentState
()
==
309
||
orderDO
.
getShipmentState
()
==
310
||
orderDO
.
getShipmentState
()
==
311
||
orderDO
.
getShipmentState
()
==
313
||
orderDO
.
getShipmentState
()
==
407
||
orderDO
.
getShipmentState
()
==
409
||
orderDO
.
getShipmentState
()
==
411
)
{
if
(
orderDO
.
getTransportId
()
==
TransportTypeShortEnum
.
SEA_CONTAINER
.
getValue
())
{
throw
exception
(
ORDER_PRE_INSTALLATION_UNPACKAGED_CONTAINER_NOT_UPDATE
);
}
else
{
// 当前不是海运就是空运
throw
exception
(
ORDER_SORTING_NOT_SHIPMENT_NOT_UPDATE
);
}
}
if
(
OrderStatusEnum
.
DRAFT
.
getValue
().
equals
(
orderDO
.
getStatus
()))
{
if
(
OrderStatusEnum
.
DRAFT
.
getValue
().
equals
(
orderDO
.
getStatus
()))
{
throw
ServiceExceptionUtil
.
exception
(
ErrorCodeConstants
.
ORDER_DRAFT_STATUS_NOT_ALLOWED_WAREHOUSE_IN
);
throw
ServiceExceptionUtil
.
exception
(
ErrorCodeConstants
.
ORDER_DRAFT_STATUS_NOT_ALLOWED_WAREHOUSE_IN
);
}
}
...
@@ -3817,6 +3834,23 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
...
@@ -3817,6 +3834,23 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
if
(
orderDO
==
null
)
{
if
(
orderDO
==
null
)
{
throw
ServiceExceptionUtil
.
exception
(
ErrorCodeConstants
.
ORDER_NOT_EXISTS
);
throw
ServiceExceptionUtil
.
exception
(
ErrorCodeConstants
.
ORDER_NOT_EXISTS
);
}
}
if
(
orderDO
.
getShipmentState
()
==
0
||
orderDO
.
getShipmentState
()
==
305
||
orderDO
.
getShipmentState
()
==
307
||
orderDO
.
getShipmentState
()
==
309
||
orderDO
.
getShipmentState
()
==
310
||
orderDO
.
getShipmentState
()
==
311
||
orderDO
.
getShipmentState
()
==
313
||
orderDO
.
getShipmentState
()
==
407
||
orderDO
.
getShipmentState
()
==
409
||
orderDO
.
getShipmentState
()
==
411
)
{
if
(
orderDO
.
getTransportId
()
==
TransportTypeShortEnum
.
SEA_CONTAINER
.
getValue
())
{
throw
exception
(
ORDER_PRE_INSTALLATION_UNPACKAGED_CONTAINER_NOT_UPDATE
);
}
else
{
// 当前不是海运就是空运
throw
exception
(
ORDER_SORTING_NOT_SHIPMENT_NOT_UPDATE
);
}
}
if
(
OrderStatusEnum
.
WAREHOUSE_ADJUSTMENT
.
getValue
().
equals
(
orderDO
.
getStatus
()))
{
if
(
OrderStatusEnum
.
WAREHOUSE_ADJUSTMENT
.
getValue
().
equals
(
orderDO
.
getStatus
()))
{
throw
ServiceExceptionUtil
.
exception
(
ErrorCodeConstants
.
ORDER_WAREHOUSE_ADJUSTMENT_STATUS_NOT_ALLOWED_WAREHOUSE_IN
);
throw
ServiceExceptionUtil
.
exception
(
ErrorCodeConstants
.
ORDER_WAREHOUSE_ADJUSTMENT_STATUS_NOT_ALLOWED_WAREHOUSE_IN
);
}
}
...
...
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