<?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.landtool.lanbase.modules.res.dao.Res_ExtIntegrateMapper" >
|
<resultMap id="BaseResultMap" type="com.landtool.lanbase.modules.res.entity.Res_ExtIntegrate" >
|
<id column="RESOURCEID" property="resourceid" jdbcType="DECIMAL" />
|
<result column="SERVERURL" property="serverurl" jdbcType="OTHER" />
|
<result column="INTEGRATETYPE" property="integratetype" jdbcType="OTHER" />
|
<result column="SHOWMODEL" property="showmodel" jdbcType="OTHER" />
|
<result column="REFLAYERID" property="reflayerid" jdbcType="DECIMAL" />
|
<result column="JSONREFFIELD" property="jsonreffield" jdbcType="OTHER" />
|
<result column="REFLAYERFIELD" property="reflayerfield" jdbcType="OTHER" />
|
<result column="REFBASEMAPID" property="refbasemapid" jdbcType="DECIMAL" />
|
<result column="RENDERMODE" property="rendermode" jdbcType="OTHER" />
|
<result column="CHARTMODEL" property="chartmodel" jdbcType="VARCHAR" />
|
<result column="CHARTWIDTH" property="chartwidth" jdbcType="DECIMAL" />
|
<result column="CHARTHEIGHT" property="chartheight" jdbcType="DECIMAL" />
|
<result column="RESOLUTION" property="resolution" jdbcType="OTHER" />
|
</resultMap>
|
<resultMap id="ResultMapWithBLOBs" type="com.landtool.lanbase.modules.res.entity.Res_ExtIntegrate" extends="BaseResultMap" >
|
<result column="LAYERJOSNCLASS" property="layerjosnclass" jdbcType="VARCHAR" />
|
</resultMap>
|
<sql id="Base_Column_List" >
|
RESOURCEID, SERVERURL, INTEGRATETYPE, SHOWMODEL, REFLAYERID, JSONREFFIELD, REFLAYERFIELD,
|
REFBASEMAPID, RENDERMODE,CHARTMODEL,CHARTWIDTH,CHARTHEIGHT,RESOLUTION
|
</sql>
|
<sql id="Blob_Column_List" >
|
LAYERJOSNCLASS
|
</sql>
|
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
|
select
|
<include refid="Base_Column_List" />
|
,
|
<include refid="Blob_Column_List" />
|
from RES_EXTINTEGRATE
|
where RESOURCEID = #{resourceid,jdbcType=DECIMAL}
|
</select>
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
delete from RES_EXTINTEGRATE
|
where RESOURCEID = #{resourceid,jdbcType=DECIMAL}
|
</delete>
|
<insert id="insert" parameterType="com.landtool.lanbase.modules.res.entity.Res_ExtIntegrate" >
|
insert into RES_EXTINTEGRATE (RESOURCEID, SERVERURL, INTEGRATETYPE,
|
SHOWMODEL, REFLAYERID, JSONREFFIELD,
|
REFLAYERFIELD, REFBASEMAPID, RENDERMODE,CHARTMODEL,CHARTWIDTH,CHARTHEIGHT,RESOLUTION,
|
LAYERJOSNCLASS)
|
values (#{resourceid,jdbcType=DECIMAL}, #{serverurl,jdbcType=OTHER}, #{integratetype,jdbcType=OTHER},
|
#{showmodel,jdbcType=OTHER}, #{reflayerid,jdbcType=DECIMAL}, #{jsonreffield,jdbcType=OTHER},
|
#{reflayerfield,jdbcType=OTHER}, #{refbasemapid,jdbcType=DECIMAL}, #{rendermode,jdbcType=OTHER},
|
#{chartmodel,jdbcType=CLOB}, #{chartwidth,jdbcType=DECIMAL}, #{chartheight,jdbcType=DECIMAL},
|
#{resolution,jdbcType=OTHER},#{layerjosnclass,jdbcType=CLOB})
|
</insert>
|
<insert id="insertSelective" parameterType="com.landtool.lanbase.modules.res.entity.Res_ExtIntegrate" >
|
insert into RES_EXTINTEGRATE
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
<if test="resourceid != null" >
|
RESOURCEID,
|
</if>
|
<if test="serverurl != null" >
|
SERVERURL,
|
</if>
|
<if test="integratetype != null" >
|
INTEGRATETYPE,
|
</if>
|
<if test="showmodel != null" >
|
SHOWMODEL,
|
</if>
|
<if test="reflayerid != null" >
|
REFLAYERID,
|
</if>
|
<if test="jsonreffield != null" >
|
JSONREFFIELD,
|
</if>
|
<if test="reflayerfield != null" >
|
REFLAYERFIELD,
|
</if>
|
<if test="refbasemapid != null" >
|
REFBASEMAPID,
|
</if>
|
<if test="rendermode != null" >
|
RENDERMODE,
|
</if>
|
<if test="layerjosnclass != null" >
|
LAYERJOSNCLASS,
|
</if>
|
<if test="chartmodel != null" >
|
CHARTMODEL,
|
</if>
|
<if test="chartwidth != null" >
|
CHARTWIDTH,
|
</if>
|
<if test="chartheight != null" >
|
CHARTHEIGHT,
|
</if>
|
<if test="resolution != null" >
|
RESOLUTION,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
<if test="resourceid != null" >
|
#{resourceid,jdbcType=DECIMAL},
|
</if>
|
<if test="serverurl != null" >
|
#{serverurl,jdbcType=OTHER},
|
</if>
|
<if test="integratetype != null" >
|
#{integratetype,jdbcType=OTHER},
|
</if>
|
<if test="showmodel != null" >
|
#{showmodel,jdbcType=OTHER},
|
</if>
|
<if test="reflayerid != null" >
|
#{reflayerid,jdbcType=DECIMAL},
|
</if>
|
<if test="jsonreffield != null" >
|
#{jsonreffield,jdbcType=OTHER},
|
</if>
|
<if test="reflayerfield != null" >
|
#{reflayerfield,jdbcType=OTHER},
|
</if>
|
<if test="refbasemapid != null" >
|
#{refbasemapid,jdbcType=DECIMAL},
|
</if>
|
<if test="rendermode != null" >
|
#{rendermode,jdbcType=OTHER},
|
</if>
|
<if test="layerjosnclass != null" >
|
#{layerjosnclass,jdbcType=CLOB},
|
</if>
|
<if test="chartmodel != null" >
|
#{chartmodel,jdbcType=CLOB},
|
</if>
|
<if test="chartwidth != null" >
|
#{chartwidth,jdbcType=DECIMAL},
|
</if>
|
<if test="chartheight != null" >
|
#{chartheight,jdbcType=DECIMAL},
|
</if>
|
<if test="resolution != null" >
|
#{resolution,jdbcType=OTHER},
|
</if>
|
</trim>
|
</insert>
|
<update id="updateByPrimaryKeySelective" parameterType="com.landtool.lanbase.modules.res.entity.Res_ExtIntegrate" >
|
update RES_EXTINTEGRATE
|
<set >
|
<if test="serverurl != null" >
|
SERVERURL = #{serverurl,jdbcType=OTHER},
|
</if>
|
<if test="integratetype != null" >
|
INTEGRATETYPE = #{integratetype,jdbcType=OTHER},
|
</if>
|
<if test="showmodel != null" >
|
SHOWMODEL = #{showmodel,jdbcType=OTHER},
|
</if>
|
<if test="reflayerid != null" >
|
REFLAYERID = #{reflayerid,jdbcType=DECIMAL},
|
</if>
|
<if test="jsonreffield != null" >
|
JSONREFFIELD = #{jsonreffield,jdbcType=OTHER},
|
</if>
|
<if test="reflayerfield != null" >
|
REFLAYERFIELD = #{reflayerfield,jdbcType=OTHER},
|
</if>
|
<if test="refbasemapid != null" >
|
REFBASEMAPID = #{refbasemapid,jdbcType=DECIMAL},
|
</if>
|
<if test="rendermode != null" >
|
RENDERMODE = #{rendermode,jdbcType=OTHER},
|
</if>
|
<if test="layerjosnclass != null" >
|
LAYERJOSNCLASS = #{layerjosnclass,jdbcType=CLOB},
|
</if>
|
<if test="chartmodel != null" >
|
CHARTMODEL = #{chartmodel,jdbcType=CLOB},
|
</if>
|
<if test="chartwidth != null" >
|
CHARTWIDTH = #{chartwidth,jdbcType=DECIMAL},
|
</if>
|
<if test="chartheight != null" >
|
CHARTHEIGHT = #{chartheight,jdbcType=DECIMAL},
|
</if>
|
<if test="resolution != null" >
|
RESOLUTION = #{resolution,jdbcType=OTHER},
|
</if>
|
</set>
|
where RESOURCEID = #{resourceid,jdbcType=DECIMAL}
|
</update>
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.landtool.lanbase.modules.res.entity.Res_ExtIntegrate" >
|
update RES_EXTINTEGRATE
|
set SERVERURL = #{serverurl,jdbcType=OTHER},
|
INTEGRATETYPE = #{integratetype,jdbcType=OTHER},
|
SHOWMODEL = #{showmodel,jdbcType=OTHER},
|
REFLAYERID = #{reflayerid,jdbcType=DECIMAL},
|
JSONREFFIELD = #{jsonreffield,jdbcType=VARCHAR},
|
REFLAYERFIELD = #{reflayerfield,jdbcType=VARCHAR},
|
REFBASEMAPID = #{refbasemapid,jdbcType=DECIMAL},
|
RENDERMODE = #{rendermode,jdbcType=VARCHAR},
|
LAYERJOSNCLASS = #{layerjosnclass,jdbcType=CLOB},
|
CHARTMODEL = #{chartmodel,jdbcType=CLOB},
|
CHARTWIDTH = #{chartwidth,jdbcType=DECIMAL},
|
CHARTHEIGHT = #{chartheight,jdbcType=DECIMAL},
|
RESOLUTION = #{resolution,jdbcType=VARCHAR}
|
where RESOURCEID = #{resourceid,jdbcType=DECIMAL}
|
</update>
|
<update id="updateByPrimaryKey" parameterType="com.landtool.lanbase.modules.res.entity.Res_ExtIntegrate" >
|
update RES_EXTINTEGRATE
|
set SERVERURL = #{serverurl,jdbcType=OTHER},
|
INTEGRATETYPE = #{integratetype,jdbcType=OTHER},
|
SHOWMODEL = #{showmodel,jdbcType=OTHER},
|
REFLAYERID = #{reflayerid,jdbcType=DECIMAL},
|
JSONREFFIELD = #{jsonreffield,jdbcType=OTHER},
|
REFLAYERFIELD = #{reflayerfield,jdbcType=OTHER},
|
REFBASEMAPID = #{refbasemapid,jdbcType=DECIMAL},
|
RENDERMODE = #{rendermode,jdbcType=OTHER},
|
CHARTMODEL = #{chartmodel,jdbcType=OTHER},
|
CHARTWIDTH = #{chartwidth,jdbcType=DECIMAL},
|
CHARTHEIGHT = #{chartheight,jdbcType=DECIMAL},
|
RESOLUTION = #{resolution,jdbcType=OTHER}
|
where RESOURCEID = #{resourceid,jdbcType=DECIMAL}
|
</update>
|
|
<update id="updateChartInfo" parameterType="com.landtool.lanbase.modules.res.entity.Res_ExtIntegrate">
|
update RES_EXTINTEGRATE
|
<set >
|
<if test="chartmodel != null" >
|
CHARTMODEL = #{chartmodel,jdbcType=CLOB},
|
</if>
|
<if test="chartwidth != null" >
|
CHARTWIDTH = #{chartwidth,jdbcType=DECIMAL},
|
</if>
|
<if test="chartheight != null" >
|
CHARTHEIGHT = #{chartheight,jdbcType=DECIMAL},
|
</if>
|
</set>
|
where RESOURCEID = #{resourceid,jdbcType=DECIMAL}
|
</update>
|
</mapper>
|