push
CI / changes (push) Successful in 35s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 0s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 27s
CI / lonelog (push) Successful in 1s
CI / product (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 0s
CI / changes (push) Successful in 35s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 0s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 27s
CI / lonelog (push) Successful in 1s
CI / product (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 0s
This commit is contained in:
@@ -325,12 +325,12 @@ func (l *ExpressDeliveringLogic) cancel(client transit.Transit, w modelbase.Para
|
||||
info.OrderSn = utils.StringEmpty
|
||||
info.Status = status
|
||||
info.Express = utils.StringEmpty
|
||||
mobdelObj := model.DeliveryOrderModel{}.Init()
|
||||
mobdelObj.Begin()
|
||||
_, err := mobdelObj.Edit(w, &info)
|
||||
modelObj := model.DeliveryOrderModel{}.Init()
|
||||
modelObj.Begin()
|
||||
_, err := modelObj.Edit(w, &info)
|
||||
err = model.DeliveryHistoryModel{}.Init().Create(&history)
|
||||
if err != nil {
|
||||
mobdelObj.Rollback()
|
||||
modelObj.Rollback()
|
||||
l.Logger.Error("cancel up order err ", info.Id, err)
|
||||
return
|
||||
}
|
||||
@@ -341,19 +341,19 @@ func (l *ExpressDeliveringLogic) cancel(client transit.Transit, w modelbase.Para
|
||||
}
|
||||
_, err = model.DeliveryOrderExpModel{}.Init().Edit(ww, &editExp)
|
||||
if err != nil {
|
||||
mobdelObj.Rollback()
|
||||
modelObj.Rollback()
|
||||
l.Logger.Error("cancel up order err ", info.Id, err)
|
||||
return
|
||||
}
|
||||
if info.Type == dao.DeliveryTypeOrder {
|
||||
uSt := l.updateOrderDeliverStatus(info.ObjId, int32(status))
|
||||
if uSt != utils.Ok {
|
||||
mobdelObj.Rollback()
|
||||
modelObj.Rollback()
|
||||
l.Logger.Error("cancel update order status err ", info.ObjId, status)
|
||||
return
|
||||
}
|
||||
}
|
||||
mobdelObj.Commit()
|
||||
modelObj.Commit()
|
||||
}
|
||||
|
||||
func (l *ExpressDeliveringLogic) updateOrderDeliverStatus(id string, status int32) utils.Status {
|
||||
|
||||
Reference in New Issue
Block a user