差评补款
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user