wkyuer 2 kuukautta sitten
vanhempi
commit
caaa9935da
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      internal/controller/returnOnlineHandler.go

+ 1 - 1
internal/controller/returnOnlineHandler.go

@@ -29,7 +29,7 @@ func GetReturnOnlineHandler(r *ghttp.Request) {
 			money     = gconv.Int(param.Money)
 			payWay    = param.PayWay
 		)
-		orderRes, err := g.DB().GetOne(r.Context(), "SELECT buy_subject,user_phone,company_name,product_type,pay_money+(select IFNULL(sum(payMoney),0) as return_money from moneyCorrection where orderCode=?) as pay_money,commission+(select IFNULL(sum(commission),0) as commission from moneyCorrection where orderCode=?) as pay_money FROM dataexport_order WHERE order_code=?", orderCode, orderCode, orderCode)
+		orderRes, err := g.DB().GetOne(r.Context(), "SELECT buy_subject,user_phone,company_name,product_type,pay_money+(select IFNULL(sum(payMoney),0) as return_money from moneyCorrection where orderCode=?) as pay_money,commission+(select IFNULL(sum(commission),0) as commission from moneyCorrection where orderCode=?) as commission FROM dataexport_order WHERE order_code=?", orderCode, orderCode, orderCode)
 		if err != nil {
 			return nil, gerror.Wrapf(err, "查询订单数据异常%s", orderCode)
 		}