Commit 59620efe by jianan

新单跟进90

parent 250ca9c6
......@@ -62,8 +62,8 @@
COUNT(DISTINCT c.policy_no) as totalPolicyCount
FROM commission c
LEFT JOIN (
SELECT policy_no, SUM(amount) as amount
FROM commission_expected
SELECT policy_no, SUM(expected_amount) as amount
FROM commission
GROUP BY policy_no
) e ON c.policy_no = e.policy_no
<where>
......
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