CustomerVerifyMapper.xml 2.9 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.CustomerVerifyMapper">
  <resultMap id="BaseResultMap" type="cn.runsa.crmapp.customer.entity.CustomerVerify">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <result column="CST_ID" jdbcType="BIGINT" property="cstId" />
    <result column="VRFY_TYPE" jdbcType="VARCHAR" property="vrfyType" />
    <result column="VRFY_USER" jdbcType="BIGINT" property="vrfyUser" />
    <result column="S_TIME" jdbcType="TIMESTAMP" property="sTime" />
    <result column="E_TIME" jdbcType="TIMESTAMP" property="eTime" />
    <result column="REC_TIME" jdbcType="TIMESTAMP" property="recTime" />
    <result column="REMARK" jdbcType="VARCHAR" property="remark" />
  </resultMap>
  <insert id="insert" parameterType="cn.runsa.crmapp.customer.entity.CustomerVerify">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into crm_customer_verify (`CST_ID`, `VRFY_TYPE`, `VRFY_USER`, 
      `S_TIME`, `E_TIME`, `REC_TIME`, 
      `REMARK`)
    values (#{cstId,jdbcType=BIGINT}, #{vrfyType,jdbcType=VARCHAR}, #{vrfyUser,jdbcType=BIGINT}, 
      #{sTime,jdbcType=TIMESTAMP}, #{eTime,jdbcType=TIMESTAMP}, #{recTime,jdbcType=TIMESTAMP}, 
      #{remark,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" parameterType="cn.runsa.crmapp.customer.entity.CustomerVerify">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into crm_customer_verify
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="cstId != null">
        `CST_ID`,
      </if>
      <if test="vrfyType != null">
        `VRFY_TYPE`,
      </if>
      <if test="vrfyUser != null">
        `VRFY_USER`,
      </if>
      <if test="sTime != null">
        `S_TIME`,
      </if>
      <if test="eTime != null">
        `E_TIME`,
      </if>
      <if test="recTime != null">
        `REC_TIME`,
      </if>
      <if test="remark != null">
        `REMARK`,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="cstId != null">
        #{cstId,jdbcType=BIGINT},
      </if>
      <if test="vrfyType != null">
        #{vrfyType,jdbcType=VARCHAR},
      </if>
      <if test="vrfyUser != null">
        #{vrfyUser,jdbcType=BIGINT},
      </if>
      <if test="sTime != null">
        #{sTime,jdbcType=TIMESTAMP},
      </if>
      <if test="eTime != null">
        #{eTime,jdbcType=TIMESTAMP},
      </if>
      <if test="recTime != null">
        #{recTime,jdbcType=TIMESTAMP},
      </if>
      <if test="remark != null">
        #{remark,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
</mapper>