Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\OpacBookMarkMapper.xml
<?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.jishen.libsystem.dao.OpacBookMarkMapper" > <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.OpacBookMark" > <id column="ID" property="id" jdbcType="DECIMAL" /> <result column="BIBID" property="bibid" jdbcType="DECIMAL" /> <result column="RDRID" property="rdrid" jdbcType="DECIMAL" /> <result column="REGDATE" property="regdate" jdbcType="DECIMAL" /> <result column="REGTIME" property="regtime" jdbcType="DECIMAL" /> <result column="STATUS" property="status" jdbcType="CHAR" /> <result column="NAME" property="name" jdbcType="VARCHAR" /> <result column="NOTE" property="note" jdbcType="VARCHAR" /> </resultMap> <sql id="Base_Column_List" > ID, BIBID, RDRID, REGDATE, REGTIME, STATUS, NAME, NOTE </sql> <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" > select <include refid="Base_Column_List" /> from OPAC_BOOKMARK where ID = #{id,jdbcType=DECIMAL} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" > delete from OPAC_BOOKMARK where ID = #{id,jdbcType=DECIMAL} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.OpacBookMark" > insert into OPAC_BOOKMARK (ID, BIBID, RDRID, REGDATE, REGTIME, STATUS, NAME, NOTE) values (#{id,jdbcType=DECIMAL}, #{bibid,jdbcType=DECIMAL}, #{rdrid,jdbcType=DECIMAL}, #{regdate,jdbcType=DECIMAL}, #{regtime,jdbcType=DECIMAL}, #{status,jdbcType=CHAR}, #{name,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.OpacBookMark" > <selectKey keyProperty="id" resultType="java.lang.Long" order="BEFORE"> select OPAC_BOOKMARK_SEQ.nextval a FROM dual </selectKey> insert into OPAC_BOOKMARK <trim prefix="(" suffix=")" suffixOverrides="," > <if test="id != null" > ID, </if> <if test="bibid != null" > BIBID, </if> <if test="rdrid != null" > RDRID, </if> <if test="regdate != null" > REGDATE, </if> <if test="regtime != null" > REGTIME, </if> <if test="status != null" > STATUS, </if> <if test="name != null" > NAME, </if> <if test="note != null" > NOTE, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides="," > <if test="id != null" > #{id,jdbcType=DECIMAL}, </if> <if test="bibid != null" > #{bibid,jdbcType=DECIMAL}, </if> <if test="rdrid != null" > #{rdrid,jdbcType=DECIMAL}, </if> <if test="regdate != null" > #{regdate,jdbcType=DECIMAL}, </if> <if test="regtime != null" > #{regtime,jdbcType=DECIMAL}, </if> <if test="status != null" > #{status,jdbcType=CHAR}, </if> <if test="name != null" > #{name,jdbcType=VARCHAR}, </if> <if test="note != null" > #{note,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.OpacBookMark" > update OPAC_BOOKMARK <set > <if test="bibid != null" > BIBID = #{bibid,jdbcType=DECIMAL}, </if> <if test="rdrid != null" > RDRID = #{rdrid,jdbcType=DECIMAL}, </if> <if test="regdate != null" > REGDATE = #{regdate,jdbcType=DECIMAL}, </if> <if test="regtime != null" > REGTIME = #{regtime,jdbcType=DECIMAL}, </if> <if test="status != null" > STATUS = #{status,jdbcType=CHAR}, </if> <if test="name != null" > NAME = #{name,jdbcType=VARCHAR}, </if> <if test="note != null" > NOTE = #{note,jdbcType=VARCHAR}, </if> </set> where ID = #{id,jdbcType=DECIMAL} </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.OpacBookMark" > update OPAC_BOOKMARK set BIBID = #{bibid,jdbcType=DECIMAL}, RDRID = #{rdrid,jdbcType=DECIMAL}, REGDATE = #{regdate,jdbcType=DECIMAL}, REGTIME = #{regtime,jdbcType=DECIMAL}, STATUS = #{status,jdbcType=CHAR}, NAME = #{name,jdbcType=VARCHAR}, NOTE = #{note,jdbcType=VARCHAR} where ID = #{id,jdbcType=DECIMAL} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.OpacBookMark" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from OPAC_BOOKMARK where 1=1 <if test="status != null"> and STATUS = #{status,jdbcType=CHAR} </if> <if test="bibid != null"> and BIBID = #{bibid,jdbcType=DECIMAL} </if> </select> <select id="listWithCondition" parameterType="com.jishen.common.SrchLimitEntity" resultType="com.jishen.common.OpacBookMarkWithBookAndRdrEntity"> select OPAC_BOOKMARK.ID, OPAC_BOOKMARK.BIBID, OPAC_BOOKMARK.RDRID, OPAC_BOOKMARK.REGDATE, OPAC_BOOKMARK.REGTIME, OPAC_BOOKMARK.NAME,OPAC_BOOKMARK.STATUS, OPAC_BOOKMARK.NOTE, LIB_BIBLIOGRAPHY.title ,LIB_BIBLIOGRAPHY.price price,LIB_BIBLIOGRAPHY.author, LIB_BIBLIOGRAPHY.publish, LIB_BIBLIOGRAPHY.publishaddress, LIB_BIBLIOGRAPHY.publishdate, LIB_BIBLIOGRAPHY.isbn, LIB_BIBLIOGRAPHY.subject, LIB_CIR_READER.rdrno ,LIB_CIR_READER.name rdrname FROM OPAC_BOOKMARK left join LIB_BIBLIOGRAPHY on LIB_BIBLIOGRAPHY.id = OPAC_BOOKMARK.BIBID left join LIB_CIR_READER on LIB_CIR_READER.id = OPAC_BOOKMARK.RDRID where 1=1 <include refid="common.condition"></include> </select> </mapper>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de