This commit is contained in:
richboo111
2022-08-03 17:00:54 +08:00
parent d7c472372e
commit 8cd0816719
3 changed files with 31 additions and 20 deletions

View File

@@ -687,10 +687,12 @@ func SetUserVendorOrderStatus(db *DaoDB, localWayBillID string, status int) (msg
}
//更新order 价格和状态
func SetOrderStatus(payPrice, payMethod int, orderID string) (string, error) {
func SetOrderStatus(payPrice, payMethod, status 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= ?,status=? WHERE order_id = ? ", []interface{}{payPrice, payMethod, status, orderID}...); err != nil {
return "", err
}
return "更新Order状态成功", nil
}
//更新order 支付状态和