diff --git a/business/model/dao/dao_order.go b/business/model/dao/dao_order.go index 1e0b3dbf9..9a54fed98 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -127,7 +127,7 @@ type GetOrdersResult struct { var TableOrder = "order" func GetOrderByID(db *DaoDB, orderID string) (orderInfos *model.Order, err error) { - sql := `SELECT * FROM user_vendor_order WHERE deleted_at = ? ` + sql := `SELECT * FROM order WHERE deleted_at = ? ` sqlParams := []interface{}{ utils.DefaultTimeValue, } diff --git a/business/q_bida/q_bida_server.go b/business/q_bida/q_bida_server.go index a05b5468b..6b6c531a9 100644 --- a/business/q_bida/q_bida_server.go +++ b/business/q_bida/q_bida_server.go @@ -255,16 +255,16 @@ func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrd // 暂时考虑余额支付渠道,加载order表判断支付渠道方式 orderWay, err := dao.GetOrderByID(db, tmp_orderNo) order1 := *orderWay + globals.SugarLogger.Debug("============", &order1.PayPrice) + globals.SugarLogger.Debug("========= dfedfwfwdsw", &order1.PayMethod) if err != nil { - globals.SugarLogger.Debug("============", order1.PayPrice) - globals.SugarLogger.Debug("========= dfedfwfwdsw", order1.PayMethod) + return err } //orderWay := &model.Order{OrderID: param.OrderNo, UserID: userId} //if err := dao.GetEntity(dao.GetDB(), orderWay, "OrderID", "UserID"); err != nil { // return err //} - if order1.PayMethod == 1 { // 余额支付 // 支付方式为余额支付,则需要修改order/userVendorOrder,修改订单状态,给用户账户价钱,生成一个价钱数据 } else if order1.PayMethod == 2 { // 微信支付