This commit is contained in:
邹宗楠
2023-10-16 09:35:06 +08:00
parent e416962084
commit 7fa1fade3b
3 changed files with 10 additions and 9 deletions

View File

@@ -112,9 +112,11 @@ func (s *DefScheduler) SelfDeliveringAndUpdateStatus(ctx *jxcontext.Context, ven
VendorOrgCode: order.VendorOrgCode,
}
err = dao.CreateEntity(dao.GetDB(), bill)
order.VendorWaybillID = order.VendorOrderID
order.WaybillVendorID = model.VendorJXFakeWL
dao.UpdateEntity(dao.GetDB(), order, "VendorWaybillID", "WaybillVendorID")
//if order.VendorID == model.VendorIDTaoVegetable {
// order.VendorWaybillID = order.VendorOrderID
// order.WaybillVendorID = model.VendorJXFakeWL
// dao.UpdateEntity(dao.GetDB(), order, "VendorWaybillID", "WaybillVendorID")
//}
}
return err
}()