ph.regional_companies_name AS regionalCompaniesName,
ph.regional_companies_code AS regionalCompaniesCode,
wr.paymentAmount,
wr.payment_time AS paymentTime,
wrall.paymentAmount allPaymentAmount
wr.payment_time AS paymentTime
FROM
(
SELECT
...
...
@@ -129,7 +128,6 @@
) ph
LEFT JOIN hygf_icbc_record icbc ON ph.amos_user_id = icbc.amos_user_id
LEFT JOIN ( SELECT amos_user_id, MAX ( payment_time ) payment_time, SUM ( payment_amount ) paymentAmount FROM hygf_icbc_withhold_record WHERE withhold_status = '成功' GROUP BY amos_user_id ) wr ON wr.amos_user_id = icbc.amos_user_id
LEFT JOIN ( SELECT amos_user_id, SUM ( payment_amount ) paymentAmount FROM hygf_icbc_withhold_record GROUP BY amos_user_id ) wrall ON wrall.amos_user_id = icbc.amos_user_id
<where>
ph.is_delete = 0
<iftest="param.custName != null and param.custName != ''">
...
...
@@ -159,9 +157,7 @@
</if>
</where>
<iftest="param.offset != null and param.limit != null">