This commit is contained in:
richboo111
2022-08-02 18:18:24 +08:00
parent 59085a5b13
commit adbc9d83b2

View File

@@ -688,7 +688,7 @@ 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 {
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