Commit 46aeb184 by jianan

来佣比对列表分公司查询出多条

parent 3409816e
...@@ -24,9 +24,6 @@ ...@@ -24,9 +24,6 @@
o.commission_type commissionType, o.commission_type commissionType,
o.commission_item commissionItem, o.commission_item commissionItem,
b.id insurerBranchId,
b.branch_name insurerBranchName,
(case when o.cover_term in ('1','2','3') then o.coverageTerm else e.coverageTerm END) coverageTerm, (case when o.cover_term in ('1','2','3') then o.coverageTerm else e.coverageTerm END) coverageTerm,
IFNULL(o.payTerm,e.payTerm) payTerm, IFNULL(o.payTerm,e.payTerm) payTerm,
f.name, f.name,
...@@ -85,7 +82,7 @@ ...@@ -85,7 +82,7 @@
) p3 ) p3
on o.config_level = p3.config_level and o.plan_id = p3.plan_id on o.config_level = p3.config_level and o.plan_id = p3.plan_id
left join ag_acl_insurer i on o.insurer_id = i.id left join ag_acl_insurer i on o.insurer_id = i.id
left join ag_acl_insurer_branch b on o.insurer_id = b.insurer_id left join ag_acl_insurer_branch b on p.insurer_branch_id = b.id
left join (SELECT order_id, name, practitioner_type_id, f.customer_id left join (SELECT order_id, name, practitioner_type_id, f.customer_id
from ( from (
select * select *
......
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