Browse Source

更新

guide_order
huangjiajun 2 weeks ago
parent
commit
04d6471406
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/db/dbs_order.go

+ 1
- 1
app/db/dbs_order.go View File

@@ -49,7 +49,7 @@ func DbsOrderFindById(eg *xorm.Engine, pvd string, ids string) (*model.OrdList,
} }


func DbsOrderUpdate(eg *xorm.Engine, id int64, ord *model.OrdList) error { func DbsOrderUpdate(eg *xorm.Engine, id int64, ord *model.OrdList) error {
if _, err := eg.Where("`ord_id` = ?", id).Cols("wait_settle_at,parent_ord_id,reason,order_compare,state,paid_price,confirm_at,check_success_at,update_at,pvd_settle_at").Update(ord); err != nil {
if _, err := eg.Where("`ord_id` = ?", id).Cols("old_state,wait_settle_at,parent_ord_id,reason,order_compare,state,paid_price,confirm_at,check_success_at,update_at,pvd_settle_at").Update(ord); err != nil {
return logx.Warn(err) return logx.Warn(err)
} }
return nil return nil


Loading…
Cancel
Save