|
|
@@ -0,0 +1,209 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<!DOCTYPE mapper
|
|
|
+ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
+ "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
+<mapper namespace="com.jzg.quotation.summary.mapper.InsOrdersMapper">
|
|
|
+ <resultMap id="InsOrdersMap" type="com.jzg.commons.entity.orders.po.InsOrders">
|
|
|
+ <id property="id" column="id" jdbcType="VARCHAR"/>
|
|
|
+ <result property="quoteNo" column="quote_no" jdbcType="VARCHAR"/>
|
|
|
+ <result property="agreementId" column="agreement_id" jdbcType="VARCHAR"/>
|
|
|
+ <result property="apiType" column="api_type" jdbcType="VARCHAR"/>
|
|
|
+ <result property="orderStatus" column="order_status" jdbcType="VARCHAR"/>
|
|
|
+ <result property="companyId" column="company_id" jdbcType="VARCHAR"/>
|
|
|
+ <result property="companyName" column="company_name" jdbcType="VARCHAR"/>
|
|
|
+ <result property="productId" column="product_id" jdbcType="VARCHAR"/>
|
|
|
+ <result property="productName" column="product_name" jdbcType="VARCHAR"/>
|
|
|
+ <result property="entryStatus" column="entry_status" jdbcType="VARCHAR"/>
|
|
|
+ <result property="orderSource" column="order_source" jdbcType="VARCHAR"/>
|
|
|
+ <result property="auditId" column="audit_id" jdbcType="VARCHAR"/>
|
|
|
+ <result property="auditName" column="audit_name" jdbcType="VARCHAR"/>
|
|
|
+ <result property="auditTime" column="audit_time" jdbcType="VARCHAR"/>
|
|
|
+ <result property="auditOpinion" column="audit_opinion" jdbcType="VARCHAR"/>
|
|
|
+ <result property="payTime" column="pay_time" jdbcType="VARCHAR"/>
|
|
|
+ <result property="payLink" column="pay_link" jdbcType="VARCHAR"/>
|
|
|
+ <result property="insOrderNo" column="ins_order_no" jdbcType="VARCHAR"/>
|
|
|
+ <result property="signingTime" column="signing_time" jdbcType="VARCHAR"/>
|
|
|
+ <result property="isTemporarily" column="is_temporarily" jdbcType="VARCHAR"/>
|
|
|
+ </resultMap>
|
|
|
+ <!-- 订单 车辆信息-->
|
|
|
+ <resultMap id="carInfoMap" type="com.jzg.commons.entity.orders.po.InsOrdersCarInfo">
|
|
|
+ <id property="orderNo" column="order_no" jdbcType="VARCHAR"/>
|
|
|
+ <result property="licenseNo" column="license_no" jdbcType="VARCHAR"/>
|
|
|
+ <result property="isRegistered" column="is_registered" jdbcType="VARCHAR"/>
|
|
|
+ <result property="vinNo" column="vin_no" jdbcType="VARCHAR"/>
|
|
|
+ <result property="brandName" column="brand_name" jdbcType="VARCHAR"/>
|
|
|
+ <result property="engineNo" column="engine_no" jdbcType="VARCHAR"/>
|
|
|
+ <result property="carYear" column="car_year" jdbcType="VARCHAR"/>
|
|
|
+ <result property="seatCount" column="seat_count" jdbcType="VARCHAR"/>
|
|
|
+ <result property="completeKerbMass" column="complete_kerb_mass" jdbcType="VARCHAR"/>
|
|
|
+ <result property="limitLoad" column="limit_load" jdbcType="VARCHAR"/>
|
|
|
+ <result property="powerScale" column="power_scale" jdbcType="VARCHAR"/>
|
|
|
+ <result property="purchasePrice" column="purchase_price" jdbcType="VARCHAR"/>
|
|
|
+ <result property="carNatureCode" column="car_nature_code" jdbcType="VARCHAR"/>
|
|
|
+ <result property="vehicleUseCode" column="vehicle_use_code" jdbcType="VARCHAR"/>
|
|
|
+ <result property="carTypeCode" column="car_type_code" jdbcType="VARCHAR"/>
|
|
|
+ <result property="carKindCode" column="car_kind_code" jdbcType="VARCHAR"/>
|
|
|
+ <result property="energyTypeCode" column="energy_type_code" jdbcType="VARCHAR"/>
|
|
|
+ <result property="propertyCode" column="property_code" jdbcType="VARCHAR"/>
|
|
|
+ <result property="licenseColorCode" column="license_color_code" jdbcType="VARCHAR"/>
|
|
|
+ <result property="carKindDetailIdCode" column="car_kind_detail_id_code" jdbcType="VARCHAR"/>
|
|
|
+ <result property="licenseKindCode" column="license_kind_code" jdbcType="VARCHAR"/>
|
|
|
+ <result property="registerDate" column="register_date" jdbcType="VARCHAR"/>
|
|
|
+ <result property="issueDate" column="issue_date" jdbcType="VARCHAR"/>
|
|
|
+ <result property="transferDate" column="transfer_date" jdbcType="VARCHAR"/>
|
|
|
+ <result property="transfer" column="transfer" jdbcType="VARCHAR"/>
|
|
|
+ </resultMap>
|
|
|
+ <!-- 订单 车辆人员信息 -->
|
|
|
+ <resultMap id="carUserInfoMap" type="com.jzg.commons.entity.orders.po.InsOrdersCarUserInfo">
|
|
|
+ <id property="orderNo" column="order_no" jdbcType="VARCHAR"/>
|
|
|
+ <result property="policyPersonType" column="policy_person_type" jdbcType="VARCHAR"/>
|
|
|
+ <result property="personType" column="person_type" jdbcType="VARCHAR"/>
|
|
|
+ <result property="cerType" column="cer_type" jdbcType="VARCHAR"/>
|
|
|
+ <result property="name" column="name" jdbcType="VARCHAR"/>
|
|
|
+ <result property="identifyNumber" column="identify_number" jdbcType="VARCHAR"/>
|
|
|
+ <result property="age" column="age" jdbcType="VARCHAR"/>
|
|
|
+ <result property="gender" column="gender" jdbcType="VARCHAR"/>
|
|
|
+ <result property="provinceCode" column="province_code" jdbcType="VARCHAR"/>
|
|
|
+ <result property="cityCode" column="city_code" jdbcType="VARCHAR"/>
|
|
|
+ <result property="countyCode" column="county_code" jdbcType="VARCHAR"/>
|
|
|
+ <result property="addr" column="addr" jdbcType="VARCHAR"/>
|
|
|
+ <result property="identifyValidDate" column="identify_valid_date" jdbcType="VARCHAR"/>
|
|
|
+ <result property="identifyValidEndDate" column="identify_valid_end_date" jdbcType="VARCHAR"/>
|
|
|
+ <result property="mobile" column="mobile" jdbcType="VARCHAR"/>
|
|
|
+ <result property="landline" column="landline" jdbcType="VARCHAR"/>
|
|
|
+ <result property="email" column="email" jdbcType="VARCHAR"/>
|
|
|
+ <result property="contact" column="contact" jdbcType="VARCHAR"/>
|
|
|
+ <result property="contactIdentifyNumber" column="contact_identify_number" jdbcType="VARCHAR"/>
|
|
|
+ <result property="contactIdentifyValidDate" column="contact_identify_valid_date" jdbcType="VARCHAR"/>
|
|
|
+ <result property="contactIdentifyValidEndDate" column="contact_identify_valid_end_date" jdbcType="VARCHAR"/>
|
|
|
+ <result property="email" column="email" jdbcType="VARCHAR"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <!-- 费用 -->
|
|
|
+ <resultMap id="ordersCostsMap" type="com.jzg.commons.entity.orders.po.InsOrdersCosts">
|
|
|
+ <id property="orderNo" column="order_no" jdbcType="VARCHAR"/>
|
|
|
+ <result property="jqPremium" column="jq_premium" jdbcType="VARCHAR"/>
|
|
|
+ <result property="syPremium" column="sy_premium" jdbcType="VARCHAR"/>
|
|
|
+ <result property="jyPremium" column="jy_premium" jdbcType="VARCHAR"/>
|
|
|
+ <result property="sumPremium" column="sum_premium" jdbcType="VARCHAR"/>
|
|
|
+ <result property="taxPremium" column="tax_premium" jdbcType="VARCHAR"/>
|
|
|
+ <result property="jqRatio" column="jq_ratio" jdbcType="VARCHAR"/>
|
|
|
+ <result property="syRatio" column="sy_ratio" jdbcType="VARCHAR"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <!--订单 险种表-->
|
|
|
+ <resultMap id="OrdersKindMap" type="com.jzg.commons.entity.orders.po.InsOrdersKind">
|
|
|
+ <id property="orderNo" column="order_no" jdbcType="VARCHAR"/>
|
|
|
+ <result property="amount" column="amount" jdbcType="VARCHAR"/>
|
|
|
+ <result property="kindCode" column="kind_code" />
|
|
|
+ <result property="kindName" column="kind_name" />
|
|
|
+ <result property="serviceTimes" column="service_times" />
|
|
|
+ <result property="unitAmount" column="unit_amount" />
|
|
|
+ <result property="deductibleRate" column="deductible_rate" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <!-- 订单 其他属性 -->
|
|
|
+ <resultMap id="InsOrdersOtherMap" type="com.jzg.commons.entity.orders.po.InsOrdersOther">
|
|
|
+ <id property="orderNo" column="order_no" jdbcType="VARCHAR"/>
|
|
|
+ <result property="jqScope" column="jq_scope" jdbcType="VARCHAR"/>
|
|
|
+ <result property="syScope" column="sy_scope" jdbcType="VARCHAR"/>
|
|
|
+ <result property="lossRation" column="loss_ration" jdbcType="VARCHAR"/>
|
|
|
+ <result property="jqLossRation" column="jq_loss_ration" jdbcType="VARCHAR"/>
|
|
|
+ <result property="syLossRation" column="sy_loss_ration" jdbcType="VARCHAR"/>
|
|
|
+ <result property="jqRenewal" column="jq_renewal" jdbcType="VARCHAR"/>
|
|
|
+ <result property="syRenewal" column="sy_renewal" jdbcType="VARCHAR"/>
|
|
|
+ <result property="jqClaims" column="jq_claims" jdbcType="VARCHAR"/>
|
|
|
+ <result property="syClaims" column="sy_claims" jdbcType="VARCHAR"/>
|
|
|
+ <result property="isDjq" column="is_djq" jdbcType="VARCHAR"/>
|
|
|
+ <result property="jqAdjustRate" column="jq_adjust_rate" jdbcType="VARCHAR"/>
|
|
|
+ <result property="syAdjustRate" column="sy_adjust_rate" jdbcType="VARCHAR"/>
|
|
|
+ <result property="tpColorScore" column="tp_color_score" jdbcType="VARCHAR"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <!--订单 险种-->
|
|
|
+ <resultMap id="InsOrdersRiskMap" type="com.jzg.commons.entity.orders.po.InsOrdersRisk">
|
|
|
+ <id property="orderNo" column="order_no" jdbcType="VARCHAR"/>
|
|
|
+ <result property="riskName" column="risk_name" jdbcType="VARCHAR"/>
|
|
|
+ <result property="amount" column="amount" jdbcType="VARCHAR"/>
|
|
|
+ <result property="commissionRate" column="commission_rate" jdbcType="VARCHAR"/>
|
|
|
+ <result property="premium" column="premium" jdbcType="VARCHAR"/>
|
|
|
+ <result property="commissionAmount" column="commission_amount" jdbcType="VARCHAR"/>
|
|
|
+ <result property="riskCode" column="risk_code" jdbcType="VARCHAR"/>
|
|
|
+ <result property="noTaxPremium" column="no_tax_premium" jdbcType="VARCHAR"/>
|
|
|
+ <result property="startDate" column="start_date" jdbcType="VARCHAR"/>
|
|
|
+ <result property="endDate" column="end_date" jdbcType="VARCHAR"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+
|
|
|
+ <!--订单 车船税-->
|
|
|
+ <resultMap id="InsOrdersTaxMap" type="com.jzg.commons.entity.orders.po.InsOrdersTax">
|
|
|
+ <id property="orderNo" column="order_no" jdbcType="VARCHAR"/>
|
|
|
+ <result property="extendChar2" column="extend_char2" jdbcType="VARCHAR"/>
|
|
|
+ <result property="taxRelief" column="tax_relief" jdbcType="VARCHAR"/>
|
|
|
+ <result property="relifReason" column="relif_reason" jdbcType="VARCHAR"/>
|
|
|
+ <result property="taxComCode" column="tax_com_code" jdbcType="VARCHAR"/>
|
|
|
+ <result property="taxComName" column="tax_com_name" jdbcType="VARCHAR"/>
|
|
|
+ <result property="taxDocumentDate" column="tax_document_date" jdbcType="VARCHAR"/>
|
|
|
+ <result property="taxPaidAreaCode" column="tax_paid_area_code" jdbcType="VARCHAR"/>
|
|
|
+ <result property="paidFreeCertificate" column="paid_free_certificate" jdbcType="VARCHAR"/>
|
|
|
+ <result property="taxpayerName" column="taxpayer_name" jdbcType="VARCHAR"/>
|
|
|
+ <result property="taxpayerIdentifier" column="taxpayer_identifier" jdbcType="VARCHAR"/>
|
|
|
+ <result property="identifyNumber" column="identify_number" jdbcType="VARCHAR"/>
|
|
|
+ <result property="taxRelifFlag" column="tax_relif_flag" jdbcType="VARCHAR"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+
|
|
|
+ <resultMap id="InsOrdersVoMap" type="com.jzg.commons.entity.vo.InsOrdersVo">
|
|
|
+ <result property="id" column="id" jdbcType="VARCHAR"/>
|
|
|
+ <result property="quoteNo" column="quote_no" jdbcType="VARCHAR"/>
|
|
|
+ <association property="insOrders" column="{id=id}" select="selectOrdersById" />
|
|
|
+ <association property="carInfoVo" column="{orderNo = quote_no}" select="selectOrdersCarInfoByOrderNo" />
|
|
|
+ <association property="insOrdersOther" column="{orderNo = quote_no}" select="selectOrdersOtherByOrderNo" />
|
|
|
+ <association property="insuranceInfo" javaType="com.jzg.commons.entity.dto.InsuranceInfo" >
|
|
|
+ <association property="insOrdersKind" column="{orderNo = quote_no}" select="selectOrdersKind" />
|
|
|
+ <association property="insOrdersTax" column="{orderNo = quote_no}" select="selectOrdersTax" />
|
|
|
+ <association property="insOrdersRisk" column="{orderNo = quote_no}" select="selectOrdersRisk" />
|
|
|
+ </association>
|
|
|
+ <collection property="carUserInfoList" column="{orderNo = quote_no}" select="selectCarUserInfo" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="selectOrdersRisk" resultMap="InsOrdersRiskMap">
|
|
|
+ select * from ins_orders_risk where order_no = #{orderNo}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectOrdersTax" resultMap="InsOrdersTaxMap">
|
|
|
+ select * from ins_orders_tax where order_no = #{orderNo}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectOrdersKind" resultMap="OrdersKindMap">
|
|
|
+ select * from ins_orders_kind where order_no = #{orderNo}
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="pageList" resultMap="InsOrdersMap">
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectOrdersById" resultMap="InsOrdersMap">
|
|
|
+ select * from ins_orders where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectCarUserInfo" resultMap="carUserInfoMap">
|
|
|
+ select * from ins_orders_car_user_info where order_no = #{orderNo}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectOrdersCarInfoByOrderNo" resultMap="carInfoMap">
|
|
|
+ select * from ins_orders_car_info where order_no = #{orderNo}
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="selectOrdersOtherByOrderNo" resultMap="InsOrdersOtherMap">
|
|
|
+ select * from ins_orders_other where order_no = #{orderNo}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectById" resultMap="InsOrdersVoMap">
|
|
|
+ select id, quote_no from ins_orders where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+</mapper>
|