<?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.cloud.device.dao.AreaLayerDao">
|
<resultMap id="BaseResultMap" type="com.cloud.device.model.AreaLayer">
|
<id column="id" jdbcType="INTEGER" property="id" />
|
<result column="parentId" property="parentId" jdbcType="INTEGER"></result>
|
<result column="isLayer" property="isLayer" jdbcType="INTEGER"></result>
|
<result column="areaName" property="areaName" jdbcType="VARCHAR"></result>
|
<result column="alias" property="alias" jdbcType="VARCHAR"></result>
|
<result column="wmsUrl" property="wmsUrl" jdbcType="VARCHAR"></result>
|
<result column="longitude" property="longitude" jdbcType="VARCHAR"></result>
|
<result column="latitude" property="latitude" jdbcType="VARCHAR"></result>
|
<result column="projection" property="projection" jdbcType="VARCHAR"></result>
|
<result column="zoom" property="zoom" jdbcType="INTEGER"></result>
|
<result column="createBy" property="createBy" jdbcType="VARCHAR"></result>
|
<result column="createTime" property="createTime" jdbcType="TIMESTAMP"></result>
|
<result column="updateBy" property="updateBy" jdbcType="VARCHAR"></result>
|
<result column="updateTime" property="updateTime" jdbcType="TIMESTAMP"></result>
|
<result column="orgId" property="orgId" jdbcType="INTEGER"></result>
|
<result column="delFlag" property="delFlag" jdbcType="VARCHAR"></result>
|
<result column="sort" property="sort" jdbcType="INTEGER"></result>
|
</resultMap>
|
<sql id="Base_Column_List">
|
id,parentId,isLayer,areaName,alias,wmsUrl,longitude,latitude,projection,zoom,createBy,createTime,updateBy,updateTime,orgId,delFlag,sort
|
</sql>
|
|
<insert id="save" parameterType="com.cloud.device.model.AreaLayer">
|
insert into area_layer(parentId, isLayer,
|
areaName, alias, wmsUrl, longitude, latitude, projection, zoom, createBy, createTime, updateBy, updateTime, orgId, delFlag
|
)values (#{parentId, jdbcType=INTEGER},#{isLayer, jdbcType=INTEGER},#{areaName,jdbcType=VARCHAR},#{alias,jdbcType=VARCHAR},#{wmsUrl,jdbcType=VARCHAR},
|
#{longitude,jdbcType=VARCHAR},#{latitude,jdbcType=VARCHAR},#{projection,jdbcType=VARCHAR},#{zoom,jdbcType=INTEGER},#{createBy,jdbcType=VARCHAR},
|
#{createTime, jdbcType=TIMESTAMP},#{updateBy,jdbcType=VARCHAR},#{updateTime,jdbcType=TIMESTAMP},#{orgId,jdbcType=INTEGER},#{delFlag,jdbcType=CHAR},
|
#{sort, jdbcType=INTEGER})
|
</insert>
|
<insert id="insertSelective" parameterType="com.cloud.device.model.AreaLayer">
|
insert into area_layer
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="parentId != null">
|
parentId,
|
</if>
|
<if test="isLayer != null">
|
isLayer,
|
</if>
|
<if test="areaName != null">
|
areaName,
|
</if>
|
<if test="alias != null">
|
alias,
|
</if>
|
<if test="wmsUrl != null">
|
wmsUrl,
|
</if>
|
<if test="longitude != null">
|
longitude,
|
</if>
|
<if test="latitude != null">
|
latitude,
|
</if>
|
<if test="projection != null">
|
projection,
|
</if>
|
<if test="zoom != null">
|
zoom,
|
</if>
|
<if test="createBy != null">
|
createBy,
|
</if>
|
<if test="createTime != null">
|
createTime,
|
</if>
|
<if test="updateBy != null">
|
updateBy,
|
</if>
|
<if test="updateTime != null">
|
updateTime,
|
</if>
|
<if test="orgId != null">
|
orgId,
|
</if>
|
<if test="delFlag != null">
|
delFlag,
|
</if>
|
<if test="sort != null">
|
sort,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="parentId != null">
|
#{parentId,jdbcType=INTEGER},
|
</if>
|
<if test="isLayer != null">
|
#{isLayer,jdbcType=INTEGER},
|
</if>
|
<if test="areaName != null">
|
#{areaName,jdbcType=VARCHAR},
|
</if>
|
<if test="alias != null">
|
#{alias,jdbcType=VARCHAR},
|
</if>
|
<if test="wmsUrl != null">
|
#{wmsUrl,jdbcType=VARCHAR},
|
</if>
|
<if test="longitude != null">
|
#{longitude,jdbcType=VARCHAR},
|
</if>
|
<if test="latitude != null">
|
#{latitude,jdbcType=VARCHAR},
|
</if>
|
<if test="projection != null">
|
#{projection,jdbcType=VARCHAR},
|
</if>
|
<if test="zoom != null">
|
#{zoom,jdbcType=INTEGER},
|
</if>
|
<if test="createBy != null">
|
#{createBy,jdbcType=VARCHAR},
|
</if>
|
<if test="createTime != null">
|
#{createTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="updateBy != null">
|
#{updateBy,jdbcType=VARCHAR},
|
</if>
|
<if test="updateTime != null">
|
#{updateTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="orgId != null">
|
#{orgId,jdbcType=INTEGER},
|
</if>
|
<if test="delFlag != null">
|
#{delFlag,jdbcType=VARCHAR},
|
</if>
|
<if test="sort != null">
|
#{sort,jdbcType=INTEGER},
|
</if>
|
</trim>
|
</insert>
|
<update id="updateByIdSelective" parameterType="com.cloud.device.model.AreaLayer">
|
update area_layer
|
<set>
|
<if test="parentId != null">
|
parentId = #{parentId,jdbcType=INTEGER},
|
</if>
|
<if test="isLayer != null">
|
isLayer = #{isLayer,jdbcType=INTEGER},
|
</if>
|
<if test="areaName != null">
|
areaName = #{areaName,jdbcType=VARCHAR},
|
</if>
|
<if test="alias != null">
|
alias = #{alias,jdbcType=VARCHAR},
|
</if>
|
<if test="wmsUrl != null">
|
wmsUrl = #{wmsUrl,jdbcType=VARCHAR},
|
</if>
|
<if test="longitude != null">
|
longitude = #{longitude,jdbcType=VARCHAR},
|
</if>
|
<if test="latitude != null">
|
latitude = #{latitude,jdbcType=VARCHAR},
|
</if>
|
<if test="projection != null">
|
projection = #{projection,jdbcType=VARCHAR},
|
</if>
|
<if test="zoom != null">
|
zoom = #{zoom,jdbcType=INTEGER},
|
</if>
|
<if test="createBy != null">
|
createBy = #{createBy,jdbcType=VARCHAR},
|
</if>
|
<if test="createTime != null">
|
createTime = #{createTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="updateBy != null">
|
updateBy = #{updateBy,jdbcType=VARCHAR},
|
</if>
|
<if test="updateTime != null">
|
updateTime = #{updateTime,jdbcType=TIMESTAMP},
|
</if>
|
<if test="orgId != null">
|
orgId = #{orgId,jdbcType=INTEGER},
|
</if>
|
<if test="delFlag != null">
|
delFlag = #{delFlag,jdbcType=VARCHAR},
|
</if>
|
<if test="sort != null">
|
sort = #{sort,jdbcType=INTEGER},
|
</if>
|
</set>
|
where id = #{id,jdbcType=INTEGER}
|
</update>
|
<update id="updateById" parameterType="com.cloud.device.model.AreaLayer">
|
update area_layer
|
set parentId = #{parentId,jdbcType=INTEGER},
|
isLayer = #{isLayer,jdbcType=INTEGER},
|
areaName = #{areaName,jdbcType=VARCHAR},
|
alias = #{alias,jdbcType=VARCHAR},
|
wmsUrl = #{wmsUrl,jdbcType=VARCHAR},
|
longitude = #{longitude,jdbcType=VARCHAR},
|
latitude = #{latitude,jdbcType=VARCHAR},
|
projection = #{projection,jdbcType=VARCHAR},
|
zoom = #{zoom,jdbcType=INTEGER},
|
createBy = #{createBy,jdbcType=VARCHAR},
|
createTime = #{createTime,jdbcType=TIMESTAMP},
|
updateBy = #{updateBy,jdbcType=VARCHAR},
|
updateTime = #{updateTime,jdbcType=TIMESTAMP},
|
orgId = #{orgId,jdbcType=INTEGER},
|
delFlag = #{delFlag,jdbcType=VARCHAR},
|
sort = #{sort,jdbcType=INTEGER}
|
where id = #{id,jdbcType=INTEGER}
|
</update>
|
<select id="selectById" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
select
|
<include refid="Base_Column_List" />
|
from area_layer
|
where id = #{id,jdbcType=INTEGER}
|
</select>
|
<delete id="deleteById" parameterType="java.lang.Integer">
|
delete from area_layer
|
where id = #{id,jdbcType=INTEGER}
|
</delete>
|
</mapper>
|