policyno, riskcode, riskname, startdate, enddate, inscompany, validstatus, insureragentcode, insureragentname, insureragreementno, salesagreementno, commissionrate, operatedate, insurercomcode, insurercomname, comcode, businessnature, handlercode, applicode, appliname, insuredcode, insuredname, sumamount, sumpremium, netpointcode, netpointname, updatedate, carflag, channel, isself, notaxpremium, jffs, sfds, license_no, frame_no, engine_no, car_type_no, zkxs, applicertno, applimobile, appliaddress, insuredcertno, insuredmobile, insuredaddress, paydate delete from ins_cmain where policyno = #{policyno,jdbcType=VARCHAR} DELETE FROM ins_cmain WHERE DATE_FORMAT(operatedate, '%Y-%m-%d') = DATE_FORMAT(#{operatedate,jdbcType=TIMESTAMP}, '%Y-%m-%d') AND channel=#{channel,jdbcType=VARCHAR} AND handlercode in (${handlercode}) AND handlercode = #{handlercode,jdbcType=VARCHAR} DELETE FROM ins_cmain WHERE (policyno, updatedate) in (#{item.policyno, jdbcType=VARCHAR}, DATE_FORMAT(#{item.updatedate, jdbcType=TIMESTAMP}, '%Y-%m-%d')) insert into ins_cmain (policyno, riskcode, riskname, startdate, enddate, inscompany, validstatus, insureragentcode, insureragentname, insureragreementno, salesagreementno, commissionrate, operatedate, insurercomcode, insurercomname, comcode, businessnature, handlercode, applicode, appliname, insuredcode, insuredname, sumamount, sumpremium, netpointcode, netpointname, updatedate, carflag, channel, isself, notaxpremium, jffs, sfds, license_no, frame_no, engine_no, car_type_no, zkxs, applicertno, applimobile, appliaddress, insuredcertno, insuredmobile, insuredaddress, paydate) values (#{policyno,jdbcType=VARCHAR}, #{riskcode,jdbcType=VARCHAR}, #{riskname,jdbcType=VARCHAR}, #{startdate,jdbcType=TIMESTAMP}, #{enddate,jdbcType=TIMESTAMP}, #{inscompany,jdbcType=VARCHAR}, #{validstatus,jdbcType=VARCHAR}, #{insureragentcode,jdbcType=VARCHAR}, #{insureragentname,jdbcType=VARCHAR}, #{insureragreementno,jdbcType=VARCHAR}, #{salesagreementno,jdbcType=VARCHAR}, #{commissionrate,jdbcType=DOUBLE}, #{operatedate,jdbcType=TIMESTAMP}, #{insurercomcode,jdbcType=VARCHAR}, #{insurercomname,jdbcType=VARCHAR}, #{comcode,jdbcType=VARCHAR}, #{businessnature,jdbcType=VARCHAR}, #{handlercode,jdbcType=VARCHAR}, #{applicode,jdbcType=VARCHAR}, #{appliname,jdbcType=VARCHAR}, #{insuredcode,jdbcType=VARCHAR}, #{insuredname,jdbcType=VARCHAR}, #{sumamount,jdbcType=DOUBLE}, #{sumpremium,jdbcType=DOUBLE}, #{netpointcode,jdbcType=VARCHAR}, #{netpointname,jdbcType=VARCHAR}, #{updatedate,jdbcType=TIMESTAMP}, #{carflag,jdbcType=VARCHAR}, #{channel,jdbcType=VARCHAR}, #{isself,jdbcType=VARCHAR}, #{notaxpremium,jdbcType=DOUBLE}, #{jffs,jdbcType=VARCHAR}, #{sfds,jdbcType=VARCHAR}, #{licenseNo,jdbcType=VARCHAR}, #{frameNo,jdbcType=VARCHAR}, #{engineNo,jdbcType=VARCHAR}, #{carTypeNo,jdbcType=VARCHAR}, #{zkxs,jdbcType=VARCHAR}, #{applicertno,jdbcType=DOUBLE}, #{applimobile,jdbcType=VARCHAR}, #{appliaddress,jdbcType=VARCHAR}, #{insuredcertno,jdbcType=DOUBLE}, #{insuredmobile,jdbcType=VARCHAR}, #{insuredaddress,jdbcType=VARCHAR}, #{paydate,jdbcType=TIMESTAMP}) insert into ins_cmain policyno, riskcode, riskname, startdate, enddate, inscompany, validstatus, insureragentcode, insureragentname, insureragreementno, salesagreementno, commissionrate, operatedate, insurercomcode, insurercomname, comcode, businessnature, handlercode, applicode, appliname, insuredcode, insuredname, sumamount, sumpremium, netpointcode, netpointname, updatedate, carflag, channel, isself, notaxpremium, jffs, sfds, license_no, frame_no, engine_no, car_type_no, zkxs, applicertno, applimobile, appliaddress, insuredcertno, insuredmobile, insuredaddress, paydate, #{policyno,jdbcType=VARCHAR}, #{riskcode,jdbcType=VARCHAR}, #{riskname,jdbcType=VARCHAR}, #{startdate,jdbcType=TIMESTAMP}, #{enddate,jdbcType=TIMESTAMP}, #{inscompany,jdbcType=VARCHAR}, #{validstatus,jdbcType=VARCHAR}, #{insureragentcode,jdbcType=VARCHAR}, #{insureragentname,jdbcType=VARCHAR}, #{insureragreementno,jdbcType=VARCHAR}, #{salesagreementno,jdbcType=VARCHAR}, #{commissionrate,jdbcType=DOUBLE}, #{operatedate,jdbcType=TIMESTAMP}, #{insurercomcode,jdbcType=VARCHAR}, #{insurercomname,jdbcType=VARCHAR}, #{comcode,jdbcType=VARCHAR}, #{businessnature,jdbcType=VARCHAR}, #{handlercode,jdbcType=VARCHAR}, #{applicode,jdbcType=VARCHAR}, #{appliname,jdbcType=VARCHAR}, #{insuredcode,jdbcType=VARCHAR}, #{insuredname,jdbcType=VARCHAR}, #{sumamount,jdbcType=DOUBLE}, #{sumpremium,jdbcType=DOUBLE}, #{netpointcode,jdbcType=VARCHAR}, #{netpointname,jdbcType=VARCHAR}, #{updatedate,jdbcType=TIMESTAMP}, #{carflag,jdbcType=VARCHAR}, #{channel,jdbcType=VARCHAR}, #{isself,jdbcType=VARCHAR}, #{notaxpremium,jdbcType=DOUBLE}, #{jffs,jdbcType=VARCHAR}, #{sfds,jdbcType=VARCHAR}, #{licenseNo,jdbcType=VARCHAR}, #{frameNo,jdbcType=VARCHAR}, #{engineNo,jdbcType=VARCHAR}, #{carTypeNo,jdbcType=VARCHAR}, #{zkxs,jdbcType=VARCHAR}, #{applicertno,jdbcType=VARCHAR}, #{applimobile,jdbcType=VARCHAR}, #{appliaddress,jdbcType=VARCHAR}, #{insuredcertno,jdbcType=VARCHAR}, #{insuredmobile,jdbcType=VARCHAR}, #{insuredaddress,jdbcType=VARCHAR}, #{paydate,jdbcType=TIMESTAMP}, insert into ins_cmain ( ) values (#{item.policyno}, #{item.riskcode}, #{item.riskname}, #{item.startdate}, #{item.enddate}, #{item.inscompany}, '1', #{item.insureragentcode}, #{item.insureragentname}, #{item.insureragreementno}, #{item.salesagreementno}, #{item.commissionrate}, #{item.operatedate}, #{item.insurercomcode}, #{item.insurercomname}, #{item.comcode}, #{item.businessnature}, #{item.handlercode}, #{item.applicode}, #{item.appliname}, #{item.insuredcode}, #{item.insuredname}, #{item.sumamount}, #{item.sumpremium}, #{item.netpointcode}, #{item.netpointname}, #{item.updatedate}, #{item.carflag}, #{item.channel}, #{item.isself}, #{item.notaxpremium}, #{item.jffs}, #{item.sfds}, #{item.licenseNo}, #{item.frameNo}, #{item.engineNo}, #{item.carTypeNo}, #{item.zkxs}, #{item.applicertno}, #{item.applimobile}, #{item.appliaddress}, #{item.insuredcertno}, #{item.insuredmobile}, #{item.insuredaddress}, #{item.paydate} ) update ins_cmain riskcode = #{riskcode,jdbcType=VARCHAR}, riskname = #{riskname,jdbcType=VARCHAR}, startdate = #{startdate,jdbcType=TIMESTAMP}, enddate = #{enddate,jdbcType=TIMESTAMP}, inscompany = #{inscompany,jdbcType=VARCHAR}, validstatus = #{validstatus,jdbcType=VARCHAR}, insureragentcode = #{insureragentcode,jdbcType=VARCHAR}, insureragentname = #{insureragentname,jdbcType=VARCHAR}, insureragreementno = #{insureragreementno,jdbcType=VARCHAR}, salesagreementno = #{salesagreementno,jdbcType=VARCHAR}, commissionrate = #{commissionrate,jdbcType=DOUBLE}, operatedate = #{operatedate,jdbcType=TIMESTAMP}, insurercomcode = #{insurercomcode,jdbcType=VARCHAR}, insurercomname = #{insurercomname,jdbcType=VARCHAR}, comcode = #{comcode,jdbcType=VARCHAR}, businessnature = #{businessnature,jdbcType=VARCHAR}, handlercode = #{handlercode,jdbcType=VARCHAR}, applicode = #{applicode,jdbcType=VARCHAR}, appliname = #{appliname,jdbcType=VARCHAR}, insuredcode = #{insuredcode,jdbcType=VARCHAR}, insuredname = #{insuredname,jdbcType=VARCHAR}, sumamount = #{sumamount,jdbcType=DOUBLE}, sumpremium = #{sumpremium,jdbcType=DOUBLE}, netpointcode = #{netpointcode,jdbcType=VARCHAR}, netpointname = #{netpointname,jdbcType=VARCHAR}, updatedate = #{updatedate,jdbcType=TIMESTAMP}, carflag = #{carflag,jdbcType=VARCHAR}, channel = #{channel,jdbcType=VARCHAR}, isself = #{isself,jdbcType=VARCHAR}, notaxpremium = #{notaxpremium,jdbcType=DOUBLE}, jffs = #{jffs,jdbcType=VARCHAR}, sfds = #{sfds,jdbcType=VARCHAR}, license_no = #{licenseNo,jdbcType=VARCHAR}, frame_no = #{frameNo,jdbcType=VARCHAR}, engine_no = #{engineNo,jdbcType=VARCHAR}, car_type_no = #{carTypeNo,jdbcType=VARCHAR}, zkxs = #{zkxs,jdbcType=VARCHAR}, applicertno = #{applicertno,jdbcType=VARCHAR}, applimobile = #{applimobile,jdbcType=VARCHAR}, appliaddress = #{appliaddress,jdbcType=VARCHAR}, insuredcertno = #{insuredcertno,jdbcType=VARCHAR}, insuredmobile = #{insuredmobile,jdbcType=VARCHAR}, insuredaddress = #{insuredaddress,jdbcType=VARCHAR}, paydate = #{paydate,jdbcType=TIMESTAMP}, where policyno = #{policyno,jdbcType=VARCHAR} update ins_cmain set riskcode = #{riskcode,jdbcType=VARCHAR}, riskname = #{riskname,jdbcType=VARCHAR}, startdate = #{startdate,jdbcType=TIMESTAMP}, enddate = #{enddate,jdbcType=TIMESTAMP}, inscompany = #{inscompany,jdbcType=VARCHAR}, validstatus = #{validstatus,jdbcType=VARCHAR}, insureragentcode = #{insureragentcode,jdbcType=VARCHAR}, insureragentname = #{insureragentname,jdbcType=VARCHAR}, insureragreementno = #{insureragreementno,jdbcType=VARCHAR}, salesagreementno = #{salesagreementno,jdbcType=VARCHAR}, commissionrate = #{commissionrate,jdbcType=DOUBLE}, operatedate = #{operatedate,jdbcType=TIMESTAMP}, insurercomcode = #{insurercomcode,jdbcType=VARCHAR}, insurercomname = #{insurercomname,jdbcType=VARCHAR}, comcode = #{comcode,jdbcType=VARCHAR}, businessnature = #{businessnature,jdbcType=VARCHAR}, handlercode = #{handlercode,jdbcType=VARCHAR}, applicode = #{applicode,jdbcType=VARCHAR}, appliname = #{appliname,jdbcType=VARCHAR}, insuredcode = #{insuredcode,jdbcType=VARCHAR}, insuredname = #{insuredname,jdbcType=VARCHAR}, sumamount = #{sumamount,jdbcType=DOUBLE}, sumpremium = #{sumpremium,jdbcType=DOUBLE}, netpointcode = #{netpointcode,jdbcType=VARCHAR}, netpointname = #{netpointname,jdbcType=VARCHAR}, updatedate = #{updatedate,jdbcType=TIMESTAMP}, carflag = #{carflag,jdbcType=VARCHAR}, channel = #{channel,jdbcType=VARCHAR}, isself = #{isself,jdbcType=VARCHAR}, notaxpremium = #{notaxpremium,jdbcType=DOUBLE}, jffs = #{jffs,jdbcType=VARCHAR}, sfds = #{sfds,jdbcType=VARCHAR}, license_no = #{licenseNo,jdbcType=VARCHAR}, frame_no = #{frameNo,jdbcType=VARCHAR}, engine_no = #{engineNo,jdbcType=VARCHAR}, car_type_no = #{carTypeNo,jdbcType=VARCHAR}, zkxs = #{zkxs,jdbcType=VARCHAR}, applicertno = #{applicertno,jdbcType=VARCHAR}, applimobile = #{applimobile,jdbcType=VARCHAR}, appliaddress = #{appliaddress,jdbcType=VARCHAR}, insuredcertno = #{insuredcertno,jdbcType=VARCHAR}, insuredmobile = #{insuredmobile,jdbcType=VARCHAR}, insuredaddress = #{insuredaddress,jdbcType=VARCHAR}, paydate = #{paydate,jdbcType=TIMESTAMP} where policyno = #{policyno,jdbcType=VARCHAR}