<?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_User_LayerExtentMapper" >
|
<resultMap id="BaseResultMap" type="com.landtool.lanbase.modules.res.entity.Res_User_LayerExtent" >
|
<id column="ID" property="id" jdbcType="DECIMAL" />
|
<result column="RESOURCEID" property="resourceid" jdbcType="DECIMAL" />
|
<result column="TITLE" property="title" jdbcType="VARCHAR" />
|
<result column="USERID" property="userid" jdbcType="DECIMAL" />
|
<result column="EXTENT" property="extent" jdbcType="VARCHAR" />
|
</resultMap>
|
<sql id="Base_Column_List" >
|
ID, RESOURCEID, TITLE, USERID, EXTENT,
|
</sql>
|
<select id="selectByPrimaryKey" resultType="com.landtool.lanbase.modules.res.entity.Res_User_LayerExtent" parameterType="java.lang.Integer" >
|
select *
|
from RES_USER_LAYEREXTENT
|
where ID = #{id,jdbcType=DECIMAL}
|
</select>
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
delete from RES_USER_LAYEREXTENT
|
where ID = #{id}
|
</delete>
|
<insert id="insertSelective" parameterType="com.landtool.lanbase.modules.res.entity.Res_User_LayerExtent" >
|
insert into RES_USER_LAYEREXTENT
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
<if test="title != null" >
|
TITLE,
|
</if>
|
<if test="resourceid != null" >
|
RESOURCEID,
|
</if>
|
<if test="userid != null" >
|
USERID,
|
</if>
|
<if test="extent != null" >
|
EXTENT,
|
</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
<if test="title != null" >
|
#{title,jdbcType=VARCHAR},
|
</if>
|
<if test="resourceid != null" >
|
#{resourceid,jdbcType=DECIMAL},
|
</if>
|
<if test="userid != null" >
|
#{userid,jdbcType=DECIMAL},
|
</if>
|
<if test="extent != null" >
|
#{extent,jdbcType=VARCHAR},
|
</if>
|
</trim>
|
</insert>
|
<update id="updateByPrimaryKeySelective" parameterType="com.landtool.lanbase.modules.res.entity.Res_User_LayerExtent" >
|
update RES_USER_LAYEREXTENT
|
<set >
|
<if test="resourceid != null" >
|
RESOURCEID = #{resourceid,jdbcType=DECIMAL},
|
</if>
|
<if test="title != null" >
|
TITLE = #{title,jdbcType=VARCHAR},
|
</if>
|
<if test="userid != null" >
|
USERID = #{userid,jdbcType=DECIMAL},
|
</if>
|
<if test="extent != null" >
|
EXTENT = #{extent,jdbcType=VARCHAR},
|
</if>
|
</set>
|
where ID = #{id,jdbcType=DECIMAL}
|
</update>
|
<select id="selectByResidAndUserid" parameterType="com.landtool.lanbase.modules.res.entity.Res_User_LayerExtent" resultType="com.landtool.lanbase.modules.res.entity.Res_User_LayerExtent">
|
select * from RES_USER_LAYEREXTENT
|
<where>
|
<if test="resourceid != null" >
|
and RESOURCEID = #{resourceid}
|
</if>
|
<if test="userid != null" >
|
and USERID = #{userid}
|
</if>
|
</where>
|
</select>
|
<select id="getCurrentObjectId" resultType="java.lang.Integer">
|
SELECT RES_USER_LAYEREXTENT_INS_SEQ.currval FROM DUAL
|
</select>
|
</mapper>
|