- WaybillStatusFailed也会重新创建三方运单
- dadaapi.OrderStatusExpired映射为WaybillStatusCanceled(之前为WaybillStatusFailed) - 达达重新创建运单时,判断之前的运单状态,如果是WaybillStatusFailed,则为新增订单 - 去掉dao. WrapDB
This commit is contained in:
@@ -59,10 +59,6 @@ func GetDB() *DaoDB {
|
||||
return &DaoDB{Db: orm.NewOrm()}
|
||||
}
|
||||
|
||||
func WrapDB(ormDb orm.Ormer) *DaoDB {
|
||||
return &DaoDB{Db: ormDb}
|
||||
}
|
||||
|
||||
func Begin(db *DaoDB) (err error) {
|
||||
if db.transactionLevel == 0 {
|
||||
err = db.Db.Begin()
|
||||
|
||||
Reference in New Issue
Block a user