CustomerWxfromMapper.xml 2.62 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="cn.runsa.crmapp.customer.mapper.CustomerWxfromMapper">
  <resultMap id="BaseResultMap" type="cn.runsa.crmapp.customer.entity.CustomerWxfrom">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <result column="GZH_ID" jdbcType="VARCHAR" property="gzhId" />
    <result column="OPEN_ID" jdbcType="VARCHAR" property="openId" />
    <result column="ACTION" jdbcType="TINYINT" property="action" />
    <result column="SCENE" jdbcType="VARCHAR" property="scene" />
    <result column="FROM_ID" jdbcType="VARCHAR" property="fromId" />
    <result column="REC_TIME" jdbcType="TIMESTAMP" property="recTime" />
  </resultMap>
  <insert id="insert" parameterType="cn.runsa.crmapp.customer.entity.CustomerWxfrom">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into crm_customer_wxfrom (`GZH_ID`, `OPEN_ID`, `ACTION`, 
      `SCENE`, `FROM_ID`, `REC_TIME`
      )
    values (#{gzhId,jdbcType=VARCHAR}, #{openId,jdbcType=VARCHAR}, #{action,jdbcType=TINYINT}, 
      #{scene,jdbcType=VARCHAR}, #{fromId,jdbcType=VARCHAR}, #{recTime,jdbcType=TIMESTAMP}
      )
  </insert>
  <insert id="insertSelective" parameterType="cn.runsa.crmapp.customer.entity.CustomerWxfrom">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into crm_customer_wxfrom
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="gzhId != null">
        `GZH_ID`,
      </if>
      <if test="openId != null">
        `OPEN_ID`,
      </if>
      <if test="action != null">
        `ACTION`,
      </if>
      <if test="scene != null">
        `SCENE`,
      </if>
      <if test="fromId != null">
        `FROM_ID`,
      </if>
      <if test="recTime != null">
        `REC_TIME`,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="gzhId != null">
        #{gzhId,jdbcType=VARCHAR},
      </if>
      <if test="openId != null">
        #{openId,jdbcType=VARCHAR},
      </if>
      <if test="action != null">
        #{action,jdbcType=TINYINT},
      </if>
      <if test="scene != null">
        #{scene,jdbcType=VARCHAR},
      </if>
      <if test="fromId != null">
        #{fromId,jdbcType=VARCHAR},
      </if>
      <if test="recTime != null">
        #{recTime,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
</mapper>