|
@@ -29,7 +29,7 @@ func GetReturnOnlineHandler(r *ghttp.Request) {
|
|
money = gconv.Int(param.Money)
|
|
money = gconv.Int(param.Money)
|
|
payWay = param.PayWay
|
|
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 {
|
|
if err != nil {
|
|
return nil, gerror.Wrapf(err, "查询订单数据异常%s", orderCode)
|
|
return nil, gerror.Wrapf(err, "查询订单数据异常%s", orderCode)
|
|
}
|
|
}
|