TdBTempParklotMapper.xml 2.57 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.TdBTempParklotMapper" >
  <resultMap id="BaseResultMap" type="com.zteits.pay.domain.TdBTempParklot" >
    <result column="pl_no" property="plNo" jdbcType="VARCHAR" />
    <result column="pl_name" property="plName" jdbcType="VARCHAR" />
    <result column="block_no" property="blockNo" jdbcType="BIGINT" />
    <result column="block_name" property="blockName" jdbcType="VARCHAR" />
    <result column="berth_range_no" property="berthRangeNo" jdbcType="VARCHAR" />
    <result column="berth_range_name" property="berthRangeName" jdbcType="VARCHAR" />
    <result column="berths" property="berths" jdbcType="INTEGER" />
  </resultMap>
  <insert id="insert" parameterType="com.zteits.pay.domain.TdBTempParklot" >
    insert into td_b_temp_parkLot (pl_no, pl_name, block_no, 
      block_name, berth_range_no, berth_range_name, 
      berths)
    values (#{plNo,jdbcType=VARCHAR}, #{plName,jdbcType=VARCHAR}, #{blockNo,jdbcType=BIGINT}, 
      #{blockName,jdbcType=VARCHAR}, #{berthRangeNo,jdbcType=VARCHAR}, #{berthRangeName,jdbcType=VARCHAR}, 
      #{berths,jdbcType=INTEGER})
  </insert>
  <insert id="insertSelective" parameterType="com.zteits.pay.domain.TdBTempParklot" >
    insert into td_b_temp_parkLot
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="plNo != null" >
        pl_no,
      </if>
      <if test="plName != null" >
        pl_name,
      </if>
      <if test="blockNo != null" >
        block_no,
      </if>
      <if test="blockName != null" >
        block_name,
      </if>
      <if test="berthRangeNo != null" >
        berth_range_no,
      </if>
      <if test="berthRangeName != null" >
        berth_range_name,
      </if>
      <if test="berths != null" >
        berths,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="plNo != null" >
        #{plNo,jdbcType=VARCHAR},
      </if>
      <if test="plName != null" >
        #{plName,jdbcType=VARCHAR},
      </if>
      <if test="blockNo != null" >
        #{blockNo,jdbcType=BIGINT},
      </if>
      <if test="blockName != null" >
        #{blockName,jdbcType=VARCHAR},
      </if>
      <if test="berthRangeNo != null" >
        #{berthRangeNo,jdbcType=VARCHAR},
      </if>
      <if test="berthRangeName != null" >
        #{berthRangeName,jdbcType=VARCHAR},
      </if>
      <if test="berths != null" >
        #{berths,jdbcType=INTEGER},
      </if>
    </trim>
  </insert>
</mapper>