Commit 1a854192 authored by zhengyi's avatar zhengyi

补充撤销到仓的业务调用

parent fe0ef350
...@@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.order.service.orderWarehouseCheck; ...@@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.order.service.orderWarehouseCheck;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.date.DateUtil; import cn.hutool.core.date.DateUtil;
import cn.iocoder.yudao.framework.apollo.core.event.box.BoxOrderForceWarehouseCheckEvent; import cn.iocoder.yudao.framework.apollo.core.event.box.BoxOrderForceWarehouseCheckEvent;
import cn.iocoder.yudao.framework.apollo.core.event.box.BoxOrderRevokeWarehouseCheckEvent;
import cn.iocoder.yudao.framework.common.exception.ServiceException; import cn.iocoder.yudao.framework.common.exception.ServiceException;
import cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil; import cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil;
import cn.iocoder.yudao.framework.mybatis.core.service.AbstractService; import cn.iocoder.yudao.framework.mybatis.core.service.AbstractService;
...@@ -175,8 +176,10 @@ public class OrderWarehouseCheckServiceImpl ...@@ -175,8 +176,10 @@ public class OrderWarehouseCheckServiceImpl
// 清空到仓信息 // 清空到仓信息
abstractMapper.delete(wrapper.eq(OrderWarehouseCheckDO::getOrderId, orderId)); abstractMapper.delete(wrapper.eq(OrderWarehouseCheckDO::getOrderId, orderId));
// 回退订单到仓状态及数据,并添加日志
orderBusinessService.revokeToWarehouse(orderId); orderBusinessService.revokeToWarehouse(orderId);
// 将未实际到仓的订单箱标号卸柜/到仓时间置null
applicationContext.publishEvent(new BoxOrderRevokeWarehouseCheckEvent(orderId));
} }
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment