Commit f439a9d0 by jianan

来佣比对里, ”已比对“查询条件查出已退保的保单

parent 52621cd2
......@@ -26,7 +26,7 @@
CONCAT(payment_term, (case payment_term_unit when 'Y' then '年' when 'M' then '月' else '日' END)) payTerm,
CONCAT(cover_term, cover_term_type) coverageTerm
from ag_po_order t
where t.status in (3,4) and policy_no is not null
where t.status = 3 and policy_no is not null
and (t.plan_id not in (424,453,464) or t.plan_id is null)
) o
left join ag_po_order_commission_check c on o.commission_check_id = c.id
......@@ -126,7 +126,7 @@
from (SELECT order_price, commission_amount, commission_check_status, commission_check_id, order_date,
insurer_id,id
from ag_po_order t
where t.status in (3,4) and policy_no is not null
where t.status = 3 and policy_no is not null
and (t.plan_id not in (424,453,464) or t.plan_id is null)
) o
left join ag_po_order_commission_check c on o.commission_check_id = c.id
......
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