Commit 357f5a46 by jianan

前端对接问题修复99

parent 2be3e53d
......@@ -66,10 +66,10 @@
SUM(CASE WHEN f.status = '0' THEN f.current_payment_hkd_amount ELSE 0 END) AS pendingOutAmount,
SUM(CASE WHEN f.status = '6' THEN f.current_payment_hkd_amount ELSE 0 END) AS availableOutAmount,
COUNT(DISTINCT f.policy_no) AS totalPolicyCount,
MAX(c.hkd_amount) AS totalInAmount,
MAX(c.premium) AS totalPremium
MAX(ce.hkd_amount) AS totalInAmount,
MAX(ce.premium) AS totalPremium
FROM fortune f
LEFT JOIN commission c ON f.commission_biz_id = c.commission_biz_id
LEFT JOIN commission_expected ce ON f.commission_expected_biz_id = ce.commission_expected_biz_id
WHERE 1 = 1
<if test="fortuneIdList != null and fortuneIdList.size() > 0">
AND f.id IN
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment