Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\LibCirReserveMapper.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.LibCirReserveMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.LibCirReserve"> <id column="ID" jdbcType="DECIMAL" property="id" /> <result column="RESTYPE" jdbcType="CHAR" property="restype" /> <result column="LIBCODE" jdbcType="VARCHAR" property="libcode" /> <result column="RDRID" jdbcType="DECIMAL" property="rdrid" /> <result column="BIBID" jdbcType="DECIMAL" property="bibid" /> <result column="HLDID" jdbcType="DECIMAL" property="hldid" /> <result column="RESSTATUS" jdbcType="CHAR" property="resstatus" /> <result column="RESDATE" jdbcType="VARCHAR" property="resdate" /> <result column="EXPIRYDATE" jdbcType="VARCHAR" property="expirydate" /> <result column="RETURNDATE" jdbcType="VARCHAR" property="returndate" /> <result column="NOTIFYWAY" jdbcType="CHAR" property="notifyway" /> <result column="NOTIFYCOUNT" jdbcType="DECIMAL" property="notifycount" /> <result column="NOTIFYDATE" jdbcType="VARCHAR" property="notifydate" /> <result column="FETCHDATE" jdbcType="VARCHAR" property="fetchdate" /> <result column="LOCATION" jdbcType="VARCHAR" property="location" /> <result column="NOTE" jdbcType="VARCHAR" property="note" /> </resultMap> <sql id="Base_Column_List"> ID, RESTYPE, LIBCODE, RDRID, BIBID, HLDID, RESSTATUS, RESDATE, EXPIRYDATE, RETURNDATE, NOTIFYWAY, NOTIFYCOUNT, NOTIFYDATE, FETCHDATE, LOCATION, NOTE </sql> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CIR_RESERVE where ID = #{id,jdbcType=DECIMAL} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> delete from LIB_CIR_RESERVE where ID = #{id,jdbcType=DECIMAL} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.LibCirReserve"> insert into LIB_CIR_RESERVE (ID, RESTYPE, LIBCODE, RDRID, BIBID, HLDID, RESSTATUS, RESDATE, EXPIRYDATE, RETURNDATE, NOTIFYWAY, NOTIFYCOUNT, NOTIFYDATE, FETCHDATE, LOCATION, NOTE) values (#{id,jdbcType=DECIMAL}, #{restype,jdbcType=CHAR}, #{libcode,jdbcType=VARCHAR}, #{rdrid,jdbcType=DECIMAL}, #{bibid,jdbcType=DECIMAL}, #{hldid,jdbcType=DECIMAL}, #{resstatus,jdbcType=CHAR}, #{resdate,jdbcType=VARCHAR}, #{expirydate,jdbcType=VARCHAR}, #{returndate,jdbcType=VARCHAR}, #{notifyway,jdbcType=CHAR}, #{notifycount,jdbcType=DECIMAL}, #{notifydate,jdbcType=VARCHAR}, #{fetchdate,jdbcType=VARCHAR}, #{location,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.LibCirReserve"> <selectKey keyProperty="id" resultType="java.lang.Long" order="BEFORE"> select LIB_CIR_RESERVE_SEQ.nextval a FROM dual </selectKey> insert into LIB_CIR_RESERVE <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> ID, </if> <if test="restype != null"> RESTYPE, </if> <if test="libcode != null"> LIBCODE, </if> <if test="rdrid != null"> RDRID, </if> <if test="bibid != null"> BIBID, </if> <if test="hldid != null"> HLDID, </if> <if test="resstatus != null"> RESSTATUS, </if> <if test="resdate != null"> RESDATE, </if> <if test="expirydate != null"> EXPIRYDATE, </if> <if test="returndate != null"> RETURNDATE, </if> <if test="notifyway != null"> NOTIFYWAY, </if> <if test="notifycount != null"> NOTIFYCOUNT, </if> <if test="notifydate != null"> NOTIFYDATE, </if> <if test="fetchdate != null"> FETCHDATE, </if> <if test="location != null"> LOCATION, </if> <if test="note != null"> NOTE, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null"> #{id,jdbcType=DECIMAL}, </if> <if test="restype != null"> #{restype,jdbcType=CHAR}, </if> <if test="libcode != null"> #{libcode,jdbcType=VARCHAR}, </if> <if test="rdrid != null"> #{rdrid,jdbcType=DECIMAL}, </if> <if test="bibid != null"> #{bibid,jdbcType=DECIMAL}, </if> <if test="hldid != null"> #{hldid,jdbcType=DECIMAL}, </if> <if test="resstatus != null"> #{resstatus,jdbcType=CHAR}, </if> <if test="resdate != null"> #{resdate,jdbcType=VARCHAR}, </if> <if test="expirydate != null"> #{expirydate,jdbcType=VARCHAR}, </if> <if test="returndate != null"> #{returndate,jdbcType=VARCHAR}, </if> <if test="notifyway != null"> #{notifyway,jdbcType=CHAR}, </if> <if test="notifycount != null"> #{notifycount,jdbcType=DECIMAL}, </if> <if test="notifydate != null"> #{notifydate,jdbcType=VARCHAR}, </if> <if test="fetchdate != null"> #{fetchdate,jdbcType=VARCHAR}, </if> <if test="location != null"> #{location,jdbcType=VARCHAR}, </if> <if test="note != null"> #{note,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.LibCirReserve"> update LIB_CIR_RESERVE <set> <if test="restype != null"> RESTYPE = #{restype,jdbcType=CHAR}, </if> <if test="libcode != null"> LIBCODE = #{libcode,jdbcType=VARCHAR}, </if> <if test="rdrid != null"> RDRID = #{rdrid,jdbcType=DECIMAL}, </if> <if test="bibid != null"> BIBID = #{bibid,jdbcType=DECIMAL}, </if> <if test="hldid != null"> HLDID = #{hldid,jdbcType=DECIMAL}, </if> <if test="resstatus != null"> RESSTATUS = #{resstatus,jdbcType=CHAR}, </if> <if test="resdate != null"> RESDATE = #{resdate,jdbcType=VARCHAR}, </if> <if test="expirydate != null"> EXPIRYDATE = #{expirydate,jdbcType=VARCHAR}, </if> <if test="returndate != null"> RETURNDATE = #{returndate,jdbcType=VARCHAR}, </if> <if test="notifyway != null"> NOTIFYWAY = #{notifyway,jdbcType=CHAR}, </if> <if test="notifycount != null"> NOTIFYCOUNT = #{notifycount,jdbcType=DECIMAL}, </if> <if test="notifydate != null"> NOTIFYDATE = #{notifydate,jdbcType=VARCHAR}, </if> <if test="fetchdate != null"> FETCHDATE = #{fetchdate,jdbcType=VARCHAR}, </if> <if test="location != null"> LOCATION = #{location,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.LibCirReserve"> update LIB_CIR_RESERVE set RESTYPE = #{restype,jdbcType=CHAR}, LIBCODE = #{libcode,jdbcType=VARCHAR}, RDRID = #{rdrid,jdbcType=DECIMAL}, BIBID = #{bibid,jdbcType=DECIMAL}, HLDID = #{hldid,jdbcType=DECIMAL}, RESSTATUS = #{resstatus,jdbcType=CHAR}, RESDATE = #{resdate,jdbcType=VARCHAR}, EXPIRYDATE = #{expirydate,jdbcType=VARCHAR}, RETURNDATE = #{returndate,jdbcType=VARCHAR}, NOTIFYWAY = #{notifyway,jdbcType=CHAR}, NOTIFYCOUNT = #{notifycount,jdbcType=DECIMAL}, NOTIFYDATE = #{notifydate,jdbcType=VARCHAR}, FETCHDATE = #{fetchdate,jdbcType=VARCHAR}, LOCATION = #{location,jdbcType=VARCHAR}, NOTE = #{note,jdbcType=VARCHAR} where ID = #{id,jdbcType=DECIMAL} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.LibCirReserve" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CIR_RESERVE where 1=1 <if test="rdrid != null"> and rdrid = #{rdrid,jdbcType=DECIMAL} </if> <if test="restype != null"> and restype = #{restype,jdbcType=CHAR} </if> <if test="resstatus != null"> and resstatus in (${resstatus}) </if> <if test="bibid != null"> and bibid = #{bibid,jdbcType=DECIMAL} </if> <if test="hldid != null"> and hldid = #{hldid,jdbcType=DECIMAL} </if> <if test="id != null"> and id = #{id,jdbcType=DECIMAL} </if> </select> <select id="listUnionSelective" parameterType="com.jishen.common.LibCirReserveBibHoldRdrEntity" resultType="com.jishen.common.LibCirReserveBibHoldRdrEntity"> select lib_cir_reserve.id, lib_cir_reserve.restype, lib_cir_reserve.libcode, lib_cir_reserve.rdrid, lib_cir_reserve.bibid, lib_cir_reserve.hldid, lib_cir_reserve.resstatus,lib_cir_reserve.resdate, lib_cir_reserve.expirydate, lib_cir_reserve.returndate, lib_cir_reserve.notifyway, lib_cir_reserve.notifycount, lib_cir_reserve.notifydate, lib_cir_reserve.fetchdate, lib_cir_reserve.location, lib_cir_reserve.note,title,barcode,lib_cir_reader.name as rdrname,lib_cir_reader.rdrno as rdrno,telephone from lib_cir_reserve left join lib_bibliography on lib_cir_reserve.bibid=lib_bibliography.id left join lib_holdings on lib_holdings.id=lib_cir_reserve.hldid left join lib_cir_reader on lib_cir_reader.id=lib_cir_reserve.rdrid where 1=1 <if test="rdrid != null"> and LIB_CIR_RESERVE.rdrid = #{rdrid,jdbcType=DECIMAL} </if> <if test="restype != null"> and LIB_CIR_RESERVE.restype = #{restype,jdbcType=CHAR} </if> <if test="resstatus != null"> and LIB_CIR_RESERVE.resstatus in (${resstatus}) </if> <if test="bibid != null"> and LIB_CIR_RESERVE.bibid = #{bibid,jdbcType=DECIMAL} </if> <if test="hldid != null"> and LIB_CIR_RESERVE.hldid = #{hldid,jdbcType=DECIMAL} </if> <if test="barcode != null"> and lib_holdings.barcode = #{barcode,jdbcType=VARCHAR} </if> </select> <select id="listWithCondition" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CIR_RESERVE where 1=1 <include refid="common.condition"/> </select> </mapper>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de