<?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_TempPrintMapper" >
|
<resultMap id="BaseResultMap" type="com.landtool.lanbase.modules.res.entity.Res_TempPrint" >
|
<id column="OBJECTID" property="objectid" jdbcType="DECIMAL" />
|
<result column="USERID" property="userid" jdbcType="DECIMAL" />
|
<result column="RTID" property="rtid" jdbcType="DECIMAL" />
|
<result column="TITLE" property="title" jdbcType="VARCHAR" />
|
<result column="CHARTCONTENT" property="chartcontent" jdbcType="VARCHAR" />
|
<result column="CHARTDATE" property="chartdate" jdbcType="TIMESTAMP" />
|
<result column="MAPCONTENT" property="mapcontent" jdbcType="VARCHAR" />
|
<result column="AUDITDATE" property="auditdate" jdbcType="TIMESTAMP" />
|
<result column="AUDITUSERID" property="audituserid" jdbcType="DECIMAL" />
|
<result column="AUDITOPINION" property="auditopinion" jdbcType="VARCHAR" />
|
<result column="AUDITSTATUS" property="auditstatus" jdbcType="DECIMAL" />
|
<result column="ISSHOWLEGEND" property="isshowlegend" jdbcType="DECIMAL" />
|
<result column="CHARTSTYLE" property="chartstyle" jdbcType="VARCHAR" />
|
<result column="CHARTSCALE" property="chartscale" jdbcType="VARCHAR" />
|
<result column="CHARTEXTENT" property="chartextent" jdbcType="VARCHAR" />
|
<result column="ISSCALELOCKED" property="isscalelocked" jdbcType="DECIMAL" />
|
</resultMap>
|
<sql id="Base_Column_List" >
|
OBJECTID, USERID, RTID, TITLE, CHARTCONTENT,CHARTDATE, MAPCONTENT, AUDITDATE, AUDITUSERID, AUDITOPINION, AUDITSTATUS, ISSHOWLEGEND, CHARTSTYLE, CHARTSCALE, CHARTEXTENT, ISSCALELOCKED
|
</sql>
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" >
|
select
|
<include refid="Base_Column_List" />
|
from RES_TEMPPRINT
|
where OBJECTID = #{objectid,jdbcType=DECIMAL}
|
</select>
|
<select id="getList" parameterType="com.landtool.lanbase.modules.res.entity.Res_TempPrint" resultType="com.landtool.lanbase.modules.res.entity.Res_TempPrint">
|
select * from RES_TEMPPRINT where 1=1
|
<if test="userid != null and userid != ''" >
|
and userid = #{userid}
|
</if>
|
ORDER by OBJECTID
|
</select>
|
<select id="queryResTempPrintIdentCurrent" resultType="int">
|
SELECT RES_TEMPPRINT_INS_SEQ.currval FROM DUAL
|
</select>
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
delete from RES_TEMPPRINT
|
where OBJECTID = #{objectid,jdbcType=DECIMAL}
|
</delete>
|
<insert id="insert" parameterType="com.landtool.lanbase.modules.res.entity.Res_TempPrint" >
|
insert into RES_TEMPPRINT (USERID, RTID, TITLE, CHARTCONTENT,CHARTDATE, MAPCONTENT, AUDITDATE, AUDITUSERID, AUDITOPINION, AUDITSTATUS,
|
ISSHOWLEGEND, CHARTSTYLE, CHARTSCALE, CHARTEXTENT, ISSCALELOCKED)
|
values (#{userid,jdbcType=DECIMAL}, #{rtid,jdbcType=DECIMAL},#{title,jdbcType=VARCHAR},
|
#{chartcontent,jdbcType=CLOB},#{chartdate,jdbcType=TIMESTAMP},#{mapcontent,jdbcType=CLOB},#{auditdate,jdbcType=TIMESTAMP},
|
#{audituserid,jdbcType=DECIMAL},#{auditopinion,jdbcType=VARCHAR},#{auditstatus,jdbcType=DECIMAL},#{isshowlegend,jdbcType=DECIMAL},
|
#{chartstyle,jdbcType=VARCHAR},#{chartscale,jdbcType=VARCHAR},#{chartextent,jdbcType=CLOB},#{isscalelocked,jdbcType=DECIMAL})
|
</insert>
|
<insert id="insertSelective" parameterType="com.landtool.lanbase.modules.res.entity.Res_TempPrint">
|
INSERT into RES_TEMPPRINT
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
<if test="userid != null" >
|
USERID,
|
</if>
|
<if test="rtid != null" >
|
RTID,
|
</if>
|
<if test="title != null" >
|
TITLE,
|
</if>
|
<if test="chartcontent != null" >
|
CHARTCONTENT,
|
</if>
|
<if test="chartdate != null" >
|
CHARTDATE,
|
</if>
|
<if test="mapcontent != null" >
|
MAPCONTENT,
|
</if>
|
<if test="auditdate != null" >
|
AUDITDATE,
|
</if>
|
<if test="audituserid != null" >
|
AUDITUSERID,
|
</if>
|
<if test="auditopinion != null" >
|
AUDITOPINION,
|
</if>
|
<if test="auditstatus != null" >
|
AUDITSTATUS,
|
</if>
|
<if test="isshowlegend != null" >
|
ISSHOWLEGEND,
|
</if>
|
<if test="chartstyle != null" >
|
CHARTSTYLE,
|
</if>
|
<if test="chartscale != null" >
|
CHARTSCALE,
|
</if>
|
<if test="chartextent != null">
|
CHARTEXTENT,
|
</if>
|
<if test="isscalelocked != null">
|
ISSCALELOCKED,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
<if test="userid != null" >
|
#{userid,jdbcType=DECIMAL},
|
</if>
|
<if test="rtid != null" >
|
#{rtid,jdbcType=DECIMAL},
|
</if>
|
<if test="title != null" >
|
#{title,jdbcType=VARCHAR},
|
</if>
|
<if test="chartcontent != null" >
|
#{chartcontent,jdbcType=CLOB},
|
</if>
|
<if test="chartdate != null" >
|
#{chartdate,jdbcType=TIMESTAMP},
|
</if>
|
<if test="mapcontent != null" >
|
#{mapcontent,jdbcType=CLOB},
|
</if>
|
<if test="auditdate != null" >
|
#{auditdate,jdbcType=TIMESTAMP},
|
</if>
|
<if test="audituserid != null" >
|
#{audituserid,jdbcType=DECIMAL},
|
</if>
|
<if test="auditopinion != null" >
|
#{auditopinion,jdbcType=VARCHAR},
|
</if>
|
<if test="auditstatus != null" >
|
#{auditstatus,jdbcType=DECIMAL},
|
</if>
|
<if test="isshowlegend != null" >
|
#{isshowlegend,jdbcType=DECIMAL},
|
</if>
|
<if test="chartstyle != null" >
|
#{chartstyle,jdbcType=VARCHAR},
|
</if>
|
<if test="chartscale != null" >
|
#{chartscale,jdbcType=VARCHAR},
|
</if>
|
<if test="chartextent != null">
|
#{chartextent,jdbcType=CLOB},
|
</if>
|
<if test="isscalelocked != null">
|
#{isscalelocked,jdbcType=DECIMAL},
|
</if>
|
</trim>
|
</insert>
|
<update id="updateByPrimaryKeySelective" parameterType="com.landtool.lanbase.modules.res.entity.Res_TempPrint" >
|
update RES_TEMPPRINT
|
<set >
|
<if test="userid != null" >
|
USERID = #{userid,jdbcType=DECIMAL},
|
</if>
|
<if test="rtid != null" >
|
RTID = #{rtid,jdbcType=DECIMAL},
|
</if>
|
<if test="title != null" >
|
TITLE = #{title,jdbcType=VARCHAR},
|
</if>
|
<if test="chartcontent != null" >
|
CHARTCONTENT = #{chartcontent,jdbcType=CLOB},
|
</if>
|
<if test="mapcontent != null" >
|
MAPCONTENT = #{mapcontent,jdbcType=CLOB},
|
</if>
|
<if test="auditdate != null" >
|
AUDITDATE = #{auditdate,jdbcType=TIMESTAMP},
|
</if>
|
<if test="audituserid != null" >
|
AUDITUSERID = #{audituserid,jdbcType=DECIMAL},
|
</if>
|
<if test="auditopinion != null" >
|
AUDITOPINION = #{auditopinion,jdbcType=VARCHAR},
|
</if>
|
<if test="auditstatus != null" >
|
AUDITSTATUS = #{auditstatus,jdbcType=DECIMAL},
|
</if>
|
<if test="isshowlegend != null" >
|
ISSHOWLEGEND = #{isshowlegend,jdbcType=DECIMAL},
|
</if>
|
<if test="chartstyle != null" >
|
CHARTSTYLE = #{chartstyle,jdbcType=VARCHAR},
|
</if>
|
<if test="chartscale != null" >
|
CHARTSCALE = #{chartscale,jdbcType=VARCHAR},
|
</if>
|
<if test="chartextent != null" >
|
CHARTEXTENT = #{chartextent,jdbcType=CLOB},
|
</if>
|
<if test="isscalelocked != null">
|
ISSCALELOCKED = #{isscalelocked,jdbcType=DECIMAL},
|
</if>
|
</set>
|
where OBJECTID = #{objectid,jdbcType=DECIMAL}
|
</update>
|
<update id="updateByPrimaryKey" parameterType="com.landtool.lanbase.modules.res.entity.Res_TempPrint" >
|
update RES_TEMPPRINT
|
set USERID = #{userid,jdbcType=DECIMAL},
|
RTID = #{rtid,jdbcType=DECIMAL},
|
TITLE = #{title,jdbcType=VARCHAR},
|
CHARTCONTENT = #{chartcontent,jdbcType=CLOB},
|
MAPCONTENT = #{mapcontent,jdbcType=CLOB},
|
AUDITDATE = #{auditdate,jdbcType=TIMESTAMP},
|
AUDITUSERID = #{audituserid,jdbcType=DECIMAL},
|
AUDITOPINION = #{auditopinion,jdbcType=VARCHAR},
|
AUDITSTATUS = #{auditstatus,jdbcType=DECIMAL},
|
ISSHOWLEGEND = #{isshowlegend,jdbcType=DECIMAL},
|
CHARTSTYLE = #{chartstyle,jdbcType=VARCHAR},
|
CHARTSCALE = #{chartscale,jdbcType=VARCHAR},
|
CHARTEXTENT = #{chartextent,jdbcType=CLOB},
|
ISSCALELOCKED = #{isscalelocked,jdbcType=DECIMAL}
|
where OBJECTID = #{objectid,jdbcType=DECIMAL}
|
</update>
|
</mapper>
|