提交 a7f1bf33 authored 作者: liuhaiquan's avatar liuhaiquan

货单归还完吨数更新货单剩余吨数为0

上级 b9eba835
...@@ -153,8 +153,12 @@ public class OrderGoodsStatusLazyComponent implements InitializingBean { ...@@ -153,8 +153,12 @@ public class OrderGoodsStatusLazyComponent implements InitializingBean {
} }
} }
orderFeign.rollbackOrderWeight(param); orderFeign.rollbackOrderWeight(param);
//更新已完结 //更新已完结 和 剩余吨数
orderGoodsDao.updateOrderGoodsStatusByOrderGoodsNo(orderGoodsNo, OrderGoodsStatusEnum.Status.COMPLETED.getCode()); OrderGoods update = new OrderGoods();
update.setOrderGoodsStatus(OrderGoodsStatusEnum.Status.COMPLETED.getCode());
update.setResidueTransportWeight(BigDecimal.ZERO);
update.setId(orderGoods.getId());
orderGoodsDao.updateEntityByKey(update);
log.info("删除redis ORDER_GOODS_STATUS_LAZY id: {}", orderGoodsId.getValue()); log.info("删除redis ORDER_GOODS_STATUS_LAZY id: {}", orderGoodsId.getValue());
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论