|
@@ -551,14 +551,16 @@
|
|
|
fee.licenseno,
|
|
fee.licenseno,
|
|
|
fee.amount,
|
|
fee.amount,
|
|
|
"1" as businessSegmentsType,
|
|
"1" as businessSegmentsType,
|
|
|
- "2" as transactionType
|
|
|
|
|
|
|
+ "2" as transactionType,
|
|
|
|
|
+ fee.createtime
|
|
|
FROM
|
|
FROM
|
|
|
(
|
|
(
|
|
|
SELECT
|
|
SELECT
|
|
|
a.ins_order_no as "subOrderNo",
|
|
a.ins_order_no as "subOrderNo",
|
|
|
iac.signing_time as "signingTime",
|
|
iac.signing_time as "signingTime",
|
|
|
o.licenseno as "licenseno",
|
|
o.licenseno as "licenseno",
|
|
|
- a.first_detail_premiums as "amount"
|
|
|
|
|
|
|
+ a.first_detail_premiums as "amount",
|
|
|
|
|
+ iac.createtime as ".createTime"
|
|
|
FROM
|
|
FROM
|
|
|
ins_fee_order_new a
|
|
ins_fee_order_new a
|
|
|
LEFT JOIN ins_area_company iac ON iac.id = a.ins_order_no
|
|
LEFT JOIN ins_area_company iac ON iac.id = a.ins_order_no
|
|
@@ -579,7 +581,8 @@
|
|
|
a.ins_order_no as "subOrderNo",
|
|
a.ins_order_no as "subOrderNo",
|
|
|
iac.signing_time as "signingTime",
|
|
iac.signing_time as "signingTime",
|
|
|
o.licenseno as "licenseno",
|
|
o.licenseno as "licenseno",
|
|
|
- a.third_detail_premiums as "amount"
|
|
|
|
|
|
|
+ a.third_detail_premiums as "amount",
|
|
|
|
|
+ iac.createtime as ".createTime"
|
|
|
FROM
|
|
FROM
|
|
|
ins_fee_order_new a
|
|
ins_fee_order_new a
|
|
|
LEFT JOIN ins_area_company iac ON iac.id = a.ins_order_no
|
|
LEFT JOIN ins_area_company iac ON iac.id = a.ins_order_no
|
|
@@ -600,7 +603,8 @@
|
|
|
a.ins_order_no as "subOrderNo",
|
|
a.ins_order_no as "subOrderNo",
|
|
|
iac.signing_time as "signingTime",
|
|
iac.signing_time as "signingTime",
|
|
|
o.licenseno as "licenseno",
|
|
o.licenseno as "licenseno",
|
|
|
- a.second_detail_premiums as "amount"
|
|
|
|
|
|
|
+ a.second_detail_premiums as "amount",
|
|
|
|
|
+ iac.createtime as ".createTime"
|
|
|
FROM
|
|
FROM
|
|
|
ins_fee_order_new a
|
|
ins_fee_order_new a
|
|
|
LEFT JOIN ins_area_company iac ON iac.id = a.ins_order_no
|
|
LEFT JOIN ins_area_company iac ON iac.id = a.ins_order_no
|
|
@@ -629,7 +633,8 @@
|
|
|
(ifnull(a.jq_export_other_costs_premiums,0)+ifnull(a.sy_export_other_costs_premiums,0)+ifnull(a.no_export_other_costs_premiums,0))
|
|
(ifnull(a.jq_export_other_costs_premiums,0)+ifnull(a.sy_export_other_costs_premiums,0)+ifnull(a.no_export_other_costs_premiums,0))
|
|
|
as "amount",
|
|
as "amount",
|
|
|
"1" as businessSegmentsType,
|
|
"1" as businessSegmentsType,
|
|
|
- "1" as transactionType
|
|
|
|
|
|
|
+ "1" as transactionType,
|
|
|
|
|
+ ins.createtime as ".createTime"
|
|
|
from
|
|
from
|
|
|
ins_fee_order_new a left join ins_area_company ins on a.ins_order_no=ins.id
|
|
ins_fee_order_new a left join ins_area_company ins on a.ins_order_no=ins.id
|
|
|
left join ins_orders o ON o.orderno=ins.orderno
|
|
left join ins_orders o ON o.orderno=ins.orderno
|