This commit is contained in:
richboo111
2022-08-03 10:01:08 +08:00
parent 0d27fb7bd5
commit bc6ec1e498
3 changed files with 16 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
package cms
import (
"git.rosy.net.cn/jx-callback/business/model/dao"
"testing"
)
func Test_Set(t *testing.T) {
if _, err := dao.SetOrderStatus(110, 5, "165943225529BCVFdaX"); err != nil {
return
}
return
}

View File

@@ -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