|
@@ -106,6 +106,7 @@
|
|
|
<resultMap id="InsOrdersOtherMap" type="com.jzg.commons.entity.orders.po.InsOrdersOther">
|
|
<resultMap id="InsOrdersOtherMap" type="com.jzg.commons.entity.orders.po.InsOrdersOther">
|
|
|
<id property="orderNo" column="order_no" jdbcType="VARCHAR"/>
|
|
<id property="orderNo" column="order_no" jdbcType="VARCHAR"/>
|
|
|
<result property="jqScope" column="jq_scope" jdbcType="VARCHAR"/>
|
|
<result property="jqScope" column="jq_scope" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result property="scope" column="scope" jdbcType="VARCHAR"/>
|
|
|
<result property="syScope" column="sy_scope" jdbcType="VARCHAR"/>
|
|
<result property="syScope" column="sy_scope" jdbcType="VARCHAR"/>
|
|
|
<result property="lossRation" column="loss_ration" jdbcType="VARCHAR"/>
|
|
<result property="lossRation" column="loss_ration" jdbcType="VARCHAR"/>
|
|
|
<result property="jqLossRation" column="jq_loss_ration" jdbcType="VARCHAR"/>
|
|
<result property="jqLossRation" column="jq_loss_ration" jdbcType="VARCHAR"/>
|
|
@@ -156,53 +157,82 @@
|
|
|
<resultMap id="InsOrdersVoMap" type="com.jzg.commons.entity.vo.InsOrdersVo">
|
|
<resultMap id="InsOrdersVoMap" type="com.jzg.commons.entity.vo.InsOrdersVo">
|
|
|
<result property="id" column="id" jdbcType="VARCHAR"/>
|
|
<result property="id" column="id" jdbcType="VARCHAR"/>
|
|
|
<result property="quoteNo" column="quote_no" jdbcType="VARCHAR"/>
|
|
<result property="quoteNo" column="quote_no" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result property="companyName" column="company_name" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result property="auditStatus" column="audit_status" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result property="auditComments" column="audit_comments" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result property="createBy" column="create_by" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result property="auditId" column="audit_id" jdbcType="VARCHAR"/>
|
|
|
|
|
+ <result property="auditName" column="audit_name" jdbcType="VARCHAR"/>
|
|
|
<association property="insOrders" column="{id=id}" select="selectOrdersById" />
|
|
<association property="insOrders" column="{id=id}" select="selectOrdersById" />
|
|
|
<association property="carInfoVo" column="{orderNo = quote_no}" select="selectOrdersCarInfoByOrderNo" />
|
|
<association property="carInfoVo" column="{orderNo = quote_no}" select="selectOrdersCarInfoByOrderNo" />
|
|
|
<association property="insOrdersOther" column="{orderNo = quote_no}" select="selectOrdersOtherByOrderNo" />
|
|
<association property="insOrdersOther" column="{orderNo = quote_no}" select="selectOrdersOtherByOrderNo" />
|
|
|
<association property="insuranceInfo" javaType="com.jzg.commons.entity.dto.InsuranceInfo" >
|
|
<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="insOrdersTax" column="{orderNo = quote_no}" select="selectOrdersTax" />
|
|
|
- <association property="insOrdersRisk" column="{orderNo = quote_no}" select="selectOrdersRisk" />
|
|
|
|
|
|
|
+ <collection property="insOrdersKindList" column="{orderNo = quote_no}" select="selectOrdersKind" />
|
|
|
|
|
+ <collection property="insOrdersRiskList" column="{orderNo = quote_no}" select="selectOrdersRisk" />
|
|
|
</association>
|
|
</association>
|
|
|
<collection property="carUserInfoList" column="{orderNo = quote_no}" select="selectCarUserInfo" />
|
|
<collection property="carUserInfoList" column="{orderNo = quote_no}" select="selectCarUserInfo" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectOrdersRisk" resultMap="InsOrdersRiskMap">
|
|
<select id="selectOrdersRisk" resultMap="InsOrdersRiskMap">
|
|
|
- select * from ins_orders_risk where order_no = #{orderNo}
|
|
|
|
|
|
|
+ select order_no,risk_name,amount,commission_rate,premium,risk_code,no_tax_premium,commission_amount,start_date,end_date from ins_orders_risk where order_no = #{orderNo}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectOrdersTax" resultMap="InsOrdersTaxMap">
|
|
<select id="selectOrdersTax" resultMap="InsOrdersTaxMap">
|
|
|
- select * from ins_orders_tax where order_no = #{orderNo}
|
|
|
|
|
|
|
+ select order_no,extend_char2,tax_relief,relif_reason,tax_com_code,tax_com_name,tax_document_date,tax_paid_area_code,paid_free_certificate,taxpayer_name,taxpayer_identifier,identify_number,tax_relif_flag from ins_orders_tax where order_no = #{orderNo}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectOrdersKind" resultMap="OrdersKindMap">
|
|
<select id="selectOrdersKind" resultMap="OrdersKindMap">
|
|
|
- select * from ins_orders_kind where order_no = #{orderNo}
|
|
|
|
|
|
|
+ select order_no,amount,kind_code,service_times,kind_name,unit_amount,deductible_rate from ins_orders_kind where order_no = #{orderNo}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
- <select id="pageList" resultMap="InsOrdersMap">
|
|
|
|
|
|
|
+ <select id="pageList" resultType="com.jzg.commons.entity.vo.OrdersListVo">
|
|
|
|
|
+ SELECT
|
|
|
|
|
+ o.quote_no,
|
|
|
|
|
+ o.audit_id,
|
|
|
|
|
+ o.audit_name,
|
|
|
|
|
+ o.company_name,
|
|
|
|
|
+ o.create_by,
|
|
|
|
|
+ o.create_time,
|
|
|
|
|
+ c.license_no,
|
|
|
|
|
+ s.jq_premium,
|
|
|
|
|
+ s.sy_premium,
|
|
|
|
|
+ s.jy_premium,
|
|
|
|
|
+ s.sum_premium,
|
|
|
|
|
+ s.tax_premium
|
|
|
|
|
+ FROM
|
|
|
|
|
+ ins_orders o
|
|
|
|
|
+ LEFT JOIN ins_orders_car_info c ON c.order_no = o.quote_no
|
|
|
|
|
+ LEFT JOIN ins_orders_costs s ON o.quote_no = s.order_no
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectOrdersById" resultMap="InsOrdersMap">
|
|
<select id="selectOrdersById" resultMap="InsOrdersMap">
|
|
|
- select * from ins_orders where id = #{id}
|
|
|
|
|
|
|
+ select id,quote_no,agreement_id,api_type,order_status,company_id,company_name,product_id,product_name,entry_status,order_source,audit_id,
|
|
|
|
|
+ audit_name,audit_time,audit_opinion,pay_time,pay_link,ins_order_no,signing_time,is_temporarily
|
|
|
|
|
+ from ins_orders where id = #{id}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectCarUserInfo" resultMap="carUserInfoMap">
|
|
<select id="selectCarUserInfo" resultMap="carUserInfoMap">
|
|
|
- select * from ins_orders_car_user_info where order_no = #{orderNo}
|
|
|
|
|
|
|
+ select order_no,policy_person_type,person_type,cer_type,`name`,identify_number,age,gender,province_code,city_code,county_code,addr,identify_valid_date,identify_valid_end_date,
|
|
|
|
|
+ mobile,landline,contact,contact_identify_number,contact_identify_valid_date,contact_identify_valid_end_date,email
|
|
|
|
|
+ from ins_orders_car_user_info where order_no = #{orderNo}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectOrdersCarInfoByOrderNo" resultMap="carInfoMap">
|
|
<select id="selectOrdersCarInfoByOrderNo" resultMap="carInfoMap">
|
|
|
- select * from ins_orders_car_info where order_no = #{orderNo}
|
|
|
|
|
|
|
+ select order_no,license_no,is_registered,vin_no,brand_name,engine_no,car_year,seat_count,complete_kerb_mass,limit_load,power_scale,purchase_price,car_nature_code,vehicle_use_code,car_type_code,car_kind_code,
|
|
|
|
|
+ energy_type_code,property_code,license_color_code,car_kind_detail_id_code,license_kind_code,register_date,issue_date,transfer_date,transfer
|
|
|
|
|
+ from ins_orders_car_info where order_no = #{orderNo}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectOrdersOtherByOrderNo" resultMap="InsOrdersOtherMap">
|
|
<select id="selectOrdersOtherByOrderNo" resultMap="InsOrdersOtherMap">
|
|
|
- select * from ins_orders_other where order_no = #{orderNo}
|
|
|
|
|
|
|
+ select order_no,scope,jq_scope,sy_scope,loss_ration,jq_loss_ration,sy_loss_ration,jq_renewal,sy_renewal,jq_claims,sy_claims,is_djq,jq_adjust_rate,sy_adjust_rate,tp_color_score from ins_orders_other where order_no = #{orderNo}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectById" resultMap="InsOrdersVoMap">
|
|
<select id="selectById" resultMap="InsOrdersVoMap">
|
|
|
- select id, quote_no from ins_orders where id = #{id}
|
|
|
|
|
|
|
+ select id, quote_no,company_name,audit_status,audit_comments,create_by,audit_id,audit_name from ins_orders where id = #{id}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|