FacSoaInfoMapper.xml 3.13 KB
<?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="cn.com.polysoft.template.dao.FacSoaInfoMapper" >

    <insert id="saveFacSoaInfo" keyProperty="recordId" useGeneratedKeys="true" parameterType="cn.com.polysoft.template.entity.FacSoaInfoEntity">
        insert into fac_soa_info(
        record_id,
        out_ref_no,
        fac_type,
        reinsurer,
        reinsurance_broker,
        insured,
        insurance_period_start,
        insurance_period_end,
        xr_ri_period_start,
        xr_ri_period_end,
        account_no,
        uw_year,
        type,
        policy_no,
        endor_no,
        claim_no,
        policy_currency,
        sum_insured,
        premium,
        total_premium,
        your_share,
        exchange_rate_cny,
        premium_cny,
        vat_cny,
        remarks,
        date_of_loss,
        nature_of_loss,
        original_tsi,
        total_paim_amount,
        picc_share_of_co_ins,
        total_outstanding_amount,
        ri_premium,
        ri_commission,
        tax,
        fee_of_uw,
        fee_of_loss,
        paid_loss,
        cash_loss,
        survey_fee,
        premium_reserves_retained,
        loss_reserves_retained,
        profit_commission,
        interest,
        engineering_fee,
        brokerage,
        vat,
        vat_surtax,
        vat_deducion,
        brokerage_vat,
        create_time,
        check_status,
        send_date,
        serial_number
        ) values (
          #{recordId},
          #{outRefNo},
          #{facType},
          #{reinsurer},
          #{reinsuranceBroker},
          #{insured},
          #{insurancePeriodStart},
          #{insurancePeriodEnd},
          #{xrRiPeriodStart},
          #{xrRiPeriodEnd},
          #{accountNo},
          #{uwYear},
          #{type},
          #{policyNo},
          #{endorNo},
          #{claimNo},
          #{policyCurrency},
          #{sumInsured},
          #{premium},
          #{totalPremium},
          #{yourShare},
          #{exchangeRateCny},
          #{premiumCny},
          #{vatCny},
          #{remarks},
          #{dateOfLoss},
          #{natureOfLoss},
          #{originalTsi},
          #{totalPaimAmount},
          #{piccShareOfCoIns},
          #{totalOutstandingAmount},
          #{riPremium},
          #{riCommission},
          #{tax},
          #{feeOfUw},
          #{feeOfLoss},
          #{paidLoss},
          #{cashLoss},
          #{surveyFee},
          #{premiumReservesRetained},
          #{lossReservesRetained},
          #{profitCommission},
          #{interest},
          #{engineeringFee},
          #{brokerage},
          #{vat},
          #{vatSurtax},
          #{vatDeducion},
          #{brokerageVat},
          #{createTime},
          #{checkStatus},
          #{sendDate},
          #{serialNumber}
        )
    </insert>

    <select id="queryByCondition" resultType="cn.com.polysoft.template.entity.FacSoaInfoEntity">
        select * from fac_soa_info t where 1 = 1 and t.check_status = #{checkStatus} and send_date = #{checkDate}
    </select>
</mapper>