CustomermergeMapper.xml 1.94 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.CustomermergeMapper" >
  <resultMap id="BaseResultMap" type="cn.runsa.crmapp.customer.entity.Customermerge" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <result column="CST_TARGET" property="cstTarget" jdbcType="BIGINT" />
    <result column="CST_SOURCE" property="cstSource" jdbcType="BIGINT" />
    <result column="REC_TIME" property="recTime" jdbcType="TIMESTAMP" />
  </resultMap>
  <insert id="insert" parameterType="cn.runsa.crmapp.customer.entity.Customermerge" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into crm_customer_merge (`CST_TARGET`, `CST_SOURCE`, `REC_TIME`
      )
    values (#{cstTarget,jdbcType=BIGINT}, #{cstSource,jdbcType=BIGINT}, #{recTime,jdbcType=TIMESTAMP}
      )
  </insert>
  <insert id="insertSelective" parameterType="cn.runsa.crmapp.customer.entity.Customermerge" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into crm_customer_merge
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="cstTarget != null" >
        `CST_TARGET`,
      </if>
      <if test="cstSource != null" >
        `CST_SOURCE`,
      </if>
      <if test="recTime != null" >
        `REC_TIME`,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="cstTarget != null" >
        #{cstTarget,jdbcType=BIGINT},
      </if>
      <if test="cstSource != null" >
        #{cstSource,jdbcType=BIGINT},
      </if>
      <if test="recTime != null" >
        #{recTime,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
</mapper>