TdBWxConfigMapper.xml 7.4 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="com.zteits.pay.mapper.TdBWxConfigMapper" >
  <resultMap id="BaseResultMap" type="com.zteits.pay.domain.TdBWxConfig" >
    <id column="id" property="id" jdbcType="BIGINT" />
    <result column="appid" property="appid" jdbcType="VARCHAR" />
    <result column="app_secret" property="appSecret" jdbcType="VARCHAR" />
    <result column="is_encrypt_message" property="isEncryptMessage" jdbcType="INTEGER" />
    <result column="encoding_aes_key" property="encodingAesKey" jdbcType="VARCHAR" />
    <result column="mchid" property="mchid" jdbcType="INTEGER" />
    <result column="pay_api_secret" property="payApiSecret" jdbcType="VARCHAR" />
    <result column="data_state" property="dataState" jdbcType="INTEGER" />
    <result column="is_pay_noCredit" property="isPayNocredit" jdbcType="INTEGER" />
    <result column="remark" property="remark" jdbcType="VARCHAR" />
    <result column="create_op" property="createOp" jdbcType="INTEGER" />
    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
    <result column="modify_op" property="modifyOp" jdbcType="INTEGER" />
    <result column="modify_date" property="modifyDate" jdbcType="TIMESTAMP" />
  </resultMap>
  <sql id="Base_Column_List" >
    id, appid, app_secret, is_encrypt_message, encoding_aes_key, mchid, pay_api_secret, 
    data_state, is_pay_noCredit, remark, create_op, create_date, modify_op, modify_date
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
    select 
    <include refid="Base_Column_List" />
    from td_b_wx_config
    where id = #{id,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
    delete from td_b_wx_config
    where id = #{id,jdbcType=BIGINT}
  </delete>
  <insert id="insert" parameterType="com.zteits.pay.domain.TdBWxConfig" >
    insert into td_b_wx_config (id, appid, app_secret, 
      is_encrypt_message, encoding_aes_key, mchid, 
      pay_api_secret, data_state, is_pay_noCredit, 
      remark, create_op, create_date, 
      modify_op, modify_date)
    values (#{id,jdbcType=BIGINT}, #{appid,jdbcType=VARCHAR}, #{appSecret,jdbcType=VARCHAR}, 
      #{isEncryptMessage,jdbcType=INTEGER}, #{encodingAesKey,jdbcType=VARCHAR}, #{mchid,jdbcType=INTEGER}, 
      #{payApiSecret,jdbcType=VARCHAR}, #{dataState,jdbcType=INTEGER}, #{isPayNocredit,jdbcType=INTEGER}, 
      #{remark,jdbcType=VARCHAR}, #{createOp,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}, 
      #{modifyOp,jdbcType=INTEGER}, #{modifyDate,jdbcType=TIMESTAMP})
  </insert>
  <insert id="insertSelective" parameterType="com.zteits.pay.domain.TdBWxConfig" >
    insert into td_b_wx_config
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        id,
      </if>
      <if test="appid != null" >
        appid,
      </if>
      <if test="appSecret != null" >
        app_secret,
      </if>
      <if test="isEncryptMessage != null" >
        is_encrypt_message,
      </if>
      <if test="encodingAesKey != null" >
        encoding_aes_key,
      </if>
      <if test="mchid != null" >
        mchid,
      </if>
      <if test="payApiSecret != null" >
        pay_api_secret,
      </if>
      <if test="dataState != null" >
        data_state,
      </if>
      <if test="isPayNocredit != null" >
        is_pay_noCredit,
      </if>
      <if test="remark != null" >
        remark,
      </if>
      <if test="createOp != null" >
        create_op,
      </if>
      <if test="createDate != null" >
        create_date,
      </if>
      <if test="modifyOp != null" >
        modify_op,
      </if>
      <if test="modifyDate != null" >
        modify_date,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        #{id,jdbcType=BIGINT},
      </if>
      <if test="appid != null" >
        #{appid,jdbcType=VARCHAR},
      </if>
      <if test="appSecret != null" >
        #{appSecret,jdbcType=VARCHAR},
      </if>
      <if test="isEncryptMessage != null" >
        #{isEncryptMessage,jdbcType=INTEGER},
      </if>
      <if test="encodingAesKey != null" >
        #{encodingAesKey,jdbcType=VARCHAR},
      </if>
      <if test="mchid != null" >
        #{mchid,jdbcType=INTEGER},
      </if>
      <if test="payApiSecret != null" >
        #{payApiSecret,jdbcType=VARCHAR},
      </if>
      <if test="dataState != null" >
        #{dataState,jdbcType=INTEGER},
      </if>
      <if test="isPayNocredit != null" >
        #{isPayNocredit,jdbcType=INTEGER},
      </if>
      <if test="remark != null" >
        #{remark,jdbcType=VARCHAR},
      </if>
      <if test="createOp != null" >
        #{createOp,jdbcType=INTEGER},
      </if>
      <if test="createDate != null" >
        #{createDate,jdbcType=TIMESTAMP},
      </if>
      <if test="modifyOp != null" >
        #{modifyOp,jdbcType=INTEGER},
      </if>
      <if test="modifyDate != null" >
        #{modifyDate,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.zteits.pay.domain.TdBWxConfig" >
    update td_b_wx_config
    <set >
      <if test="appid != null" >
        appid = #{appid,jdbcType=VARCHAR},
      </if>
      <if test="appSecret != null" >
        app_secret = #{appSecret,jdbcType=VARCHAR},
      </if>
      <if test="isEncryptMessage != null" >
        is_encrypt_message = #{isEncryptMessage,jdbcType=INTEGER},
      </if>
      <if test="encodingAesKey != null" >
        encoding_aes_key = #{encodingAesKey,jdbcType=VARCHAR},
      </if>
      <if test="mchid != null" >
        mchid = #{mchid,jdbcType=INTEGER},
      </if>
      <if test="payApiSecret != null" >
        pay_api_secret = #{payApiSecret,jdbcType=VARCHAR},
      </if>
      <if test="dataState != null" >
        data_state = #{dataState,jdbcType=INTEGER},
      </if>
      <if test="isPayNocredit != null" >
        is_pay_noCredit = #{isPayNocredit,jdbcType=INTEGER},
      </if>
      <if test="remark != null" >
        remark = #{remark,jdbcType=VARCHAR},
      </if>
      <if test="createOp != null" >
        create_op = #{createOp,jdbcType=INTEGER},
      </if>
      <if test="createDate != null" >
        create_date = #{createDate,jdbcType=TIMESTAMP},
      </if>
      <if test="modifyOp != null" >
        modify_op = #{modifyOp,jdbcType=INTEGER},
      </if>
      <if test="modifyDate != null" >
        modify_date = #{modifyDate,jdbcType=TIMESTAMP},
      </if>
    </set>
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.zteits.pay.domain.TdBWxConfig" >
    update td_b_wx_config
    set appid = #{appid,jdbcType=VARCHAR},
      app_secret = #{appSecret,jdbcType=VARCHAR},
      is_encrypt_message = #{isEncryptMessage,jdbcType=INTEGER},
      encoding_aes_key = #{encodingAesKey,jdbcType=VARCHAR},
      mchid = #{mchid,jdbcType=INTEGER},
      pay_api_secret = #{payApiSecret,jdbcType=VARCHAR},
      data_state = #{dataState,jdbcType=INTEGER},
      is_pay_noCredit = #{isPayNocredit,jdbcType=INTEGER},
      remark = #{remark,jdbcType=VARCHAR},
      create_op = #{createOp,jdbcType=INTEGER},
      create_date = #{createDate,jdbcType=TIMESTAMP},
      modify_op = #{modifyOp,jdbcType=INTEGER},
      modify_date = #{modifyDate,jdbcType=TIMESTAMP}
    where id = #{id,jdbcType=BIGINT}
  </update>
</mapper>