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
<?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_BookMarksMapper" >
  <resultMap id="BaseResultMap" type="com.landtool.lanbase.modules.res.entity.Res_BookMarks" >
    <id column="OBJECTID" property="objectid" jdbcType="DECIMAL" />
    <result column="CREATEUSERID" property="createuserid" jdbcType="DECIMAL" />
    <result column="TITLE" property="title" jdbcType="VARCHAR" />
    <result column="EXTENT" property="extent" jdbcType="VARCHAR" />
    <result column="ADDTIME" property="addtime" jdbcType="TIMESTAMP" />
  </resultMap>
  <select id="getById" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
    select *
    from RES_BOOKMARKS
    where OBJECTID = #{objectid,jdbcType=DECIMAL}
  </select>
  <select id="getBookMarksByUserid" resultMap="BaseResultMap" parameterType="java.lang.Integer">
    SELECT * from RES_BOOKMARKS order by ADDTIME
  </select>
 
  <insert id="insert" parameterType="com.landtool.lanbase.modules.res.entity.Res_BookMarks">
    INSERT INTO RES_BOOKMARKS(CREATEUSERID,TITLE,EXTENT,ADDTIME) VALUES (#{createuserid},#{title},#{extent},#{addtime})
  </insert>
 
  <update id="updateByPrimaryKey" parameterType="com.landtool.lanbase.modules.res.entity.Res_BookMarks">
    UPDATE RES_BOOKMARKS set TITLE = #{title} where OBJECTID = #{objectid}
  </update>
 
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    DELETE from RES_BOOKMARKS where OBJECTID = #{objectid}
  </delete>
  <select id="getCurrentObjectId" resultType="java.lang.Integer">
    SELECT RES_BOOKMARKS_INS_SEQ.currval FROM DUAL
  </select>
</mapper>