123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292 |
- <?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.WxPayErrorMapper" >
- <resultMap id="BaseResultMap" type="com.emato.cuspay.wx.entity.WxPayError" >
- <id column="error_sn" property="errorSn" jdbcType="VARCHAR" />
- <result 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="sub_order_no" property="subOrderNo" jdbcType="VARCHAR" />
- <result column="customs" property="customs" jdbcType="VARCHAR" />
- <result column="err_code" property="errCode" jdbcType="VARCHAR" />
- <result column="err_msg" property="errMsg" 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" />
- </resultMap>
- <sql id="Base_Column_List" >
- error_sn, 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, sub_order_no,
- customs, err_code, err_msg, creater_sn, create_time, moder_sn, mod_time, tstm
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
- select
- <include refid="Base_Column_List" />
- from wx_pay_error
- where error_sn = #{errorSn,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
- delete from wx_pay_error
- where error_sn = #{errorSn,jdbcType=VARCHAR}
- </delete>
- <insert id="insertSelective" parameterType="com.emato.cuspay.wx.entity.WxPayError" >
- insert into wx_pay_error
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="errorSn != null" >
- error_sn,
- </if>
- <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="subOrderNo != null" >
- sub_order_no,
- </if>
- <if test="customs != null" >
- customs,
- </if>
- <if test="errCode != null" >
- err_code,
- </if>
- <if test="errMsg != null" >
- err_msg,
- </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>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="errorSn != null" >
- #{errorSn,jdbcType=VARCHAR},
- </if>
- <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="subOrderNo != null" >
- #{subOrderNo,jdbcType=VARCHAR},
- </if>
- <if test="customs != null" >
- #{customs,jdbcType=VARCHAR},
- </if>
- <if test="errCode != null" >
- #{errCode,jdbcType=VARCHAR},
- </if>
- <if test="errMsg != null" >
- #{errMsg,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>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.emato.cuspay.wx.entity.WxPayError" >
- update wx_pay_error
- <set >
- <if test="wxPaySn != null" >
- wx_pay_sn = #{wxPaySn,jdbcType=VARCHAR},
- </if>
- <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="subOrderNo != null" >
- sub_order_no = #{subOrderNo,jdbcType=VARCHAR},
- </if>
- <if test="customs != null" >
- customs = #{customs,jdbcType=VARCHAR},
- </if>
- <if test="errCode != null" >
- err_code = #{errCode,jdbcType=VARCHAR},
- </if>
- <if test="errMsg != null" >
- err_msg = #{errMsg,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>
- </set>
- where error_sn = #{errorSn,jdbcType=VARCHAR}
- </update>
- <insert id="insertWxPayErrorBatch" parameterType="java.util.List">
- insert into wx_pay_error
- <trim prefix="(" suffix=")" suffixOverrides=",">
- error_sn,
- 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,
- sub_order_no,
- customs,
- err_code,
- err_msg,
- creater_sn,
- create_time,
- moder_sn,
- mod_time
- </trim>
- VALUES
- <foreach collection="list" item="item" index="index" separator=",">
- <trim prefix="(" suffix=")" suffixOverrides=",">
- #{item.errorSn,jdbcType=VARCHAR},
- #{item.wxPaySn,jdbcType=VARCHAR},
- #{item.merchSn,jdbcType=VARCHAR},
- #{item.merchName,jdbcType=VARCHAR},
- #{item.platSn,jdbcType=VARCHAR},
- #{item.platName,jdbcType=VARCHAR},
- #{item.thirdPartyMerchCode,jdbcType=VARCHAR},
- #{item.thirdPartyMerchName,jdbcType=VARCHAR},
- #{item.appid,jdbcType=VARCHAR},
- #{item.mchId,jdbcType=VARCHAR},
- #{item.outTradeNo,jdbcType=VARCHAR},
- #{item.transactionId,jdbcType=VARCHAR},
- #{item.subOrderNo,jdbcType=VARCHAR},
- #{item.customs,jdbcType=VARCHAR},
- #{item.errCode,jdbcType=VARCHAR},
- #{item.errMsg,jdbcType=VARCHAR},
- #{item.createrSn,jdbcType=VARCHAR},
- #{item.createTime,jdbcType=VARCHAR},
- #{item.moderSn,jdbcType=VARCHAR},
- #{item.modTime,jdbcType=VARCHAR},
- </trim>
- </foreach>
- </insert>
- </mapper>
|