|
@@ -0,0 +1,552 @@
|
|
|
+<?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.emato.cuspay.dao.mapper.wx.WxCbPayDocMapper" >
|
|
|
+ <resultMap id="BaseResultMap" type="com.emato.cuspay.dao.data.wx.WxCbPayDoc" >
|
|
|
+ <id column="wx_pay_sn" property="wxPaySn" jdbcType="VARCHAR" />
|
|
|
+ <result column="merch_sn" property="merchSn" jdbcType="VARCHAR" />
|
|
|
+ <result column="merch_name" property="merchName" jdbcType="VARCHAR" />
|
|
|
+ <result column="plat_sn" property="platSn" jdbcType="VARCHAR" />
|
|
|
+ <result column="plat_name" property="platName" jdbcType="VARCHAR" />
|
|
|
+ <result column="third_party_merch_code" property="thirdPartyMerchCode" jdbcType="VARCHAR" />
|
|
|
+ <result column="third_party_merch_name" property="thirdPartyMerchName" jdbcType="VARCHAR" />
|
|
|
+ <result column="appid" property="appid" jdbcType="VARCHAR" />
|
|
|
+ <result column="mch_id" property="mchId" jdbcType="VARCHAR" />
|
|
|
+ <result column="out_trade_no" property="outTradeNo" jdbcType="VARCHAR" />
|
|
|
+ <result column="transaction_id" property="transactionId" jdbcType="VARCHAR" />
|
|
|
+ <result column="customs" property="customs" jdbcType="VARCHAR" />
|
|
|
+ <result column="mch_customs_no" property="mchCustomsNo" jdbcType="VARCHAR" />
|
|
|
+ <result column="duty" property="duty" jdbcType="INTEGER" />
|
|
|
+ <result column="action_type" property="actionType" jdbcType="VARCHAR" />
|
|
|
+ <result column="sub_order_no" property="subOrderNo" jdbcType="VARCHAR" />
|
|
|
+ <result column="fee_type" property="feeType" jdbcType="VARCHAR" />
|
|
|
+ <result column="order_fee" property="orderFee" jdbcType="INTEGER" />
|
|
|
+ <result column="transport_fee" property="transportFee" jdbcType="INTEGER" />
|
|
|
+ <result column="product_fee" property="productFee" jdbcType="INTEGER" />
|
|
|
+ <result column="cert_type" property="certType" jdbcType="VARCHAR" />
|
|
|
+ <result column="cert_id" property="certId" jdbcType="VARCHAR" />
|
|
|
+ <result column="name" property="name" jdbcType="VARCHAR" />
|
|
|
+ <result column="doc_status" property="docStatus" jdbcType="CHAR" />
|
|
|
+ <result column="notify_merch" property="notifyMerch" jdbcType="CHAR" />
|
|
|
+ <result column="remark" property="remark" jdbcType="VARCHAR" />
|
|
|
+ <result column="return_code" property="returnCode" jdbcType="VARCHAR" />
|
|
|
+ <result column="return_msg" property="returnMsg" jdbcType="VARCHAR" />
|
|
|
+ <result column="result_code" property="resultCode" jdbcType="VARCHAR" />
|
|
|
+ <result column="err_code" property="errCode" jdbcType="VARCHAR" />
|
|
|
+ <result column="err_code_des" property="errCodeDes" jdbcType="VARCHAR" />
|
|
|
+ <result column="creater_sn" property="createrSn" jdbcType="VARCHAR" />
|
|
|
+ <result column="create_time" property="createTime" jdbcType="VARCHAR" />
|
|
|
+ <result column="moder_sn" property="moderSn" jdbcType="VARCHAR" />
|
|
|
+ <result column="mod_time" property="modTime" jdbcType="VARCHAR" />
|
|
|
+ <result column="tstm" property="tstm" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="ex_field" property="exField" jdbcType="VARCHAR" />
|
|
|
+ <result column="ex_field2" property="exField2" jdbcType="VARCHAR" />
|
|
|
+ <result column="ex_field3" property="exField3" jdbcType="VARCHAR" />
|
|
|
+ <result column="ex_field4" property="exField4" jdbcType="VARCHAR" />
|
|
|
+ <result column="ex_field5" property="exField5" jdbcType="VARCHAR" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Base_Column_List" >
|
|
|
+ wx_pay_sn, merch_sn, merch_name, plat_sn, plat_name, third_party_merch_code, third_party_merch_name,
|
|
|
+ appid, mch_id, out_trade_no, transaction_id, customs, mch_customs_no, duty, action_type,
|
|
|
+ sub_order_no, fee_type, order_fee, transport_fee, product_fee, cert_type, cert_id,
|
|
|
+ name, doc_status, notify_merch, remark, return_code, return_msg, result_code, err_code, err_code_des,
|
|
|
+ creater_sn, create_time, moder_sn, mod_time, tstm, ex_field, ex_field2, ex_field3,
|
|
|
+ ex_field4, ex_field5
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from wx_cb_pay_doc
|
|
|
+ where wx_pay_sn = #{wxPaySn,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
|
|
+ delete from wx_cb_pay_doc
|
|
|
+ where wx_pay_sn = #{wxPaySn,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <insert id="insertSelective" parameterType="com.emato.cuspay.dao.data.wx.WxCbPayDoc" >
|
|
|
+ insert into wx_cb_pay_doc
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="wxPaySn != null" >
|
|
|
+ wx_pay_sn,
|
|
|
+ </if>
|
|
|
+ <if test="merchSn != null" >
|
|
|
+ merch_sn,
|
|
|
+ </if>
|
|
|
+ <if test="merchName != null" >
|
|
|
+ merch_name,
|
|
|
+ </if>
|
|
|
+ <if test="platSn != null" >
|
|
|
+ plat_sn,
|
|
|
+ </if>
|
|
|
+ <if test="platName != null" >
|
|
|
+ plat_name,
|
|
|
+ </if>
|
|
|
+ <if test="thirdPartyMerchCode != null" >
|
|
|
+ third_party_merch_code,
|
|
|
+ </if>
|
|
|
+ <if test="thirdPartyMerchName != null" >
|
|
|
+ third_party_merch_name,
|
|
|
+ </if>
|
|
|
+ <if test="appid != null" >
|
|
|
+ appid,
|
|
|
+ </if>
|
|
|
+ <if test="mchId != null" >
|
|
|
+ mch_id,
|
|
|
+ </if>
|
|
|
+ <if test="outTradeNo != null" >
|
|
|
+ out_trade_no,
|
|
|
+ </if>
|
|
|
+ <if test="transactionId != null" >
|
|
|
+ transaction_id,
|
|
|
+ </if>
|
|
|
+ <if test="customs != null" >
|
|
|
+ customs,
|
|
|
+ </if>
|
|
|
+ <if test="mchCustomsNo != null" >
|
|
|
+ mch_customs_no,
|
|
|
+ </if>
|
|
|
+ <if test="duty != null" >
|
|
|
+ duty,
|
|
|
+ </if>
|
|
|
+ <if test="actionType != null" >
|
|
|
+ action_type,
|
|
|
+ </if>
|
|
|
+ <if test="subOrderNo != null" >
|
|
|
+ sub_order_no,
|
|
|
+ </if>
|
|
|
+ <if test="feeType != null" >
|
|
|
+ fee_type,
|
|
|
+ </if>
|
|
|
+ <if test="orderFee != null" >
|
|
|
+ order_fee,
|
|
|
+ </if>
|
|
|
+ <if test="transportFee != null" >
|
|
|
+ transport_fee,
|
|
|
+ </if>
|
|
|
+ <if test="productFee != null" >
|
|
|
+ product_fee,
|
|
|
+ </if>
|
|
|
+ <if test="certType != null" >
|
|
|
+ cert_type,
|
|
|
+ </if>
|
|
|
+ <if test="certId != null" >
|
|
|
+ cert_id,
|
|
|
+ </if>
|
|
|
+ <if test="name != null" >
|
|
|
+ name,
|
|
|
+ </if>
|
|
|
+ <if test="docStatus != null" >
|
|
|
+ doc_status,
|
|
|
+ </if>
|
|
|
+ <if test="notifyMerch != null">
|
|
|
+ notify_merch,
|
|
|
+ </if>
|
|
|
+ <if test="remark != null" >
|
|
|
+ remark,
|
|
|
+ </if>
|
|
|
+ <if test="returnCode != null" >
|
|
|
+ return_code,
|
|
|
+ </if>
|
|
|
+ <if test="returnMsg != null" >
|
|
|
+ return_msg,
|
|
|
+ </if>
|
|
|
+ <if test="resultCode != null" >
|
|
|
+ result_code,
|
|
|
+ </if>
|
|
|
+ <if test="errCode != null" >
|
|
|
+ err_code,
|
|
|
+ </if>
|
|
|
+ <if test="errCodeDes != null" >
|
|
|
+ err_code_des,
|
|
|
+ </if>
|
|
|
+ <if test="createrSn != null" >
|
|
|
+ creater_sn,
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null" >
|
|
|
+ create_time,
|
|
|
+ </if>
|
|
|
+ <if test="moderSn != null" >
|
|
|
+ moder_sn,
|
|
|
+ </if>
|
|
|
+ <if test="modTime != null" >
|
|
|
+ mod_time,
|
|
|
+ </if>
|
|
|
+ <if test="tstm != null" >
|
|
|
+ tstm,
|
|
|
+ </if>
|
|
|
+ <if test="exField != null" >
|
|
|
+ ex_field,
|
|
|
+ </if>
|
|
|
+ <if test="exField2 != null" >
|
|
|
+ ex_field2,
|
|
|
+ </if>
|
|
|
+ <if test="exField3 != null" >
|
|
|
+ ex_field3,
|
|
|
+ </if>
|
|
|
+ <if test="exField4 != null" >
|
|
|
+ ex_field4,
|
|
|
+ </if>
|
|
|
+ <if test="exField5 != null" >
|
|
|
+ ex_field5,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="wxPaySn != null" >
|
|
|
+ #{wxPaySn,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="merchSn != null" >
|
|
|
+ #{merchSn,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="merchName != null" >
|
|
|
+ #{merchName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="platSn != null" >
|
|
|
+ #{platSn,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="platName != null" >
|
|
|
+ #{platName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="thirdPartyMerchCode != null" >
|
|
|
+ #{thirdPartyMerchCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="thirdPartyMerchName != null" >
|
|
|
+ #{thirdPartyMerchName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="appid != null" >
|
|
|
+ #{appid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="mchId != null" >
|
|
|
+ #{mchId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="outTradeNo != null" >
|
|
|
+ #{outTradeNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="transactionId != null" >
|
|
|
+ #{transactionId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="customs != null" >
|
|
|
+ #{customs,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="mchCustomsNo != null" >
|
|
|
+ #{mchCustomsNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="duty != null" >
|
|
|
+ #{duty,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="actionType != null" >
|
|
|
+ #{actionType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="subOrderNo != null" >
|
|
|
+ #{subOrderNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="feeType != null" >
|
|
|
+ #{feeType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orderFee != null" >
|
|
|
+ #{orderFee,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="transportFee != null" >
|
|
|
+ #{transportFee,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="productFee != null" >
|
|
|
+ #{productFee,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="certType != null" >
|
|
|
+ #{certType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="certId != null" >
|
|
|
+ #{certId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="name != null" >
|
|
|
+ #{name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="docStatus != null" >
|
|
|
+ #{docStatus,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="notifyMerch != null">
|
|
|
+ #{notifyMerch, jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="remark != null" >
|
|
|
+ #{remark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="returnCode != null" >
|
|
|
+ #{returnCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="returnMsg != null" >
|
|
|
+ #{returnMsg,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="resultCode != null" >
|
|
|
+ #{resultCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="errCode != null" >
|
|
|
+ #{errCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="errCodeDes != null" >
|
|
|
+ #{errCodeDes,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createrSn != null" >
|
|
|
+ #{createrSn,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null" >
|
|
|
+ #{createTime,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="moderSn != null" >
|
|
|
+ #{moderSn,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="modTime != null" >
|
|
|
+ #{modTime,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="tstm != null" >
|
|
|
+ #{tstm,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="exField != null" >
|
|
|
+ #{exField,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="exField2 != null" >
|
|
|
+ #{exField2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="exField3 != null" >
|
|
|
+ #{exField3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="exField4 != null" >
|
|
|
+ #{exField4,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="exField5 != null" >
|
|
|
+ #{exField5,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.emato.cuspay.dao.data.wx.WxCbPayDoc" >
|
|
|
+ update wx_cb_pay_doc
|
|
|
+ <set >
|
|
|
+ <if test="merchSn != null" >
|
|
|
+ merch_sn = #{merchSn,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="merchName != null" >
|
|
|
+ merch_name = #{merchName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="platSn != null" >
|
|
|
+ plat_sn = #{platSn,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="platName != null" >
|
|
|
+ plat_name = #{platName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="thirdPartyMerchCode != null" >
|
|
|
+ third_party_merch_code = #{thirdPartyMerchCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="thirdPartyMerchName != null" >
|
|
|
+ third_party_merch_name = #{thirdPartyMerchName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="appid != null" >
|
|
|
+ appid = #{appid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="mchId != null" >
|
|
|
+ mch_id = #{mchId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="outTradeNo != null" >
|
|
|
+ out_trade_no = #{outTradeNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="transactionId != null" >
|
|
|
+ transaction_id = #{transactionId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="customs != null" >
|
|
|
+ customs = #{customs,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="mchCustomsNo != null" >
|
|
|
+ mch_customs_no = #{mchCustomsNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="duty != null" >
|
|
|
+ duty = #{duty,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="actionType != null" >
|
|
|
+ action_type = #{actionType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="subOrderNo != null" >
|
|
|
+ sub_order_no = #{subOrderNo,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="feeType != null" >
|
|
|
+ fee_type = #{feeType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="orderFee != null" >
|
|
|
+ order_fee = #{orderFee,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="transportFee != null" >
|
|
|
+ transport_fee = #{transportFee,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="productFee != null" >
|
|
|
+ product_fee = #{productFee,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="certType != null" >
|
|
|
+ cert_type = #{certType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="certId != null" >
|
|
|
+ cert_id = #{certId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="name != null" >
|
|
|
+ name = #{name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="docStatus != null" >
|
|
|
+ doc_status = #{docStatus,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="notifyMerch != null">
|
|
|
+ notify_merch = #{notifyMerch,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="remark != null" >
|
|
|
+ remark = #{remark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="returnCode != null" >
|
|
|
+ return_code = #{returnCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="returnMsg != null" >
|
|
|
+ return_msg = #{returnMsg,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="resultCode != null" >
|
|
|
+ result_code = #{resultCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="errCode != null" >
|
|
|
+ err_code = #{errCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="errCodeDes != null" >
|
|
|
+ err_code_des = #{errCodeDes,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createrSn != null" >
|
|
|
+ creater_sn = #{createrSn,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null" >
|
|
|
+ create_time = #{createTime,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="moderSn != null" >
|
|
|
+ moder_sn = #{moderSn,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="modTime != null" >
|
|
|
+ mod_time = #{modTime,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="tstm != null" >
|
|
|
+ tstm = #{tstm,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="exField != null" >
|
|
|
+ ex_field = #{exField,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="exField2 != null" >
|
|
|
+ ex_field2 = #{exField2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="exField3 != null" >
|
|
|
+ ex_field3 = #{exField3,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="exField4 != null" >
|
|
|
+ ex_field4 = #{exField4,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="exField5 != null" >
|
|
|
+ ex_field5 = #{exField5,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where wx_pay_sn = #{wxPaySn,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="selectBeDeclared" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from wx_cb_pay_doc
|
|
|
+ where doc_status = '00' limit 20
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectNotify" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
|
|
+ SELECT
|
|
|
+ <include refid="Base_Column_List"/>
|
|
|
+ FROM wx_cb_pay_doc WHERE doc_status != '00' AND notify_merch = 'Y' limit #{limit}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="insertBatch">
|
|
|
+ INSERT wx_cb_pay_doc
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ wx_pay_sn,
|
|
|
+ merch_sn,
|
|
|
+ merch_name,
|
|
|
+ plat_sn,
|
|
|
+ plat_name,
|
|
|
+ third_party_merch_code,
|
|
|
+ third_party_merch_name,
|
|
|
+ appid,
|
|
|
+ mch_id,
|
|
|
+ out_trade_no,
|
|
|
+ transaction_id,
|
|
|
+ customs,
|
|
|
+ mch_customs_no,
|
|
|
+ duty,
|
|
|
+ action_type,
|
|
|
+ sub_order_no,
|
|
|
+ fee_type,
|
|
|
+ order_fee,
|
|
|
+ transport_fee,
|
|
|
+ product_fee,
|
|
|
+ cert_type,
|
|
|
+ cert_id,
|
|
|
+ name,
|
|
|
+ doc_status,
|
|
|
+ notify_merch,
|
|
|
+ remark,
|
|
|
+ return_code,
|
|
|
+ return_msg,
|
|
|
+ result_code,
|
|
|
+ err_code,
|
|
|
+ err_code_des,
|
|
|
+ creater_sn,
|
|
|
+ create_time,
|
|
|
+ moder_sn,
|
|
|
+ mod_time,
|
|
|
+ ex_field,
|
|
|
+ ex_field2,
|
|
|
+ ex_field3,
|
|
|
+ ex_field4,
|
|
|
+ ex_field5,
|
|
|
+ </trim>
|
|
|
+ VALUES
|
|
|
+ <foreach collection="list" item="item" index="index" separator=",">
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ #{wxPaySn,jdbcType=VARCHAR},
|
|
|
+ #{merchSn,jdbcType=VARCHAR},
|
|
|
+ #{merchName,jdbcType=VARCHAR},
|
|
|
+ #{platSn,jdbcType=VARCHAR},
|
|
|
+ #{platName,jdbcType=VARCHAR},
|
|
|
+ #{thirdPartyMerchCode,jdbcType=VARCHAR},
|
|
|
+ #{thirdPartyMerchName,jdbcType=VARCHAR},
|
|
|
+ #{appid,jdbcType=VARCHAR},
|
|
|
+ #{mchId,jdbcType=VARCHAR},
|
|
|
+ #{outTradeNo,jdbcType=VARCHAR},
|
|
|
+ #{transactionId,jdbcType=VARCHAR},
|
|
|
+ #{customs,jdbcType=VARCHAR},
|
|
|
+ #{mchCustomsNo,jdbcType=VARCHAR},
|
|
|
+ #{duty,jdbcType=INTEGER},
|
|
|
+ #{actionType,jdbcType=VARCHAR},
|
|
|
+ #{subOrderNo,jdbcType=VARCHAR},
|
|
|
+ #{feeType,jdbcType=VARCHAR},
|
|
|
+ #{orderFee,jdbcType=INTEGER},
|
|
|
+ #{transportFee,jdbcType=INTEGER},
|
|
|
+ #{productFee,jdbcType=INTEGER},
|
|
|
+ #{certType,jdbcType=VARCHAR},
|
|
|
+ #{certId,jdbcType=VARCHAR},
|
|
|
+ #{name,jdbcType=VARCHAR},
|
|
|
+ #{docStatus,jdbcType=CHAR},
|
|
|
+ #{notifyMerch, jdbcType=CHAR},
|
|
|
+ #{remark,jdbcType=VARCHAR},
|
|
|
+ #{returnCode,jdbcType=VARCHAR},
|
|
|
+ #{returnMsg,jdbcType=VARCHAR},
|
|
|
+ #{resultCode,jdbcType=VARCHAR},
|
|
|
+ #{errCode,jdbcType=VARCHAR},
|
|
|
+ #{errCodeDes,jdbcType=VARCHAR},
|
|
|
+ #{createrSn,jdbcType=VARCHAR},
|
|
|
+ #{createTime,jdbcType=VARCHAR},
|
|
|
+ #{moderSn,jdbcType=VARCHAR},
|
|
|
+ #{modTime,jdbcType=VARCHAR},
|
|
|
+ #{exField,jdbcType=VARCHAR},
|
|
|
+ #{exField2,jdbcType=VARCHAR},
|
|
|
+ #{exField3,jdbcType=VARCHAR},
|
|
|
+ #{exField4,jdbcType=VARCHAR},
|
|
|
+ #{exField5,jdbcType=VARCHAR},
|
|
|
+ </trim>
|
|
|
+ </foreach>
|
|
|
+ </select>
|
|
|
+</mapper>
|