Commit 3db5a4f0 by yao.xiao

修改-战队业绩fyc统计错误

parent d4eb1fe9
...@@ -285,7 +285,7 @@ ...@@ -285,7 +285,7 @@
s.practitioner_level practitionerLevelId s.practitioner_level practitionerLevelId
FROM FROM
((ag_acl_practitioner_setting s LEFT JOIN ag_acl_practitioner p ON s.practitioner_id = p.id) ((ag_acl_practitioner_setting s LEFT JOIN ag_acl_practitioner p ON s.practitioner_id = p.id)
INNER JOIN (select t.* from ag_acl_customer_fortune t group by t.order_id ) f ON f.customer_id = p.customer_id and f.drop_option_code = "S01") INNER JOIN (select t.* from ag_acl_customer_fortune t where t.drop_option_code = "S01" group by t.order_id ) f ON f.customer_id = p.customer_id)
INNER JOIN ag_po_order o ON f.order_id = o.id INNER JOIN ag_po_order o ON f.order_id = o.id
WHERE WHERE
o.status = 3 and o.order_price > 0 o.status = 3 and o.order_price > 0
......
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