<?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>
|