diff --git a/business/jxstore/cms/order.go b/business/jxstore/cms/order.go index 6bfb0c530..032aed826 100644 --- a/business/jxstore/cms/order.go +++ b/business/jxstore/cms/order.go @@ -138,7 +138,7 @@ func Pay(ctx *jxcontext.Context, orderID string, payType int, vendorPayType, app if _, err := dao.SetOrderStatus(temp_PayPrice, temp_PayMethod, orderID); err != nil { return nil, err } - if _, err := dao.UpdateEntityTx(txDB, &order); err != nil { + if _, err := dao.UpdateEntityTx(txDB, order); err != nil { //dao.Rollback(db, txDB) return nil, err } diff --git a/business/model/dao/dao_order.go b/business/model/dao/dao_order.go index 57fcd87bd..234af6260 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -689,7 +689,7 @@ func SetUserVendorOrderStatus(db *DaoDB, localWayBillID string, status int) (msg //更新order 价格和状态 func SetOrderStatus(payPrice, payMethod int, orderID string) (string, error) { - if _, err := ExecuteSQL(GetDB(), `UPDATE [order] SET pay_price = ?,pay_method= ? WHERE order_id = ? `, []interface{}{payPrice, payMethod, orderID}...); err != nil { + if _, err := ExecuteSQL(GetDB(), "UPDATE `order` SET pay_price = ?,pay_method= ? WHERE order_id = ? ", []interface{}{payPrice, payMethod, orderID}...); err != nil { return "", err } return "更新Order状态成功", nil