|
@@ -0,0 +1,446 @@
|
|
|
+<?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.product.center.manage.mapper.CenterOrderMainMapper">
|
|
|
+
|
|
|
+ <resultMap type="com.product.center.manage.domain.CenterOrderMain" id="CenterOrderMainResult">
|
|
|
+ <result property="id" column="id" />
|
|
|
+ <result property="companyCode" column="company_code" />
|
|
|
+ <result property="orderNo" column="order_no" />
|
|
|
+ <result property="applicationNo" column="application_no" />
|
|
|
+ <result property="policyNo" column="policy_no" />
|
|
|
+ <result property="payNo" column="pay_no" />
|
|
|
+ <result property="riskCode" column="risk_code" />
|
|
|
+ <result property="riskName" column="risk_name" />
|
|
|
+ <result property="productCode" column="product_code" />
|
|
|
+ <result property="productName" column="product_name" />
|
|
|
+ <result property="plyStartDate" column="ply_start_date" />
|
|
|
+ <result property="plyEndDate" column="ply_end_date" />
|
|
|
+ <result property="sumAmount" column="sum_amount" />
|
|
|
+ <result property="sumPremium" column="sum_premium" />
|
|
|
+ <result property="mult" column="mult" />
|
|
|
+ <result property="period" column="period" />
|
|
|
+ <result property="payment" column="payment" />
|
|
|
+ <result property="payway" column="payway" />
|
|
|
+ <result property="status" column="status" />
|
|
|
+ <result property="insuranceStatus" column="insurance_status" />
|
|
|
+ <result property="insuranceSubStatus" column="insurance_sub_status" />
|
|
|
+ <result property="tbStatus" column="tb_status" />
|
|
|
+ <result property="hbStatus" column="hb_status" />
|
|
|
+ <result property="createDate" column="create_date" />
|
|
|
+ <result property="updateDate" column="update_date" />
|
|
|
+ <result property="mobile" column="mobile" />
|
|
|
+ <result property="email" column="email" />
|
|
|
+ <result property="residenceProvinceId" column="residence_province_Id" />
|
|
|
+ <result property="residenceCityId" column="residence_city_id" />
|
|
|
+ <result property="channel" column="channel" />
|
|
|
+ <result property="subchannel" column="subchannel" />
|
|
|
+ <result property="dataSource" column="data_source" />
|
|
|
+ <result property="dataFrom" column="data_from" />
|
|
|
+ <result property="bankCode" column="bank_code" />
|
|
|
+ <result property="bankName" column="bank_name" />
|
|
|
+ <result property="bankAccount" column="bank_account" />
|
|
|
+ <result property="bankProvince" column="bank_province" />
|
|
|
+ <result property="bankCity" column="bank_city" />
|
|
|
+ <result property="payFailReason" column="pay_fail_reason" />
|
|
|
+ <result property="payTransTime" column="pay_trans_time" />
|
|
|
+ <result property="policyTransTime" column="policy_trans_time" />
|
|
|
+ <result property="beneficiaryType" column="beneficiary_type" />
|
|
|
+ <result property="insuredType" column="insured_type" />
|
|
|
+ <result property="rnewFlag" column="rnew_flag" />
|
|
|
+ <result property="giftRnewFlag" column="gift_rnew_flag" />
|
|
|
+ <result property="payPlatformType" column="pay_platform_type" />
|
|
|
+ <result property="epolicyUrl" column="epolicy_url" />
|
|
|
+ <result property="remark" column="remark" />
|
|
|
+ <result property="totalPremium" column="total_premium" />
|
|
|
+ <result property="periodPremium" column="period_premium" />
|
|
|
+ <result property="annualizedPremium" column="annualized_premium" />
|
|
|
+ <result property="refundTotal" column="refund_total" />
|
|
|
+ <result property="unpackOrder" column="unpack_order" />
|
|
|
+ <result property="hbClass" column="hb_class" />
|
|
|
+ <result property="agentCode" column="agent_code" />
|
|
|
+ <result property="agentName" column="agent_name" />
|
|
|
+ <result property="tjUpdateDate" column="tj_update_date" />
|
|
|
+ <result property="hbUpdateDate" column="hb_update_date" />
|
|
|
+ <result property="zfUpdateDate" column="zf_update_date" />
|
|
|
+ <result property="cbUpdateDate" column="cb_update_date" />
|
|
|
+ <result property="tbUpdateDate" column="tb_update_date" />
|
|
|
+ <result property="ytUpdateDate" column="yt_update_date" />
|
|
|
+ <result property="sxUpdateDate" column="sx_update_date" />
|
|
|
+ <result property="fxUpdateDate" column="fx_update_date" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectCenterOrderMainVo">
|
|
|
+ select id, company_code, order_no, application_no, policy_no, pay_no, risk_code, risk_name, product_code, product_name, terminal, ply_start_date, ply_end_date, sum_amount, sum_premium, mult, period, payment, payway, status, insurance_status, insurance_sub_status, tb_status, hb_status, cust_id, create_user, create_date, update_date, mobile, email, residence_province_Id, residence_city_id, channel, subchannel, data_source, data_from, bank_code, bank_name, bank_account, bank_province, bank_city, pay_fail_reason, pay_trans_time, hb_manual_flag, hb_manual_time, hb_manual_msg, wait_pay_delay_msg, hb_fail_reason, policy_trans_time, beneficiary_type, insured_type, gift_mark, rnew_flag, gift_rnew_flag, pay_platform_type, pay_url, epolicy_url, visit_url, hostIPAddress, data_source_distincId, remark, paramThird, total_premium, period_premium, annualized_premium, refund_total, unpack_order, create_we_run_data_id, hb_class, agent_code, agent_name, couple_flag, couple_policy_no, pros_order_id, tj_update_date, hb_update_date, zf_update_date, cb_update_date, tb_update_date, yt_update_date, sx_update_date, fx_update_date, wechat_appid, wechat_openid from center_order_main
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectCenterOrderMainList" parameterType="CenterOrderMain" resultMap="CenterOrderMainResult">
|
|
|
+ <include refid="selectCenterOrderMainVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="companyCode != null and companyCode != ''"> and company_code = #{companyCode}</if>
|
|
|
+ <if test="orderNo != null and orderNo != ''"> and order_no = #{orderNo}</if>
|
|
|
+ <if test="applicationNo != null and applicationNo != ''"> and application_no = #{applicationNo}</if>
|
|
|
+ <if test="policyNo != null and policyNo != ''"> and policy_no = #{policyNo}</if>
|
|
|
+ <if test="payNo != null and payNo != ''"> and pay_no = #{payNo}</if>
|
|
|
+ <if test="riskCode != null and riskCode != ''"> and risk_code = #{riskCode}</if>
|
|
|
+ <if test="riskName != null and riskName != ''"> and risk_name like concat('%', #{riskName}, '%')</if>
|
|
|
+ <if test="productCode != null and productCode != ''"> and product_code = #{productCode}</if>
|
|
|
+ <if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
|
|
+ <if test="terminal != null and terminal != ''"> and terminal = #{terminal}</if>
|
|
|
+ <if test="plyStartDate != null "> and ply_start_date = #{plyStartDate}</if>
|
|
|
+ <if test="plyEndDate != null "> and ply_end_date = #{plyEndDate}</if>
|
|
|
+ <if test="sumAmount != null "> and sum_amount = #{sumAmount}</if>
|
|
|
+ <if test="sumPremium != null "> and sum_premium = #{sumPremium}</if>
|
|
|
+ <if test="mult != null "> and mult = #{mult}</if>
|
|
|
+ <if test="period != null and period != ''"> and period = #{period}</if>
|
|
|
+ <if test="payment != null and payment != ''"> and payment = #{payment}</if>
|
|
|
+ <if test="payway != null and payway != ''"> and payway = #{payway}</if>
|
|
|
+ <if test="status != null and status != ''"> and status = #{status}</if>
|
|
|
+ <if test="insuranceStatus != null and insuranceStatus != ''"> and insurance_status = #{insuranceStatus}</if>
|
|
|
+ <if test="insuranceSubStatus != null and insuranceSubStatus != ''"> and insurance_sub_status = #{insuranceSubStatus}</if>
|
|
|
+ <if test="tbStatus != null and tbStatus != ''"> and tb_status = #{tbStatus}</if>
|
|
|
+ <if test="hbStatus != null and hbStatus != ''"> and hb_status = #{hbStatus}</if>
|
|
|
+ <if test="custId != null and custId != ''"> and cust_id = #{custId}</if>
|
|
|
+ <if test="createUser != null and createUser != ''"> and create_user = #{createUser}</if>
|
|
|
+ <if test="createDate != null "> and create_date = #{createDate}</if>
|
|
|
+ <if test="updateDate != null "> and update_date = #{updateDate}</if>
|
|
|
+ <if test="mobile != null and mobile != ''"> and mobile = #{mobile}</if>
|
|
|
+ <if test="email != null and email != ''"> and email = #{email}</if>
|
|
|
+ <if test="residenceProvinceId != null and residenceProvinceId != ''"> and residence_province_Id = #{residenceProvinceId}</if>
|
|
|
+ <if test="residenceCityId != null and residenceCityId != ''"> and residence_city_id = #{residenceCityId}</if>
|
|
|
+ <if test="channel != null and channel != ''"> and channel = #{channel}</if>
|
|
|
+ <if test="subchannel != null and subchannel != ''"> and subchannel = #{subchannel}</if>
|
|
|
+ <if test="dataSource != null and dataSource != ''"> and data_source = #{dataSource}</if>
|
|
|
+ <if test="dataFrom != null and dataFrom != ''"> and data_from = #{dataFrom}</if>
|
|
|
+ <if test="bankCode != null and bankCode != ''"> and bank_code = #{bankCode}</if>
|
|
|
+ <if test="bankName != null and bankName != ''"> and bank_name like concat('%', #{bankName}, '%')</if>
|
|
|
+ <if test="bankAccount != null and bankAccount != ''"> and bank_account = #{bankAccount}</if>
|
|
|
+ <if test="bankProvince != null and bankProvince != ''"> and bank_province = #{bankProvince}</if>
|
|
|
+ <if test="bankCity != null and bankCity != ''"> and bank_city = #{bankCity}</if>
|
|
|
+ <if test="payFailReason != null and payFailReason != ''"> and pay_fail_reason = #{payFailReason}</if>
|
|
|
+ <if test="payTransTime != null "> and pay_trans_time = #{payTransTime}</if>
|
|
|
+ <if test="hbManualFlag != null and hbManualFlag != ''"> and hb_manual_flag = #{hbManualFlag}</if>
|
|
|
+ <if test="hbManualTime != null and hbManualTime != ''"> and hb_manual_time = #{hbManualTime}</if>
|
|
|
+ <if test="hbManualMsg != null and hbManualMsg != ''"> and hb_manual_msg = #{hbManualMsg}</if>
|
|
|
+ <if test="waitPayDelayMsg != null and waitPayDelayMsg != ''"> and wait_pay_delay_msg = #{waitPayDelayMsg}</if>
|
|
|
+ <if test="hbFailReason != null and hbFailReason != ''"> and hb_fail_reason = #{hbFailReason}</if>
|
|
|
+ <if test="policyTransTime != null "> and policy_trans_time = #{policyTransTime}</if>
|
|
|
+ <if test="beneficiaryType != null and beneficiaryType != ''"> and beneficiary_type = #{beneficiaryType}</if>
|
|
|
+ <if test="insuredType != null and insuredType != ''"> and insured_type = #{insuredType}</if>
|
|
|
+ <if test="giftMark != null and giftMark != ''"> and gift_mark = #{giftMark}</if>
|
|
|
+ <if test="rnewFlag != null and rnewFlag != ''"> and rnew_flag = #{rnewFlag}</if>
|
|
|
+ <if test="giftRnewFlag != null and giftRnewFlag != ''"> and gift_rnew_flag = #{giftRnewFlag}</if>
|
|
|
+ <if test="payPlatformType != null and payPlatformType != ''"> and pay_platform_type = #{payPlatformType}</if>
|
|
|
+ <if test="payUrl != null and payUrl != ''"> and pay_url = #{payUrl}</if>
|
|
|
+ <if test="epolicyUrl != null and epolicyUrl != ''"> and epolicy_url = #{epolicyUrl}</if>
|
|
|
+ <if test="visitUrl != null and visitUrl != ''"> and visit_url = #{visitUrl}</if>
|
|
|
+ <if test="hostIPAddress != null and hostIPAddress != ''"> and hostIPAddress = #{hostIPAddress}</if>
|
|
|
+ <if test="dataSourceDistincid != null and dataSourceDistincid != ''"> and data_source_distincId = #{dataSourceDistincid}</if>
|
|
|
+ <if test="paramThird != null and paramThird != ''"> and paramThird = #{paramThird}</if>
|
|
|
+ <if test="totalPremium != null "> and total_premium = #{totalPremium}</if>
|
|
|
+ <if test="periodPremium != null "> and period_premium = #{periodPremium}</if>
|
|
|
+ <if test="annualizedPremium != null "> and annualized_premium = #{annualizedPremium}</if>
|
|
|
+ <if test="refundTotal != null "> and refund_total = #{refundTotal}</if>
|
|
|
+ <if test="unpackOrder != null and unpackOrder != ''"> and unpack_order = #{unpackOrder}</if>
|
|
|
+ <if test="createWeRunDataId != null "> and create_we_run_data_id = #{createWeRunDataId}</if>
|
|
|
+ <if test="hbClass != null and hbClass != ''"> and hb_class = #{hbClass}</if>
|
|
|
+ <if test="agentCode != null and agentCode != ''"> and agent_code = #{agentCode}</if>
|
|
|
+ <if test="agentName != null and agentName != ''"> and agent_name like concat('%', #{agentName}, '%')</if>
|
|
|
+ <if test="coupleFlag != null and coupleFlag != ''"> and couple_flag = #{coupleFlag}</if>
|
|
|
+ <if test="couplePolicyNo != null and couplePolicyNo != ''"> and couple_policy_no = #{couplePolicyNo}</if>
|
|
|
+ <if test="prosOrderId != null "> and pros_order_id = #{prosOrderId}</if>
|
|
|
+ <if test="tjUpdateDate != null "> and tj_update_date = #{tjUpdateDate}</if>
|
|
|
+ <if test="hbUpdateDate != null "> and hb_update_date = #{hbUpdateDate}</if>
|
|
|
+ <if test="zfUpdateDate != null "> and zf_update_date = #{zfUpdateDate}</if>
|
|
|
+ <if test="cbUpdateDate != null "> and cb_update_date = #{cbUpdateDate}</if>
|
|
|
+ <if test="tbUpdateDate != null "> and tb_update_date = #{tbUpdateDate}</if>
|
|
|
+ <if test="ytUpdateDate != null "> and yt_update_date = #{ytUpdateDate}</if>
|
|
|
+ <if test="sxUpdateDate != null "> and sx_update_date = #{sxUpdateDate}</if>
|
|
|
+ <if test="fxUpdateDate != null "> and fx_update_date = #{fxUpdateDate}</if>
|
|
|
+ <if test="wechatAppid != null and wechatAppid != ''"> and wechat_appid = #{wechatAppid}</if>
|
|
|
+ <if test="wechatOpenid != null and wechatOpenid != ''"> and wechat_openid = #{wechatOpenid}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectCenterOrderMainById" parameterType="Long" resultMap="CenterOrderMainResult">
|
|
|
+ <include refid="selectCenterOrderMainVo"/>
|
|
|
+ where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertCenterOrderMain" parameterType="CenterOrderMain" useGeneratedKeys="true" keyProperty="id">
|
|
|
+ insert into center_order_main
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="companyCode != null">company_code,</if>
|
|
|
+ <if test="orderNo != null and orderNo != ''">order_no,</if>
|
|
|
+ <if test="applicationNo != null">application_no,</if>
|
|
|
+ <if test="policyNo != null">policy_no,</if>
|
|
|
+ <if test="payNo != null">pay_no,</if>
|
|
|
+ <if test="riskCode != null and riskCode != ''">risk_code,</if>
|
|
|
+ <if test="riskName != null and riskName != ''">risk_name,</if>
|
|
|
+ <if test="productCode != null and productCode != ''">product_code,</if>
|
|
|
+ <if test="productName != null and productName != ''">product_name,</if>
|
|
|
+ <if test="terminal != null">terminal,</if>
|
|
|
+ <if test="plyStartDate != null">ply_start_date,</if>
|
|
|
+ <if test="plyEndDate != null">ply_end_date,</if>
|
|
|
+ <if test="sumAmount != null">sum_amount,</if>
|
|
|
+ <if test="sumPremium != null">sum_premium,</if>
|
|
|
+ <if test="mult != null">mult,</if>
|
|
|
+ <if test="period != null and period != ''">period,</if>
|
|
|
+ <if test="payment != null and payment != ''">payment,</if>
|
|
|
+ <if test="payway != null and payway != ''">payway,</if>
|
|
|
+ <if test="status != null and status != ''">status,</if>
|
|
|
+ <if test="insuranceStatus != null">insurance_status,</if>
|
|
|
+ <if test="insuranceSubStatus != null">insurance_sub_status,</if>
|
|
|
+ <if test="tbStatus != null">tb_status,</if>
|
|
|
+ <if test="hbStatus != null">hb_status,</if>
|
|
|
+ <if test="custId != null">cust_id,</if>
|
|
|
+ <if test="createUser != null and createUser != ''">create_user,</if>
|
|
|
+ <if test="createDate != null">create_date,</if>
|
|
|
+ <if test="updateDate != null">update_date,</if>
|
|
|
+ <if test="mobile != null">mobile,</if>
|
|
|
+ <if test="email != null">email,</if>
|
|
|
+ <if test="residenceProvinceId != null">residence_province_Id,</if>
|
|
|
+ <if test="residenceCityId != null">residence_city_id,</if>
|
|
|
+ <if test="channel != null">channel,</if>
|
|
|
+ <if test="subchannel != null">subchannel,</if>
|
|
|
+ <if test="dataSource != null">data_source,</if>
|
|
|
+ <if test="dataFrom != null">data_from,</if>
|
|
|
+ <if test="bankCode != null">bank_code,</if>
|
|
|
+ <if test="bankName != null">bank_name,</if>
|
|
|
+ <if test="bankAccount != null">bank_account,</if>
|
|
|
+ <if test="bankProvince != null">bank_province,</if>
|
|
|
+ <if test="bankCity != null">bank_city,</if>
|
|
|
+ <if test="payFailReason != null">pay_fail_reason,</if>
|
|
|
+ <if test="payTransTime != null">pay_trans_time,</if>
|
|
|
+ <if test="hbManualFlag != null">hb_manual_flag,</if>
|
|
|
+ <if test="hbManualTime != null">hb_manual_time,</if>
|
|
|
+ <if test="hbManualMsg != null">hb_manual_msg,</if>
|
|
|
+ <if test="waitPayDelayMsg != null">wait_pay_delay_msg,</if>
|
|
|
+ <if test="hbFailReason != null">hb_fail_reason,</if>
|
|
|
+ <if test="policyTransTime != null">policy_trans_time,</if>
|
|
|
+ <if test="beneficiaryType != null and beneficiaryType != ''">beneficiary_type,</if>
|
|
|
+ <if test="insuredType != null and insuredType != ''">insured_type,</if>
|
|
|
+ <if test="giftMark != null">gift_mark,</if>
|
|
|
+ <if test="rnewFlag != null">rnew_flag,</if>
|
|
|
+ <if test="giftRnewFlag != null">gift_rnew_flag,</if>
|
|
|
+ <if test="payPlatformType != null">pay_platform_type,</if>
|
|
|
+ <if test="payUrl != null">pay_url,</if>
|
|
|
+ <if test="epolicyUrl != null">epolicy_url,</if>
|
|
|
+ <if test="visitUrl != null">visit_url,</if>
|
|
|
+ <if test="hostIPAddress != null">hostIPAddress,</if>
|
|
|
+ <if test="dataSourceDistincid != null">data_source_distincId,</if>
|
|
|
+ <if test="remark != null">remark,</if>
|
|
|
+ <if test="paramThird != null">paramThird,</if>
|
|
|
+ <if test="totalPremium != null">total_premium,</if>
|
|
|
+ <if test="periodPremium != null">period_premium,</if>
|
|
|
+ <if test="annualizedPremium != null">annualized_premium,</if>
|
|
|
+ <if test="refundTotal != null">refund_total,</if>
|
|
|
+ <if test="unpackOrder != null">unpack_order,</if>
|
|
|
+ <if test="createWeRunDataId != null">create_we_run_data_id,</if>
|
|
|
+ <if test="hbClass != null">hb_class,</if>
|
|
|
+ <if test="agentCode != null">agent_code,</if>
|
|
|
+ <if test="agentName != null">agent_name,</if>
|
|
|
+ <if test="coupleFlag != null">couple_flag,</if>
|
|
|
+ <if test="couplePolicyNo != null">couple_policy_no,</if>
|
|
|
+ <if test="prosOrderId != null">pros_order_id,</if>
|
|
|
+ <if test="tjUpdateDate != null">tj_update_date,</if>
|
|
|
+ <if test="hbUpdateDate != null">hb_update_date,</if>
|
|
|
+ <if test="zfUpdateDate != null">zf_update_date,</if>
|
|
|
+ <if test="cbUpdateDate != null">cb_update_date,</if>
|
|
|
+ <if test="tbUpdateDate != null">tb_update_date,</if>
|
|
|
+ <if test="ytUpdateDate != null">yt_update_date,</if>
|
|
|
+ <if test="sxUpdateDate != null">sx_update_date,</if>
|
|
|
+ <if test="fxUpdateDate != null">fx_update_date,</if>
|
|
|
+ <if test="wechatAppid != null">wechat_appid,</if>
|
|
|
+ <if test="wechatOpenid != null">wechat_openid,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="companyCode != null">#{companyCode},</if>
|
|
|
+ <if test="orderNo != null and orderNo != ''">#{orderNo},</if>
|
|
|
+ <if test="applicationNo != null">#{applicationNo},</if>
|
|
|
+ <if test="policyNo != null">#{policyNo},</if>
|
|
|
+ <if test="payNo != null">#{payNo},</if>
|
|
|
+ <if test="riskCode != null and riskCode != ''">#{riskCode},</if>
|
|
|
+ <if test="riskName != null and riskName != ''">#{riskName},</if>
|
|
|
+ <if test="productCode != null and productCode != ''">#{productCode},</if>
|
|
|
+ <if test="productName != null and productName != ''">#{productName},</if>
|
|
|
+ <if test="terminal != null">#{terminal},</if>
|
|
|
+ <if test="plyStartDate != null">#{plyStartDate},</if>
|
|
|
+ <if test="plyEndDate != null">#{plyEndDate},</if>
|
|
|
+ <if test="sumAmount != null">#{sumAmount},</if>
|
|
|
+ <if test="sumPremium != null">#{sumPremium},</if>
|
|
|
+ <if test="mult != null">#{mult},</if>
|
|
|
+ <if test="period != null and period != ''">#{period},</if>
|
|
|
+ <if test="payment != null and payment != ''">#{payment},</if>
|
|
|
+ <if test="payway != null and payway != ''">#{payway},</if>
|
|
|
+ <if test="status != null and status != ''">#{status},</if>
|
|
|
+ <if test="insuranceStatus != null">#{insuranceStatus},</if>
|
|
|
+ <if test="insuranceSubStatus != null">#{insuranceSubStatus},</if>
|
|
|
+ <if test="tbStatus != null">#{tbStatus},</if>
|
|
|
+ <if test="hbStatus != null">#{hbStatus},</if>
|
|
|
+ <if test="custId != null">#{custId},</if>
|
|
|
+ <if test="createUser != null and createUser != ''">#{createUser},</if>
|
|
|
+ <if test="createDate != null">#{createDate},</if>
|
|
|
+ <if test="updateDate != null">#{updateDate},</if>
|
|
|
+ <if test="mobile != null">#{mobile},</if>
|
|
|
+ <if test="email != null">#{email},</if>
|
|
|
+ <if test="residenceProvinceId != null">#{residenceProvinceId},</if>
|
|
|
+ <if test="residenceCityId != null">#{residenceCityId},</if>
|
|
|
+ <if test="channel != null">#{channel},</if>
|
|
|
+ <if test="subchannel != null">#{subchannel},</if>
|
|
|
+ <if test="dataSource != null">#{dataSource},</if>
|
|
|
+ <if test="dataFrom != null">#{dataFrom},</if>
|
|
|
+ <if test="bankCode != null">#{bankCode},</if>
|
|
|
+ <if test="bankName != null">#{bankName},</if>
|
|
|
+ <if test="bankAccount != null">#{bankAccount},</if>
|
|
|
+ <if test="bankProvince != null">#{bankProvince},</if>
|
|
|
+ <if test="bankCity != null">#{bankCity},</if>
|
|
|
+ <if test="payFailReason != null">#{payFailReason},</if>
|
|
|
+ <if test="payTransTime != null">#{payTransTime},</if>
|
|
|
+ <if test="hbManualFlag != null">#{hbManualFlag},</if>
|
|
|
+ <if test="hbManualTime != null">#{hbManualTime},</if>
|
|
|
+ <if test="hbManualMsg != null">#{hbManualMsg},</if>
|
|
|
+ <if test="waitPayDelayMsg != null">#{waitPayDelayMsg},</if>
|
|
|
+ <if test="hbFailReason != null">#{hbFailReason},</if>
|
|
|
+ <if test="policyTransTime != null">#{policyTransTime},</if>
|
|
|
+ <if test="beneficiaryType != null and beneficiaryType != ''">#{beneficiaryType},</if>
|
|
|
+ <if test="insuredType != null and insuredType != ''">#{insuredType},</if>
|
|
|
+ <if test="giftMark != null">#{giftMark},</if>
|
|
|
+ <if test="rnewFlag != null">#{rnewFlag},</if>
|
|
|
+ <if test="giftRnewFlag != null">#{giftRnewFlag},</if>
|
|
|
+ <if test="payPlatformType != null">#{payPlatformType},</if>
|
|
|
+ <if test="payUrl != null">#{payUrl},</if>
|
|
|
+ <if test="epolicyUrl != null">#{epolicyUrl},</if>
|
|
|
+ <if test="visitUrl != null">#{visitUrl},</if>
|
|
|
+ <if test="hostIPAddress != null">#{hostIPAddress},</if>
|
|
|
+ <if test="dataSourceDistincid != null">#{dataSourceDistincid},</if>
|
|
|
+ <if test="remark != null">#{remark},</if>
|
|
|
+ <if test="paramThird != null">#{paramThird},</if>
|
|
|
+ <if test="totalPremium != null">#{totalPremium},</if>
|
|
|
+ <if test="periodPremium != null">#{periodPremium},</if>
|
|
|
+ <if test="annualizedPremium != null">#{annualizedPremium},</if>
|
|
|
+ <if test="refundTotal != null">#{refundTotal},</if>
|
|
|
+ <if test="unpackOrder != null">#{unpackOrder},</if>
|
|
|
+ <if test="createWeRunDataId != null">#{createWeRunDataId},</if>
|
|
|
+ <if test="hbClass != null">#{hbClass},</if>
|
|
|
+ <if test="agentCode != null">#{agentCode},</if>
|
|
|
+ <if test="agentName != null">#{agentName},</if>
|
|
|
+ <if test="coupleFlag != null">#{coupleFlag},</if>
|
|
|
+ <if test="couplePolicyNo != null">#{couplePolicyNo},</if>
|
|
|
+ <if test="prosOrderId != null">#{prosOrderId},</if>
|
|
|
+ <if test="tjUpdateDate != null">#{tjUpdateDate},</if>
|
|
|
+ <if test="hbUpdateDate != null">#{hbUpdateDate},</if>
|
|
|
+ <if test="zfUpdateDate != null">#{zfUpdateDate},</if>
|
|
|
+ <if test="cbUpdateDate != null">#{cbUpdateDate},</if>
|
|
|
+ <if test="tbUpdateDate != null">#{tbUpdateDate},</if>
|
|
|
+ <if test="ytUpdateDate != null">#{ytUpdateDate},</if>
|
|
|
+ <if test="sxUpdateDate != null">#{sxUpdateDate},</if>
|
|
|
+ <if test="fxUpdateDate != null">#{fxUpdateDate},</if>
|
|
|
+ <if test="wechatAppid != null">#{wechatAppid},</if>
|
|
|
+ <if test="wechatOpenid != null">#{wechatOpenid},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateCenterOrderMain" parameterType="CenterOrderMain">
|
|
|
+ update center_order_main
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="companyCode != null">company_code = #{companyCode},</if>
|
|
|
+ <if test="orderNo != null and orderNo != ''">order_no = #{orderNo},</if>
|
|
|
+ <if test="applicationNo != null">application_no = #{applicationNo},</if>
|
|
|
+ <if test="policyNo != null">policy_no = #{policyNo},</if>
|
|
|
+ <if test="payNo != null">pay_no = #{payNo},</if>
|
|
|
+ <if test="riskCode != null and riskCode != ''">risk_code = #{riskCode},</if>
|
|
|
+ <if test="riskName != null and riskName != ''">risk_name = #{riskName},</if>
|
|
|
+ <if test="productCode != null and productCode != ''">product_code = #{productCode},</if>
|
|
|
+ <if test="productName != null and productName != ''">product_name = #{productName},</if>
|
|
|
+ <if test="terminal != null">terminal = #{terminal},</if>
|
|
|
+ <if test="plyStartDate != null">ply_start_date = #{plyStartDate},</if>
|
|
|
+ <if test="plyEndDate != null">ply_end_date = #{plyEndDate},</if>
|
|
|
+ <if test="sumAmount != null">sum_amount = #{sumAmount},</if>
|
|
|
+ <if test="sumPremium != null">sum_premium = #{sumPremium},</if>
|
|
|
+ <if test="mult != null">mult = #{mult},</if>
|
|
|
+ <if test="period != null and period != ''">period = #{period},</if>
|
|
|
+ <if test="payment != null and payment != ''">payment = #{payment},</if>
|
|
|
+ <if test="payway != null and payway != ''">payway = #{payway},</if>
|
|
|
+ <if test="status != null and status != ''">status = #{status},</if>
|
|
|
+ <if test="insuranceStatus != null">insurance_status = #{insuranceStatus},</if>
|
|
|
+ <if test="insuranceSubStatus != null">insurance_sub_status = #{insuranceSubStatus},</if>
|
|
|
+ <if test="tbStatus != null">tb_status = #{tbStatus},</if>
|
|
|
+ <if test="hbStatus != null">hb_status = #{hbStatus},</if>
|
|
|
+ <if test="custId != null">cust_id = #{custId},</if>
|
|
|
+ <if test="createUser != null and createUser != ''">create_user = #{createUser},</if>
|
|
|
+ <if test="createDate != null">create_date = #{createDate},</if>
|
|
|
+ <if test="updateDate != null">update_date = #{updateDate},</if>
|
|
|
+ <if test="mobile != null">mobile = #{mobile},</if>
|
|
|
+ <if test="email != null">email = #{email},</if>
|
|
|
+ <if test="residenceProvinceId != null">residence_province_Id = #{residenceProvinceId},</if>
|
|
|
+ <if test="residenceCityId != null">residence_city_id = #{residenceCityId},</if>
|
|
|
+ <if test="channel != null">channel = #{channel},</if>
|
|
|
+ <if test="subchannel != null">subchannel = #{subchannel},</if>
|
|
|
+ <if test="dataSource != null">data_source = #{dataSource},</if>
|
|
|
+ <if test="dataFrom != null">data_from = #{dataFrom},</if>
|
|
|
+ <if test="bankCode != null">bank_code = #{bankCode},</if>
|
|
|
+ <if test="bankName != null">bank_name = #{bankName},</if>
|
|
|
+ <if test="bankAccount != null">bank_account = #{bankAccount},</if>
|
|
|
+ <if test="bankProvince != null">bank_province = #{bankProvince},</if>
|
|
|
+ <if test="bankCity != null">bank_city = #{bankCity},</if>
|
|
|
+ <if test="payFailReason != null">pay_fail_reason = #{payFailReason},</if>
|
|
|
+ <if test="payTransTime != null">pay_trans_time = #{payTransTime},</if>
|
|
|
+ <if test="hbManualFlag != null">hb_manual_flag = #{hbManualFlag},</if>
|
|
|
+ <if test="hbManualTime != null">hb_manual_time = #{hbManualTime},</if>
|
|
|
+ <if test="hbManualMsg != null">hb_manual_msg = #{hbManualMsg},</if>
|
|
|
+ <if test="waitPayDelayMsg != null">wait_pay_delay_msg = #{waitPayDelayMsg},</if>
|
|
|
+ <if test="hbFailReason != null">hb_fail_reason = #{hbFailReason},</if>
|
|
|
+ <if test="policyTransTime != null">policy_trans_time = #{policyTransTime},</if>
|
|
|
+ <if test="beneficiaryType != null and beneficiaryType != ''">beneficiary_type = #{beneficiaryType},</if>
|
|
|
+ <if test="insuredType != null and insuredType != ''">insured_type = #{insuredType},</if>
|
|
|
+ <if test="giftMark != null">gift_mark = #{giftMark},</if>
|
|
|
+ <if test="rnewFlag != null">rnew_flag = #{rnewFlag},</if>
|
|
|
+ <if test="giftRnewFlag != null">gift_rnew_flag = #{giftRnewFlag},</if>
|
|
|
+ <if test="payPlatformType != null">pay_platform_type = #{payPlatformType},</if>
|
|
|
+ <if test="payUrl != null">pay_url = #{payUrl},</if>
|
|
|
+ <if test="epolicyUrl != null">epolicy_url = #{epolicyUrl},</if>
|
|
|
+ <if test="visitUrl != null">visit_url = #{visitUrl},</if>
|
|
|
+ <if test="hostIPAddress != null">hostIPAddress = #{hostIPAddress},</if>
|
|
|
+ <if test="dataSourceDistincid != null">data_source_distincId = #{dataSourceDistincid},</if>
|
|
|
+ <if test="remark != null">remark = #{remark},</if>
|
|
|
+ <if test="paramThird != null">paramThird = #{paramThird},</if>
|
|
|
+ <if test="totalPremium != null">total_premium = #{totalPremium},</if>
|
|
|
+ <if test="periodPremium != null">period_premium = #{periodPremium},</if>
|
|
|
+ <if test="annualizedPremium != null">annualized_premium = #{annualizedPremium},</if>
|
|
|
+ <if test="refundTotal != null">refund_total = #{refundTotal},</if>
|
|
|
+ <if test="unpackOrder != null">unpack_order = #{unpackOrder},</if>
|
|
|
+ <if test="createWeRunDataId != null">create_we_run_data_id = #{createWeRunDataId},</if>
|
|
|
+ <if test="hbClass != null">hb_class = #{hbClass},</if>
|
|
|
+ <if test="agentCode != null">agent_code = #{agentCode},</if>
|
|
|
+ <if test="agentName != null">agent_name = #{agentName},</if>
|
|
|
+ <if test="coupleFlag != null">couple_flag = #{coupleFlag},</if>
|
|
|
+ <if test="couplePolicyNo != null">couple_policy_no = #{couplePolicyNo},</if>
|
|
|
+ <if test="prosOrderId != null">pros_order_id = #{prosOrderId},</if>
|
|
|
+ <if test="tjUpdateDate != null">tj_update_date = #{tjUpdateDate},</if>
|
|
|
+ <if test="hbUpdateDate != null">hb_update_date = #{hbUpdateDate},</if>
|
|
|
+ <if test="zfUpdateDate != null">zf_update_date = #{zfUpdateDate},</if>
|
|
|
+ <if test="cbUpdateDate != null">cb_update_date = #{cbUpdateDate},</if>
|
|
|
+ <if test="tbUpdateDate != null">tb_update_date = #{tbUpdateDate},</if>
|
|
|
+ <if test="ytUpdateDate != null">yt_update_date = #{ytUpdateDate},</if>
|
|
|
+ <if test="sxUpdateDate != null">sx_update_date = #{sxUpdateDate},</if>
|
|
|
+ <if test="fxUpdateDate != null">fx_update_date = #{fxUpdateDate},</if>
|
|
|
+ <if test="wechatAppid != null">wechat_appid = #{wechatAppid},</if>
|
|
|
+ <if test="wechatOpenid != null">wechat_openid = #{wechatOpenid},</if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <delete id="deleteCenterOrderMainById" parameterType="Long">
|
|
|
+ delete from center_order_main where id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="deleteCenterOrderMainByIds" parameterType="String">
|
|
|
+ delete from center_order_main where id in
|
|
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+
|
|
|
+</mapper>
|