提交订单

This commit is contained in:
邹宗楠
2022-03-09 14:52:21 +08:00
parent 19fed7f0aa
commit cff4e7fb01
6 changed files with 11 additions and 4 deletions

View File

@@ -138,6 +138,7 @@ func (w *OrderManager) OnWaybillStatusChanged(bill *model.Waybill) (err error) {
}
dao.Commit(db, txDB)
// 进运单调度器OnWaybillStatusChanged之前要确保事务是提交了的否则会导致死锁
// 加载数据到当前系统调度器当中
scheduler.CurrentScheduler.OnWaybillStatusChanged(&billCopy, false)
dao.Begin(db)
} else {