TdGFirstGuideInfoConfigMapper.xml 6.66 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.park.mapper.TdGFirstGuideInfoConfigMapper" >
  <resultMap id="BaseResultMap" type="com.zteits.park.domain.TdGFirstGuideInfoConfig" >
    <id column="id" property="id" jdbcType="BIGINT" />
    <result column="guide_no" property="guideNo" jdbcType="VARCHAR" />
    <result column="pl_no" property="plNo" jdbcType="VARCHAR" />
    <result column="pl_name_height" property="plNameHeight" jdbcType="INTEGER" />
    <result column="pl_name_width" property="plNameWidth" jdbcType="INTEGER" />
    <result column="free_height" property="freeHeight" jdbcType="INTEGER" />
    <result column="free_width" property="freeWidth" jdbcType="INTEGER" />
    <result column="data_status" property="dataStatus" jdbcType="INTEGER" />
    <result column="create_op" property="createOp" jdbcType="BIGINT" />
    <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
    <result column="modify_op" property="modifyOp" jdbcType="BIGINT" />
    <result column="modify_time" property="modifyTime" jdbcType="TIMESTAMP" />
  </resultMap>
  <sql id="Base_Column_List" >
    id, guide_no, pl_no, pl_name_height, pl_name_width, free_height, free_width, data_status, 
    create_op, create_time, modify_op, modify_time
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
    select 
    <include refid="Base_Column_List" />
    from td_g_first_guide_info_config
    where id = #{id,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
    delete from td_g_first_guide_info_config
    where id = #{id,jdbcType=BIGINT}
  </delete>
  <insert id="insert" parameterType="com.zteits.park.domain.TdGFirstGuideInfoConfig" >
    <selectKey resultType="java.lang.Long" keyProperty="id" order="AFTER" >
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into td_g_first_guide_info_config (guide_no, pl_no, pl_name_height, 
      pl_name_width, free_height, free_width, 
      data_status, create_op, create_time, 
      modify_op, modify_time)
    values (#{guideNo,jdbcType=VARCHAR}, #{plNo,jdbcType=VARCHAR}, #{plNameHeight,jdbcType=INTEGER}, 
      #{plNameWidth,jdbcType=INTEGER}, #{freeHeight,jdbcType=INTEGER}, #{freeWidth,jdbcType=INTEGER}, 
      #{dataStatus,jdbcType=INTEGER}, #{createOp,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, 
      #{modifyOp,jdbcType=BIGINT}, #{modifyTime,jdbcType=TIMESTAMP})
  </insert>
  <insert id="insertSelective" parameterType="com.zteits.park.domain.TdGFirstGuideInfoConfig" >
    <selectKey resultType="java.lang.Long" keyProperty="id" order="AFTER" >
      SELECT LAST_INSERT_ID()
    </selectKey>
    insert into td_g_first_guide_info_config
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="guideNo != null" >
        guide_no,
      </if>
      <if test="plNo != null" >
        pl_no,
      </if>
      <if test="plNameHeight != null" >
        pl_name_height,
      </if>
      <if test="plNameWidth != null" >
        pl_name_width,
      </if>
      <if test="freeHeight != null" >
        free_height,
      </if>
      <if test="freeWidth != null" >
        free_width,
      </if>
      <if test="dataStatus != null" >
        data_status,
      </if>
      <if test="createOp != null" >
        create_op,
      </if>
      <if test="createTime != null" >
        create_time,
      </if>
      <if test="modifyOp != null" >
        modify_op,
      </if>
      <if test="modifyTime != null" >
        modify_time,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="guideNo != null" >
        #{guideNo,jdbcType=VARCHAR},
      </if>
      <if test="plNo != null" >
        #{plNo,jdbcType=VARCHAR},
      </if>
      <if test="plNameHeight != null" >
        #{plNameHeight,jdbcType=INTEGER},
      </if>
      <if test="plNameWidth != null" >
        #{plNameWidth,jdbcType=INTEGER},
      </if>
      <if test="freeHeight != null" >
        #{freeHeight,jdbcType=INTEGER},
      </if>
      <if test="freeWidth != null" >
        #{freeWidth,jdbcType=INTEGER},
      </if>
      <if test="dataStatus != null" >
        #{dataStatus,jdbcType=INTEGER},
      </if>
      <if test="createOp != null" >
        #{createOp,jdbcType=BIGINT},
      </if>
      <if test="createTime != null" >
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="modifyOp != null" >
        #{modifyOp,jdbcType=BIGINT},
      </if>
      <if test="modifyTime != null" >
        #{modifyTime,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.zteits.park.domain.TdGFirstGuideInfoConfig" >
    update td_g_first_guide_info_config
    <set >
      <if test="guideNo != null" >
        guide_no = #{guideNo,jdbcType=VARCHAR},
      </if>
      <if test="plNo != null" >
        pl_no = #{plNo,jdbcType=VARCHAR},
      </if>
      <if test="plNameHeight != null" >
        pl_name_height = #{plNameHeight,jdbcType=INTEGER},
      </if>
      <if test="plNameWidth != null" >
        pl_name_width = #{plNameWidth,jdbcType=INTEGER},
      </if>
      <if test="freeHeight != null" >
        free_height = #{freeHeight,jdbcType=INTEGER},
      </if>
      <if test="freeWidth != null" >
        free_width = #{freeWidth,jdbcType=INTEGER},
      </if>
      <if test="dataStatus != null" >
        data_status = #{dataStatus,jdbcType=INTEGER},
      </if>
      <if test="createOp != null" >
        create_op = #{createOp,jdbcType=BIGINT},
      </if>
      <if test="createTime != null" >
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="modifyOp != null" >
        modify_op = #{modifyOp,jdbcType=BIGINT},
      </if>
      <if test="modifyTime != null" >
        modify_time = #{modifyTime,jdbcType=TIMESTAMP},
      </if>
    </set>
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.zteits.park.domain.TdGFirstGuideInfoConfig" >
    update td_g_first_guide_info_config
    set guide_no = #{guideNo,jdbcType=VARCHAR},
      pl_no = #{plNo,jdbcType=VARCHAR},
      pl_name_height = #{plNameHeight,jdbcType=INTEGER},
      pl_name_width = #{plNameWidth,jdbcType=INTEGER},
      free_height = #{freeHeight,jdbcType=INTEGER},
      free_width = #{freeWidth,jdbcType=INTEGER},
      data_status = #{dataStatus,jdbcType=INTEGER},
      create_op = #{createOp,jdbcType=BIGINT},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      modify_op = #{modifyOp,jdbcType=BIGINT},
      modify_time = #{modifyTime,jdbcType=TIMESTAMP}
    where id = #{id,jdbcType=BIGINT}
  </update>
</mapper>