|
@@ -1311,10 +1311,11 @@
|
|
|
<select id="getCarBusinessDetailList" resultType="com.ydtech.modules.order.entity.vo.CarBusinessDetailVo">
|
|
<select id="getCarBusinessDetailList" resultType="com.ydtech.modules.order.entity.vo.CarBusinessDetailVo">
|
|
|
SELECT
|
|
SELECT
|
|
|
io.username,
|
|
io.username,
|
|
|
- iac.signing_time as sign_time,
|
|
|
|
|
|
|
+ iac.signing_time as sign_date,
|
|
|
io.licenseno,
|
|
io.licenseno,
|
|
|
JSON_UNQUOTE(json_extract(io.applyinfo, '$.name')) as applyname,
|
|
JSON_UNQUOTE(json_extract(io.applyinfo, '$.name')) as applyname,
|
|
|
io.product,
|
|
io.product,
|
|
|
|
|
+ io.ins_company as inscompany,
|
|
|
iac.jqpremium,
|
|
iac.jqpremium,
|
|
|
iac.sypremium,
|
|
iac.sypremium,
|
|
|
iac.jypremium,
|
|
iac.jypremium,
|
|
@@ -1410,6 +1411,67 @@
|
|
|
<if test="param.audit != null and param.audit != ''">
|
|
<if test="param.audit != null and param.audit != ''">
|
|
|
AND
|
|
AND
|
|
|
ifa.auditstatus = #{param.audit}
|
|
ifa.auditstatus = #{param.audit}
|
|
|
|
|
+ AND
|
|
|
|
|
+ io.orderstatus = 3
|
|
|
|
|
+ AND
|
|
|
|
|
+ iac.orderstatus = 3
|
|
|
|
|
+ GROUP BY
|
|
|
|
|
+ io.orderno,
|
|
|
|
|
+ iac.api_type,
|
|
|
|
|
+ iac.cross_insurance,
|
|
|
|
|
+ iac.signing_time,
|
|
|
|
|
+ eic.namesimple,
|
|
|
|
|
+ iac.jqapplyno,
|
|
|
|
|
+ iac.syapplyno,
|
|
|
|
|
+ iac.jqpremium,
|
|
|
|
|
+ iac.sypremium,
|
|
|
|
|
+ iac.jypremium,
|
|
|
|
|
+ iac.taxamount,
|
|
|
|
|
+ ifo.jq_costs_export_proportion,
|
|
|
|
|
+ ifo.jq_export_other_costs_proportion,
|
|
|
|
|
+ ifo.sy_costs_export_proportion,
|
|
|
|
|
+ ifo.sy_export_other_costs_proportion,
|
|
|
|
|
+ ifo.no_costs_export_proportion,
|
|
|
|
|
+ ifo.no_export_other_costs_proportion,
|
|
|
|
|
+ ifo.jq_export_supervise_costs_premiums,
|
|
|
|
|
+ ifo.sy_export_supervise_costs_premiums,
|
|
|
|
|
+ ifo.no_export_supervise_costs_premiums,
|
|
|
|
|
+ ifo.jq_export_other_costs_premiums,
|
|
|
|
|
+ ifo.sy_export_other_costs_premiums,
|
|
|
|
|
+ ifo.no_export_other_costs_premiums,
|
|
|
|
|
+ ifo.jq_supervise_costs_proportion,
|
|
|
|
|
+ ifo.jq_other_costs_proportion,
|
|
|
|
|
+ ifo.sy_supervise_costs_proportion,
|
|
|
|
|
+ ifo.sy_other_costs_proportion,
|
|
|
|
|
+ ifo.no_supervise_costs_proportion,
|
|
|
|
|
+ ifo.no_other_costs_proportion,
|
|
|
|
|
+ ifo.jq_supervise_costs_premiums,
|
|
|
|
|
+ ifo.jq_other_costs_premiums,
|
|
|
|
|
+ ifo.sy_supervise_costs_premiums,
|
|
|
|
|
+ ifo.sy_other_costs_premiums,
|
|
|
|
|
+ ifo.no_supervise_costs_premiums,
|
|
|
|
|
+ ifo.no_other_costs_premiums,
|
|
|
|
|
+ ifo.jq_dept_premiums_level_1,
|
|
|
|
|
+ ifo.jq_dept_premiums_level_2,
|
|
|
|
|
+ ifo.jq_dept_premiums_level_3,
|
|
|
|
|
+ ifo.jq_dept_premiums_level_4,
|
|
|
|
|
+ ifo.jq_dept_premiums_level_5,
|
|
|
|
|
+ ifo.sy_dept_premiums_level_1,
|
|
|
|
|
+ ifo.sy_dept_premiums_level_2,
|
|
|
|
|
+ ifo.sy_dept_premiums_level_3,
|
|
|
|
|
+ ifo.sy_dept_premiums_level_4,
|
|
|
|
|
+ ifo.sy_dept_premiums_level_5,
|
|
|
|
|
+ ifo.no_dept_premiums_level_1,
|
|
|
|
|
+ ifo.no_dept_premiums_level_2,
|
|
|
|
|
+ ifo.no_dept_premiums_level_3,
|
|
|
|
|
+ ifo.no_dept_premiums_level_4,
|
|
|
|
|
+ ifo.no_dept_premiums_level_5,
|
|
|
|
|
+ ifo.first_detail_premiums,
|
|
|
|
|
+ ifo.second_detail_premiums,
|
|
|
|
|
+ ifo.third_detail_premiums,
|
|
|
|
|
+ ifo.jq_profit_margin_premiums,
|
|
|
|
|
+ ifo.sy_profit_margin_premiums,
|
|
|
|
|
+ ifo.no_profit_margin_premiums
|
|
|
</if>
|
|
</if>
|
|
|
|
|
|
|
|
</select>
|
|
</select>
|