2
13693261870
2022-09-16 653761a31dfeb50dd3d007e892d69c90bf0cdafc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?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>