差评补款

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) {
var (
db = dao.GetDB()
id = ordersSupplement.ID
)
if id > 0 {
if ordersSupplement.Status == 1 {
return 0,fmt.Errorf("已结账的扣款信息不允许修改", a)
}
dao.UpdateEntity(db, ordersSupplement)
} else {
// var (
// db = dao.GetDB()
// id = ordersSupplement.ID
// )
// if id > 0 {
// if ordersSupplement.Status == 1 {
// return 0,fmt.Errorf("已结账的扣款信息不允许修改", a)
// }
// dao.UpdateEntity(db, ordersSupplement)
// } else {
}
// }
return num, err
}