物料主订单取消报错子订单不变
This commit is contained in:
@@ -923,8 +923,11 @@ func CancelOrder(ctx *jxcontext.Context, order *model.GoodsOrder, reason string)
|
|||||||
errList.AddErr(err)
|
errList.AddErr(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MarkArrears(db, order, orderPay)
|
if err == nil{
|
||||||
err = CancelMatterOrder(db, order, reason)
|
MarkArrears(db, order, orderPay)
|
||||||
|
err2 := CancelMatterOrder(db, order, reason)
|
||||||
|
errList.AddErr(err2)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
orderPay.Status = model.PayStatusCanceled
|
orderPay.Status = model.PayStatusCanceled
|
||||||
_, err2 := dao.UpdateEntity(db, orderPay)
|
_, err2 := dao.UpdateEntity(db, orderPay)
|
||||||
|
|||||||
Reference in New Issue
Block a user