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
e275c3aa
Commit
e275c3aa
authored
Oct 11, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release-fix' into release
parents
ff9f902a
e4b92112
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
55 additions
and
3 deletions
+55
-3
OrderBusinessService.java
...udao/module/order/service/order/OrderBusinessService.java
+1
-1
OrderService.java
...ocoder/yudao/module/order/service/order/OrderService.java
+8
-0
OrderBusinessServiceImpl.java
...le/order/service/order/impl/OrderBusinessServiceImpl.java
+2
-2
OrderServiceImpl.java
...dao/module/order/service/order/impl/OrderServiceImpl.java
+44
-0
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/OrderBusinessService.java
View file @
e275c3aa
...
...
@@ -390,7 +390,7 @@ public interface OrderBusinessService extends IService<OrderDO> {
* @param orderItemDOList 订单商品项列表
* @param type 类型 : 1 新增 2 修改 3 实测入仓信息 4 合单 5 拆单 6 处理未报价异常 7 特价申请 8 订单货值修改
* 9 处理重泡货异常 10 已入仓订单修改重订价 11 处理渠道异常 12 处理单询异常 13 处理超重异常 14 批量加价 15 完成入仓
* 16 分拣完成锁定价格 20 强制重订价格 30 空运订单每日定时更新价格 40 订单异常处理完成更新计价 50 更新订单优惠信息
* 16 分拣完成锁定价格
17 分拣反审解除锁定价格 18 出货入仓修改
20 强制重订价格 30 空运订单每日定时更新价格 40 订单异常处理完成更新计价 50 更新订单优惠信息
**/
void
costCalculation
(
String
userId
,
OrderDO
orderDO
,
Long
consignorCustomerId
,
Long
consigneeCustomerId
,
Long
consignorCustomerContactsId
,
Long
consigneeCustomerContactsId
,
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/OrderService.java
View file @
e275c3aa
...
...
@@ -70,6 +70,14 @@ public interface OrderService extends IService<OrderDO> {
*/
OrderDO
orderInWarehouse
(
@Valid
OrderWarehouseInVO
orderWarehouseInVO
);
/**
* 出货订单入仓
*
* @param orderWarehouseInVO 入仓信息
*/
OrderDO
shipmentOrderInWarehouse
(
@Valid
OrderWarehouseInVO
orderWarehouseInVO
);
/**
* 合单-创建合并订单
*
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderBusinessServiceImpl.java
View file @
e275c3aa
...
...
@@ -3298,8 +3298,8 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order
* 5 拆单 6 处理未报价异常 7 特价申请 8 订单货值修改
* 9 处理重泡货异常 10 已入仓订单修改重订价 11
* 处理渠道异常 12 处理单询异常 13 处理超重异常
* 14 批量加价 15 完成入仓
* 1
6 分拣完成锁定价格 17 分拣反审解除锁定价格
* 14 批量加价 15 完成入仓
16 分拣完成锁定价格
* 1
7 分拣反审解除锁定价格 18 出货入仓修改
* 20 强制重订价格 30 空运订单每日定时更新价格
* 40 订单异常处理完成更新计价
* 50 更新订单优惠信息
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderServiceImpl.java
View file @
e275c3aa
...
...
@@ -3604,6 +3604,50 @@ public class OrderServiceImpl extends AbstractService<OrderMapper, OrderDO> impl
}
@Override
public
OrderDO
shipmentOrderInWarehouse
(
OrderWarehouseInVO
orderWarehouseInVO
)
{
// TODO 订单入仓信息录入
OrderDO
orderDO
=
orderMapper
.
selectById
(
orderWarehouseInVO
.
getOrderId
());
if
(
Objects
.
isNull
(
orderDO
))
{
throw
exception
(
ORDER_NOT_EXISTS
);
}
// 校验是否有已核销的应收单,如果有,则不能再次入仓修改
receivableService
.
verificationReceivableIsWriteOff
(
orderDO
.
getOrderId
(),
null
);
List
<
OrderItemDO
>
orderItemDOList
=
orderItemMapper
.
selectList
(
new
LambdaQueryWrapper
<
OrderItemDO
>().
eq
(
OrderItemDO:
:
getOrderId
,
orderDO
.
getOrderId
()));
List
<
OrderItemInWarehouseVO
>
orderItemInWarehouseVOList
=
orderWarehouseInVO
.
getOrderItemInWarehouseVOList
();
if
(
CollectionUtil
.
isNotEmpty
(
orderItemInWarehouseVOList
)
&&
CollectionUtil
.
isNotEmpty
(
orderItemDOList
))
{
orderItemInWarehouseVOList
.
forEach
(
vo
->
{
for
(
OrderItemDO
orderItemDO
:
orderItemDOList
)
{
if
(
null
!=
vo
.
getOrderItemId
()
&&
Objects
.
equals
(
orderItemDO
.
getOrderItemId
(),
vo
.
getOrderItemId
())
&&
Objects
.
equals
(
orderItemDO
.
getProdId
(),
vo
.
getProdId
()))
{
if
(
null
!=
vo
.
getProdType
())
{
orderItemDO
.
setProdType
(
vo
.
getProdType
());
}
if
(
null
!=
vo
.
getBrandType
())
{
orderItemDO
.
setBrandType
(
vo
.
getBrandType
());
}
if
(
StringUtils
.
isNotBlank
(
vo
.
getProdTitleZh
()))
{
orderItemDO
.
setProdTitleZh
(
vo
.
getProdTitleZh
());
}
if
(
StringUtils
.
isNotBlank
(
vo
.
getProdTitleEn
()))
{
orderItemDO
.
setProdTitleEn
(
vo
.
getProdTitleEn
());
}
}
}
});
}
OrderConsignorDO
orderConsignorDO
=
orderConsignorService
.
getOne
(
new
LambdaQueryWrapper
<
OrderConsignorDO
>().
eq
(
OrderConsignorDO:
:
getOrderId
,
orderDO
.
getOrderId
()).
last
(
"limit 1"
));
OrderConsigneeDO
orderConsigneeDO
=
orderConsigneeService
.
getOne
(
new
LambdaQueryWrapper
<
OrderConsigneeDO
>().
eq
(
OrderConsigneeDO:
:
getOrderId
,
orderDO
.
getOrderId
()).
last
(
"limit 1"
));
orderBusinessService
.
costCalculation
(
String
.
valueOf
(
SecurityFrameworkUtils
.
getLoginUserId
()),
orderDO
,
orderConsignorDO
.
getCustomerId
(),
orderConsigneeDO
.
getCustomerId
(),
orderConsignorDO
.
getCustomerContactsId
(),
orderConsigneeDO
.
getCustomerContactsId
(),
orderItemDOList
,
18
);
return
orderDO
;
}
@Override
public
void
mergeOrder
(
@Valid
OrderDO
orderDO
)
{
if
(
Objects
.
isNull
(
orderDO
))
{
...
...
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