Commit 392b4cbe by jianan

渠道发佣报表6-渠道名称不公用在经纪人字段

parent 9694235f
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
IF(o.payment_term IS NOT NULL ,CONCAT(o.payment_term,(CASE o.payment_term_unit WHEN 'Y' THEN '年' WHEN 'M' THEN '月' ELSE '日' END ) ),(SELECT e.element_text FROM ag_po_order_life_product_elements e WHERE o.id = e.order_id AND e.factor_code LIKE 'f_pay_term' LIMIT 1)) paymentTermUnit, IF(o.payment_term IS NOT NULL ,CONCAT(o.payment_term,(CASE o.payment_term_unit WHEN 'Y' THEN '年' WHEN 'M' THEN '月' ELSE '日' END ) ),(SELECT e.element_text FROM ag_po_order_life_product_elements e WHERE o.id = e.order_id AND e.factor_code LIKE 'f_pay_term' LIMIT 1)) paymentTermUnit,
IF(o.cover_term IS NOT NULL ,o.cover_term_type ,(SELECT e.element_text FROM ag_po_order_life_product_elements e WHERE o.id = e.order_id AND e.factor_code LIKE 'f_coverage_term' LIMIT 1)) coverTermType, IF(o.cover_term IS NOT NULL ,o.cover_term_type ,(SELECT e.element_text FROM ag_po_order_life_product_elements e WHERE o.id = e.order_id AND e.factor_code LIKE 'f_coverage_term' LIMIT 1)) coverTermType,
o.order_price orderPrice, o.order_price orderPrice,
IFNULL(pra.name,cha.name) practitionerName, pra.name practitionerName,
cha.name channelName, cha.name channelName,
dept.name insurerBranchDeptName, dept.name insurerBranchDeptName,
sub.name subordinateSystemName, sub.name subordinateSystemName,
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
'' paymentTermUnit, '' paymentTermUnit,
'' coverTermType, '' coverTermType,
'0.00' orderPrice, '0.00' orderPrice,
IFNULL(pra.name,cha.name) practitionerName, pra.name practitionerName,
cha.name channelName, cha.name channelName,
dept.name insurerBranchDeptName, dept.name insurerBranchDeptName,
sub.name subordinateSystemName, sub.name subordinateSystemName,
...@@ -284,7 +284,7 @@ ...@@ -284,7 +284,7 @@
pay.withdraw_id withdrawId, pay.withdraw_id withdrawId,
pb.payout_yearmonth payoutYearmonth, pb.payout_yearmonth payoutYearmonth,
cha.name channelName, cha.name channelName,
ifnull(pra.name,cha.name) practitionerName, pra.name practitionerName,
pay.withdraw_amount referralAmount, pay.withdraw_amount referralAmount,
pra.mobile_no mobileNo, pra.mobile_no mobileNo,
opt.drop_option_name practitionerLevel, opt.drop_option_name practitionerLevel,
......
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