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