CustomerAutoMapper.xml 2.41 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.goods.mapper.CustomerAutoMapper" >
  <resultMap id="BaseResultMap" type="cn.runsa.crmapp.goods.entity.CustomerAuto" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <result column="CST_ID" property="cstId" jdbcType="BIGINT" />
    <result column="AUTO_TYPE" property="autoType" jdbcType="VARCHAR" />
    <result column="PLATE_NUM" property="plateNum" jdbcType="VARCHAR" />
    <result column="PROD_DATE" property="prodDate" jdbcType="DATE" />
    <result column="REC_TIME" property="recTime" jdbcType="TIMESTAMP" />
  </resultMap>
  <insert id="insert" parameterType="cn.runsa.crmapp.goods.entity.CustomerAuto" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into crm_customer_auto (`CST_ID`, `AUTO_TYPE`, `PLATE_NUM`, 
      `PROD_DATE`, `REC_TIME`)
    values (#{cstId,jdbcType=BIGINT}, #{autoType,jdbcType=VARCHAR}, #{plateNum,jdbcType=VARCHAR}, 
      #{prodDate,jdbcType=DATE}, #{recTime,jdbcType=TIMESTAMP})
  </insert>
  <insert id="insertSelective" parameterType="cn.runsa.crmapp.goods.entity.CustomerAuto" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into crm_customer_auto
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="cstId != null" >
        `CST_ID`,
      </if>
      <if test="autoType != null" >
        `AUTO_TYPE`,
      </if>
      <if test="plateNum != null" >
        `PLATE_NUM`,
      </if>
      <if test="prodDate != null" >
        `PROD_DATE`,
      </if>
      <if test="recTime != null" >
        `REC_TIME`,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="cstId != null" >
        #{cstId,jdbcType=BIGINT},
      </if>
      <if test="autoType != null" >
        #{autoType,jdbcType=VARCHAR},
      </if>
      <if test="plateNum != null" >
        #{plateNum,jdbcType=VARCHAR},
      </if>
      <if test="prodDate != null" >
        #{prodDate,jdbcType=DATE},
      </if>
      <if test="recTime != null" >
        #{recTime,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
</mapper>