This commit is contained in:
richboo111
2022-08-03 09:03:26 +08:00
parent c705214b94
commit 396d123b4f
2 changed files with 3 additions and 3 deletions

View File

@@ -687,8 +687,8 @@ func SetUserVendorOrderStatus(db *DaoDB, localWayBillID string, status int) (msg
}
//更新order 价格和状态
func SetOrderStatus(db *DaoDB, 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 {
func SetOrderStatus(payPrice, payMethod int, orderID string) (string, error) {
if _, err := ExecuteSQL(GetDB(), `UPDATE %s SET pay_price = ?,pay_method= ? WHERE order_id = ? `, []interface{}{"order", payPrice, payMethod, orderID}...); err != nil {
return "", err
}
return "更新Order状态成功", nil