ParkinglotHeatmapHourMapper.xml 10.5 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.ParkinglotHeatmapHourMapper" >
  <resultMap id="BaseResultMap" type="com.zteits.park.domain.ParkinglotHeatmapHour" >
    <id column="id" property="id" jdbcType="BIGINT" />
    <result column="pl_no" property="plNo" jdbcType="VARCHAR" />
    <result column="pl_name" property="plName" jdbcType="VARCHAR" />
    <result column="pl_province_id" property="plProvinceId" jdbcType="BIGINT" />
    <result column="pl_province_name" property="plProvinceName" jdbcType="VARCHAR" />
    <result column="pl_city_id" property="plCityId" jdbcType="BIGINT" />
    <result column="pl_city_name" property="plCityName" jdbcType="VARCHAR" />
    <result column="pl_country_id" property="plCountryId" jdbcType="BIGINT" />
    <result column="pl_country_name" property="plCountryName" jdbcType="VARCHAR" />
    <result column="lon" property="lon" jdbcType="DECIMAL" />
    <result column="lat" property="lat" jdbcType="DECIMAL" />
    <result column="current_park_count" property="currentParkCount" jdbcType="INTEGER" />
    <result column="ranges" property="ranges" jdbcType="INTEGER" />
    <result column="heatmap_hour" property="heatmapHour" jdbcType="VARCHAR" />
    <result column="heatmap_time" property="heatmapTime" jdbcType="TIMESTAMP" />
    <result column="remark" property="remark" jdbcType="VARCHAR" />
    <result column="data_status" property="dataStatus" jdbcType="INTEGER" />
    <result column="create_empid" property="createEmpid" jdbcType="VARCHAR" />
    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
    <result column="modfiy_empid" property="modfiyEmpid" jdbcType="VARCHAR" />
    <result column="modfiy_date" property="modfiyDate" jdbcType="TIMESTAMP" />
  </resultMap>
  <sql id="Base_Column_List" >
    id, pl_no, pl_name, pl_province_id, pl_province_name, pl_city_id, pl_city_name, pl_country_id, 
    pl_country_name, lon, lat, current_park_count, ranges, heatmap_hour, heatmap_time, 
    remark, data_status, create_empid, create_date, modfiy_empid, modfiy_date
  </sql>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
    select 
    <include refid="Base_Column_List" />
    from parkinglot_heatmap_hour
    where id = #{id,jdbcType=BIGINT}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
    delete from parkinglot_heatmap_hour
    where id = #{id,jdbcType=BIGINT}
  </delete>
  <insert id="insert" parameterType="com.zteits.park.domain.ParkinglotHeatmapHour" >
    insert into parkinglot_heatmap_hour (id, pl_no, pl_name, 
      pl_province_id, pl_province_name, pl_city_id, 
      pl_city_name, pl_country_id, pl_country_name, 
      lon, lat, current_park_count, 
      ranges, heatmap_hour, heatmap_time, 
      remark, data_status, create_empid, 
      create_date, modfiy_empid, modfiy_date
      )
    values (#{id,jdbcType=BIGINT}, #{plNo,jdbcType=VARCHAR}, #{plName,jdbcType=VARCHAR}, 
      #{plProvinceId,jdbcType=BIGINT}, #{plProvinceName,jdbcType=VARCHAR}, #{plCityId,jdbcType=BIGINT}, 
      #{plCityName,jdbcType=VARCHAR}, #{plCountryId,jdbcType=BIGINT}, #{plCountryName,jdbcType=VARCHAR}, 
      #{lon,jdbcType=DECIMAL}, #{lat,jdbcType=DECIMAL}, #{currentParkCount,jdbcType=INTEGER}, 
      #{ranges,jdbcType=INTEGER}, #{heatmapHour,jdbcType=VARCHAR}, #{heatmapTime,jdbcType=TIMESTAMP}, 
      #{remark,jdbcType=VARCHAR}, #{dataStatus,jdbcType=INTEGER}, #{createEmpid,jdbcType=VARCHAR}, 
      #{createDate,jdbcType=TIMESTAMP}, #{modfiyEmpid,jdbcType=VARCHAR}, #{modfiyDate,jdbcType=TIMESTAMP}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.zteits.park.domain.ParkinglotHeatmapHour" >
    insert into parkinglot_heatmap_hour
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        id,
      </if>
      <if test="plNo != null" >
        pl_no,
      </if>
      <if test="plName != null" >
        pl_name,
      </if>
      <if test="plProvinceId != null" >
        pl_province_id,
      </if>
      <if test="plProvinceName != null" >
        pl_province_name,
      </if>
      <if test="plCityId != null" >
        pl_city_id,
      </if>
      <if test="plCityName != null" >
        pl_city_name,
      </if>
      <if test="plCountryId != null" >
        pl_country_id,
      </if>
      <if test="plCountryName != null" >
        pl_country_name,
      </if>
      <if test="lon != null" >
        lon,
      </if>
      <if test="lat != null" >
        lat,
      </if>
      <if test="currentParkCount != null" >
        current_park_count,
      </if>
      <if test="ranges != null" >
        ranges,
      </if>
      <if test="heatmapHour != null" >
        heatmap_hour,
      </if>
      <if test="heatmapTime != null" >
        heatmap_time,
      </if>
      <if test="remark != null" >
        remark,
      </if>
      <if test="dataStatus != null" >
        data_status,
      </if>
      <if test="createEmpid != null" >
        create_empid,
      </if>
      <if test="createDate != null" >
        create_date,
      </if>
      <if test="modfiyEmpid != null" >
        modfiy_empid,
      </if>
      <if test="modfiyDate != null" >
        modfiy_date,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        #{id,jdbcType=BIGINT},
      </if>
      <if test="plNo != null" >
        #{plNo,jdbcType=VARCHAR},
      </if>
      <if test="plName != null" >
        #{plName,jdbcType=VARCHAR},
      </if>
      <if test="plProvinceId != null" >
        #{plProvinceId,jdbcType=BIGINT},
      </if>
      <if test="plProvinceName != null" >
        #{plProvinceName,jdbcType=VARCHAR},
      </if>
      <if test="plCityId != null" >
        #{plCityId,jdbcType=BIGINT},
      </if>
      <if test="plCityName != null" >
        #{plCityName,jdbcType=VARCHAR},
      </if>
      <if test="plCountryId != null" >
        #{plCountryId,jdbcType=BIGINT},
      </if>
      <if test="plCountryName != null" >
        #{plCountryName,jdbcType=VARCHAR},
      </if>
      <if test="lon != null" >
        #{lon,jdbcType=DECIMAL},
      </if>
      <if test="lat != null" >
        #{lat,jdbcType=DECIMAL},
      </if>
      <if test="currentParkCount != null" >
        #{currentParkCount,jdbcType=INTEGER},
      </if>
      <if test="ranges != null" >
        #{ranges,jdbcType=INTEGER},
      </if>
      <if test="heatmapHour != null" >
        #{heatmapHour,jdbcType=VARCHAR},
      </if>
      <if test="heatmapTime != null" >
        #{heatmapTime,jdbcType=TIMESTAMP},
      </if>
      <if test="remark != null" >
        #{remark,jdbcType=VARCHAR},
      </if>
      <if test="dataStatus != null" >
        #{dataStatus,jdbcType=INTEGER},
      </if>
      <if test="createEmpid != null" >
        #{createEmpid,jdbcType=VARCHAR},
      </if>
      <if test="createDate != null" >
        #{createDate,jdbcType=TIMESTAMP},
      </if>
      <if test="modfiyEmpid != null" >
        #{modfiyEmpid,jdbcType=VARCHAR},
      </if>
      <if test="modfiyDate != null" >
        #{modfiyDate,jdbcType=TIMESTAMP},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.zteits.park.domain.ParkinglotHeatmapHour" >
    update parkinglot_heatmap_hour
    <set >
      <if test="plNo != null" >
        pl_no = #{plNo,jdbcType=VARCHAR},
      </if>
      <if test="plName != null" >
        pl_name = #{plName,jdbcType=VARCHAR},
      </if>
      <if test="plProvinceId != null" >
        pl_province_id = #{plProvinceId,jdbcType=BIGINT},
      </if>
      <if test="plProvinceName != null" >
        pl_province_name = #{plProvinceName,jdbcType=VARCHAR},
      </if>
      <if test="plCityId != null" >
        pl_city_id = #{plCityId,jdbcType=BIGINT},
      </if>
      <if test="plCityName != null" >
        pl_city_name = #{plCityName,jdbcType=VARCHAR},
      </if>
      <if test="plCountryId != null" >
        pl_country_id = #{plCountryId,jdbcType=BIGINT},
      </if>
      <if test="plCountryName != null" >
        pl_country_name = #{plCountryName,jdbcType=VARCHAR},
      </if>
      <if test="lon != null" >
        lon = #{lon,jdbcType=DECIMAL},
      </if>
      <if test="lat != null" >
        lat = #{lat,jdbcType=DECIMAL},
      </if>
      <if test="currentParkCount != null" >
        current_park_count = #{currentParkCount,jdbcType=INTEGER},
      </if>
      <if test="ranges != null" >
        ranges = #{ranges,jdbcType=INTEGER},
      </if>
      <if test="heatmapHour != null" >
        heatmap_hour = #{heatmapHour,jdbcType=VARCHAR},
      </if>
      <if test="heatmapTime != null" >
        heatmap_time = #{heatmapTime,jdbcType=TIMESTAMP},
      </if>
      <if test="remark != null" >
        remark = #{remark,jdbcType=VARCHAR},
      </if>
      <if test="dataStatus != null" >
        data_status = #{dataStatus,jdbcType=INTEGER},
      </if>
      <if test="createEmpid != null" >
        create_empid = #{createEmpid,jdbcType=VARCHAR},
      </if>
      <if test="createDate != null" >
        create_date = #{createDate,jdbcType=TIMESTAMP},
      </if>
      <if test="modfiyEmpid != null" >
        modfiy_empid = #{modfiyEmpid,jdbcType=VARCHAR},
      </if>
      <if test="modfiyDate != null" >
        modfiy_date = #{modfiyDate,jdbcType=TIMESTAMP},
      </if>
    </set>
    where id = #{id,jdbcType=BIGINT}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.zteits.park.domain.ParkinglotHeatmapHour" >
    update parkinglot_heatmap_hour
    set pl_no = #{plNo,jdbcType=VARCHAR},
      pl_name = #{plName,jdbcType=VARCHAR},
      pl_province_id = #{plProvinceId,jdbcType=BIGINT},
      pl_province_name = #{plProvinceName,jdbcType=VARCHAR},
      pl_city_id = #{plCityId,jdbcType=BIGINT},
      pl_city_name = #{plCityName,jdbcType=VARCHAR},
      pl_country_id = #{plCountryId,jdbcType=BIGINT},
      pl_country_name = #{plCountryName,jdbcType=VARCHAR},
      lon = #{lon,jdbcType=DECIMAL},
      lat = #{lat,jdbcType=DECIMAL},
      current_park_count = #{currentParkCount,jdbcType=INTEGER},
      ranges = #{ranges,jdbcType=INTEGER},
      heatmap_hour = #{heatmapHour,jdbcType=VARCHAR},
      heatmap_time = #{heatmapTime,jdbcType=TIMESTAMP},
      remark = #{remark,jdbcType=VARCHAR},
      data_status = #{dataStatus,jdbcType=INTEGER},
      create_empid = #{createEmpid,jdbcType=VARCHAR},
      create_date = #{createDate,jdbcType=TIMESTAMP},
      modfiy_empid = #{modfiyEmpid,jdbcType=VARCHAR},
      modfiy_date = #{modfiyDate,jdbcType=TIMESTAMP}
    where id = #{id,jdbcType=BIGINT}
  </update>
</mapper>