pay
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package dao
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/client/orm"
|
||||
"time"
|
||||
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
@@ -669,7 +670,8 @@ func GetUnionOrdersPage(db *DaoDB, vendorIDs, statuss []int, beginTime, endTime
|
||||
return page, err
|
||||
}
|
||||
|
||||
func SetUserVendorOrderStatus(localWayBillID string, status int) (msg string, err error) {
|
||||
//更新user_vendor_order 支付状态
|
||||
func SetUserVendorOrderStatus(tx orm.TxOrmer, localWayBillID string, status int) (msg string, err error) {
|
||||
if _, err := ExecuteSQL(GetDB(), "UPDATE `user_vendor_order` SET order_status = ? WHERE local_way_bill = ? ", []interface{}{status, localWayBillID}...); err != nil {
|
||||
return "", err
|
||||
}
|
||||
@@ -677,12 +679,10 @@ func SetUserVendorOrderStatus(localWayBillID string, status int) (msg string, er
|
||||
}
|
||||
|
||||
//更新order 价格和状态
|
||||
func SetOrderStatus(payPrice, payMethod, status int, orderID string) (string, error) {
|
||||
func SetOrderStatus(tx orm.TxOrmer, payPrice, payMethod, status int, orderID string) (string, error) {
|
||||
|
||||
if _, err := ExecuteSQL(GetDB(), "UPDATE `order` SET pay_price = ?,pay_method= ?,status=? WHERE order_id = ? ", []interface{}{payPrice, payMethod, status, orderID}...); err != nil {
|
||||
return "", err
|
||||
}
|
||||
return "更新Order状态成功", nil
|
||||
}
|
||||
|
||||
//更新user_vendor_order 支付状态
|
||||
|
||||
Reference in New Issue
Block a user