This commit is contained in:
richboo111
2022-07-27 14:39:25 +08:00
parent 6339d6c305
commit ad87443232

View File

@@ -204,7 +204,8 @@ func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrd
globals.SugarLogger.Debug("param.order_no==================", param.OrderNo)
order, err := dao.GetUserVendorOrder(db, userId, param.OrderNo)
if err != nil {
return err
globals.SugarLogger.Debug("errrrrrr===========", err)
//return err
}
//order := &model.UserVendorOrder{UserId: userId, LocalWayBill: param.OrderNo}
//if err := dao.GetEntity(dao.GetDB(), order, "UserId", "LocalWayBill"); err != nil {
@@ -217,7 +218,7 @@ func CancelWayOrder(ctx *jxcontext.Context, userId string, param *bida.CancelOrd
}
// 待支付或者支付失败
globals.SugarLogger.Debug("order.order_status======================", order.OrderStatus)
globals.SugarLogger.Debugf("order.order_status====================== %d", order.OrderStatus)
switch order.OrderStatus {
case model.OrderStatusFailPay, model.OrderStatusWaitPay: // 待支付订单或者支付失败订单不需要退款取消本地订单以及order记录表
db := dao.GetDB()