<?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_SpacesParamMapper" >
|
<resultMap id="BaseResultMap" type="com.landtool.lanbase.modules.res.entity.Res_SpacesParam" >
|
<id column="PARAMID" property="paramid" jdbcType="DECIMAL" />
|
<result column="RESOURCEID" property="resourceid" jdbcType="DECIMAL" />
|
<result column="ORDERINDEX" property="orderindex" jdbcType="DECIMAL" />
|
<result column="PARAMTYPE" property="paramtype" jdbcType="DECIMAL" />
|
<result column="PARAMNAME" property="paramname" jdbcType="VARCHAR" />
|
<result column="DATATYPE" property="datatype" jdbcType="VARCHAR" />
|
<result column="PARAMALIAS" property="paramalias" jdbcType="VARCHAR" />
|
<result column="DEFAULTVALUE" property="defaultValue" jdbcType="VARCHAR" />
|
<result column="REQUIRED" property="required" jdbcType="DECIMAL" />
|
</resultMap>
|
<resultMap id="ResultMapWithBLOBs" type="com.landtool.lanbase.modules.res.entity.Res_SpacesParamWithBLOBs" extends="BaseResultMap" >
|
<result column="REMARK" property="remark" jdbcType="VARCHAR" />
|
<result column="LAYERSTYLE" property="layerstyle" jdbcType="VARCHAR" />
|
</resultMap>
|
<sql id="Base_Column_List" >
|
PARAMID, RESOURCEID, ORDERINDEX, PARAMTYPE, PARAMNAME, DATATYPE, PARAMALIAS,DEFAULTVALUE,REQUIRED
|
</sql>
|
<sql id="Blob_Column_List" >
|
REMARK, LAYERSTYLE
|
</sql>
|
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
|
select
|
<include refid="Base_Column_List" />
|
,
|
<include refid="Blob_Column_List" />
|
from RES_SPACESPARAM
|
where PARAMID = #{paramid,jdbcType=DECIMAL}
|
</select>
|
|
<select id="selectByResSourceId" resultType="com.landtool.lanbase.modules.res.entity.Res_SpacesParamWithBLOBs" parameterType="java.lang.Integer" >
|
select
|
<include refid="Base_Column_List" />
|
,
|
<include refid="Blob_Column_List" />
|
from RES_SPACESPARAM
|
where resourceid = #{resourceid,jdbcType=DECIMAL}
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
delete from RES_SPACESPARAM
|
where PARAMID = #{paramid,jdbcType=DECIMAL}
|
</delete>
|
<insert id="insert" parameterType="com.landtool.lanbase.modules.res.entity.Res_SpacesParamWithBLOBs" >
|
insert into RES_SPACESPARAM (PARAMID, RESOURCEID, ORDERINDEX,
|
PARAMTYPE, PARAMNAME, DATATYPE,
|
PARAMALIAS, REMARK, LAYERSTYLE,DEFAULTVALUE,REQUIRED
|
)
|
values (#{paramid,jdbcType=DECIMAL}, #{resourceid,jdbcType=DECIMAL}, #{orderindex,jdbcType=DECIMAL},
|
#{paramtype,jdbcType=DECIMAL}, #{paramname,jdbcType=VARCHAR}, #{datatype,jdbcType=VARCHAR},
|
#{paramalias,jdbcType=VARCHAR}, #{remark,jdbcType=CLOB}, #{layerstyle,jdbcType=CLOB},
|
#{defaultValue,jdbcType=VARCHAR}, #{required,jdbcType=DECIMAL}
|
)
|
</insert>
|
<insert id="insertSelective" parameterType="com.landtool.lanbase.modules.res.entity.Res_SpacesParamWithBLOBs" >
|
<selectKey keyProperty="paramid" resultType="java.lang.Integer" order="BEFORE">
|
select NEXTVAL('RES_SPACESPARAM_INS_SEQ') from dual
|
</selectKey>
|
insert into RES_SPACESPARAM
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
<if test="paramid != null" >
|
PARAMID,
|
</if>
|
<if test="resourceid != null" >
|
RESOURCEID,
|
</if>
|
<if test="orderindex != null" >
|
ORDERINDEX,
|
</if>
|
<if test="paramtype != null" >
|
PARAMTYPE,
|
</if>
|
<if test="paramname != null" >
|
PARAMNAME,
|
</if>
|
<if test="datatype != null" >
|
DATATYPE,
|
</if>
|
<if test="paramalias != null" >
|
PARAMALIAS,
|
</if>
|
<if test="remark != null" >
|
REMARK,
|
</if>
|
<if test="layerstyle != null" >
|
LAYERSTYLE,
|
</if>
|
<if test="defaultValue != null" >
|
DEFAULTVALUE,
|
</if>
|
<if test="required != null" >
|
REQUIRED,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
<if test="paramid != null" >
|
#{paramid,jdbcType=DECIMAL},
|
</if>
|
<if test="resourceid != null" >
|
#{resourceid,jdbcType=DECIMAL},
|
</if>
|
<if test="orderindex != null" >
|
#{orderindex,jdbcType=DECIMAL},
|
</if>
|
<if test="paramtype != null" >
|
#{paramtype,jdbcType=DECIMAL},
|
</if>
|
<if test="paramname != null" >
|
#{paramname,jdbcType=VARCHAR},
|
</if>
|
<if test="datatype != null" >
|
#{datatype,jdbcType=VARCHAR},
|
</if>
|
<if test="paramalias != null" >
|
#{paramalias,jdbcType=VARCHAR},
|
</if>
|
<if test="remark != null" >
|
#{remark,jdbcType=CLOB},
|
</if>
|
<if test="layerstyle != null" >
|
#{layerstyle,jdbcType=CLOB},
|
</if>
|
<if test="defaultValue != null" >
|
#{defaultValue,jdbcType=VARCHAR},
|
</if>
|
<if test="required != null" >
|
#{required,jdbcType=DECIMAL},
|
</if>
|
</trim>
|
</insert>
|
<update id="updateByPrimaryKeySelective" parameterType="com.landtool.lanbase.modules.res.entity.Res_SpacesParamWithBLOBs" useGeneratedKeys="true" keyProperty="paramid" >
|
update RES_SPACESPARAM
|
<set >
|
<if test="resourceid != null" >
|
RESOURCEID = #{resourceid,jdbcType=DECIMAL},
|
</if>
|
<if test="orderindex != null" >
|
ORDERINDEX = #{orderindex,jdbcType=DECIMAL},
|
</if>
|
<if test="paramtype != null" >
|
PARAMTYPE = #{paramtype,jdbcType=DECIMAL},
|
</if>
|
<if test="paramname != null" >
|
PARAMNAME = #{paramname,jdbcType=VARCHAR},
|
</if>
|
<if test="datatype != null" >
|
DATATYPE = #{datatype,jdbcType=VARCHAR},
|
</if>
|
<if test="paramalias != null" >
|
PARAMALIAS = #{paramalias,jdbcType=VARCHAR},
|
</if>
|
<if test="remark != null" >
|
REMARK = #{remark,jdbcType=CLOB},
|
</if>
|
<if test="layerstyle != null" >
|
LAYERSTYLE = #{layerstyle,jdbcType=CLOB},
|
</if>
|
<if test="defaultValue != null" >
|
DEFAULTVALUE = #{defaultValue,jdbcType=VARCHAR},
|
</if>
|
<if test="required != null" >
|
REQUIRED = #{required,jdbcType=DECIMAL},
|
</if>
|
</set>
|
where PARAMID = #{paramid,jdbcType=DECIMAL}
|
</update>
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.landtool.lanbase.modules.res.entity.Res_SpacesParamWithBLOBs" >
|
update RES_SPACESPARAM
|
set RESOURCEID = #{resourceid,jdbcType=DECIMAL},
|
ORDERINDEX = #{orderindex,jdbcType=DECIMAL},
|
PARAMTYPE = #{paramtype,jdbcType=DECIMAL},
|
PARAMNAME = #{paramname,jdbcType=VARCHAR},
|
DATATYPE = #{datatype,jdbcType=VARCHAR},
|
PARAMALIAS = #{paramalias,jdbcType=VARCHAR},
|
REMARK = #{remark,jdbcType=CLOB},
|
LAYERSTYLE = #{layerstyle,jdbcType=CLOB},
|
DEFAULTVALUE = #{defaultValue,jdbcType=VARCHAR},
|
REQUIRED = #{required,jdbcType=DECIMAL}
|
where PARAMID = #{paramid,jdbcType=DECIMAL}
|
</update>
|
<update id="updateByPrimaryKey" parameterType="com.landtool.lanbase.modules.res.entity.Res_SpacesParam" >
|
update RES_SPACESPARAM
|
set RESOURCEID = #{resourceid,jdbcType=DECIMAL},
|
ORDERINDEX = #{orderindex,jdbcType=DECIMAL},
|
PARAMTYPE = #{paramtype,jdbcType=DECIMAL},
|
PARAMNAME = #{paramname,jdbcType=VARCHAR},
|
DATATYPE = #{datatype,jdbcType=VARCHAR},
|
PARAMALIAS = #{paramalias,jdbcType=VARCHAR},
|
DEFAULTVALUE = #{defaultValue,jdbcType=VARCHAR},
|
REQUIRED = #{required,jdbcType=DECIMAL}
|
where PARAMID = #{paramid,jdbcType=DECIMAL}
|
</update>
|
</mapper>
|