差评补款

This commit is contained in:
苏尹岚
2019-12-26 18:49:28 +08:00
parent cfb1a2e052
commit 78238c806e

View File

@@ -768,17 +768,17 @@ func GetOrdersSupplement(ctx *jxcontext.Context, storIDs, vendorIDs []int, vendo
} }
func AddUpdateOrdersSupplement(ctx *jxcontext.Context, ordersSupplement *model.OrderSupplementFee) (num int, err error) { func AddUpdateOrdersSupplement(ctx *jxcontext.Context, ordersSupplement *model.OrderSupplementFee) (num int, err error) {
var ( // var (
db = dao.GetDB() // db = dao.GetDB()
id = ordersSupplement.ID // id = ordersSupplement.ID
) // )
if id > 0 { // if id > 0 {
if ordersSupplement.Status == 1 { // if ordersSupplement.Status == 1 {
return 0,fmt.Errorf("已结账的扣款信息不允许修改", a) // return 0,fmt.Errorf("已结账的扣款信息不允许修改", a)
} // }
dao.UpdateEntity(db, ordersSupplement) // dao.UpdateEntity(db, ordersSupplement)
} else { // } else {
} // }
return num, err return num, err
} }