Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\LibCirSpeloanMapper.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.LibCirSpeloanMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.LibCirSpeloan"> <id column="ID" jdbcType="DECIMAL" property="id" /> <result column="LIBCODE" jdbcType="VARCHAR" property="libcode" /> <result column="RDRID" jdbcType="DECIMAL" property="rdrid" /> <result column="BIBID" jdbcType="DECIMAL" property="bibid" /> <result column="LOANKEY" jdbcType="VARCHAR" property="loankey" /> <result column="RULECODE" jdbcType="VARCHAR" property="rulecode" /> <result column="LOANDATE" jdbcType="VARCHAR" property="loandate" /> <result column="LOANTIME" jdbcType="VARCHAR" property="loantime" /> <result column="RETURNDATE" jdbcType="VARCHAR" property="returndate" /> <result column="LOCATION" jdbcType="VARCHAR" property="location" /> <result column="RENEWNUM" jdbcType="DECIMAL" property="renewnum" /> <result column="NOTE" jdbcType="VARCHAR" property="note" /> <result column="SPETYPE" jdbcType="VARCHAR" property="spetype" /> </resultMap> <sql id="Base_Column_List"> ID, LIBCODE, RDRID, BIBID, LOANKEY, RULECODE, LOANDATE, LOANTIME, RETURNDATE, LOCATION, RENEWNUM, NOTE,SPETYPE </sql> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CIR_SPELOAN where ID = #{id,jdbcType=DECIMAL} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> delete from LIB_CIR_SPELOAN where ID = #{id,jdbcType=DECIMAL} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.LibCirSpeloan"> insert into LIB_CIR_SPELOAN (ID, LIBCODE, RDRID, BIBID, LOANKEY, RULECODE, LOANDATE, LOANTIME, RETURNDATE, LOCATION, RENEWNUM, NOTE ) values (#{id,jdbcType=DECIMAL}, #{libcode,jdbcType=VARCHAR}, #{rdrid,jdbcType=DECIMAL}, #{bibid,jdbcType=DECIMAL}, #{loankey,jdbcType=VARCHAR}, #{rulecode,jdbcType=VARCHAR}, #{loandate,jdbcType=VARCHAR}, #{loantime,jdbcType=VARCHAR}, #{returndate,jdbcType=VARCHAR}, #{location,jdbcType=VARCHAR}, #{renewnum,jdbcType=DECIMAL}, #{note,jdbcType=VARCHAR} ) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.LibCirSpeloan"> <selectKey keyProperty="id" resultType="java.lang.Long" order="BEFORE"> select LIB_CIR_SPELOAN_SEQ.nextval a FROM dual </selectKey> insert into LIB_CIR_SPELOAN <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> ID, </if> <if test="libcode != null"> LIBCODE, </if> <if test="rdrid != null"> RDRID, </if> <if test="bibid != null"> BIBID, </if> <if test="loankey != null"> LOANKEY, </if> <if test="rulecode != null"> RULECODE, </if> <if test="loandate != null"> LOANDATE, </if> <if test="loantime != null"> LOANTIME, </if> <if test="returndate != null"> RETURNDATE, </if> <if test="location != null"> LOCATION, </if> <if test="renewnum != null"> RENEWNUM, </if> <if test="note != null"> NOTE, </if> <if test="spetype != null"> spetype, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null"> #{id,jdbcType=DECIMAL}, </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="loankey != null"> #{loankey,jdbcType=VARCHAR}, </if> <if test="rulecode != null"> #{rulecode,jdbcType=VARCHAR}, </if> <if test="loandate != null"> #{loandate,jdbcType=VARCHAR}, </if> <if test="loantime != null"> #{loantime,jdbcType=VARCHAR}, </if> <if test="returndate != null"> #{returndate,jdbcType=VARCHAR}, </if> <if test="location != null"> #{location,jdbcType=VARCHAR}, </if> <if test="renewnum != null"> #{renewnum,jdbcType=DECIMAL}, </if> <if test="note != null"> #{note,jdbcType=VARCHAR}, </if> <if test="spetype != null"> #{spetype,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.LibCirSpeloan"> update LIB_CIR_SPELOAN <set> <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="loankey != null"> LOANKEY = #{loankey,jdbcType=VARCHAR}, </if> <if test="rulecode != null"> RULECODE = #{rulecode,jdbcType=VARCHAR}, </if> <if test="loandate != null"> LOANDATE = #{loandate,jdbcType=VARCHAR}, </if> <if test="loantime != null"> LOANTIME = #{loantime,jdbcType=VARCHAR}, </if> <if test="returndate != null"> RETURNDATE = #{returndate,jdbcType=VARCHAR}, </if> <if test="location != null"> LOCATION = #{location,jdbcType=VARCHAR}, </if> <if test="renewnum != null"> RENEWNUM = #{renewnum,jdbcType=DECIMAL}, </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.LibCirSpeloan"> update LIB_CIR_SPELOAN set LIBCODE = #{libcode,jdbcType=VARCHAR}, RDRID = #{rdrid,jdbcType=DECIMAL}, BIBID = #{bibid,jdbcType=DECIMAL}, LOANKEY = #{loankey,jdbcType=VARCHAR}, RULECODE = #{rulecode,jdbcType=VARCHAR}, LOANDATE = #{loandate,jdbcType=VARCHAR}, LOANTIME = #{loantime,jdbcType=VARCHAR}, RETURNDATE = #{returndate,jdbcType=VARCHAR}, LOCATION = #{location,jdbcType=VARCHAR}, RENEWNUM = #{renewnum,jdbcType=DECIMAL}, NOTE = #{note,jdbcType=VARCHAR} where ID = #{id,jdbcType=DECIMAL} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.LibCirSpeloan" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CIR_SPELOAN where 1=1 <if test="rdrid != null"> and rdrid = #{rdrid,jdbcType=DECIMAL} </if> <if test="bibid != null"> and bibid = #{bibid,jdbcType=DECIMAL} </if> <if test="rulecode != null"> and RULECODE = #{rulecode,jdbcType=VARCHAR} </if> <if test="loankey != null"> and loankey = #{loankey,jdbcType=VARCHAR} </if> </select> <select id="listWithCondition" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CIR_SPELOAN where 1=1 <include refid="common.condition"/> </select> <select id="listUnionCondition" resultType="java.util.Map"> select lib_cir_speloan.id as "id", lib_cir_speloan.libcode as "libcode", rdrid as "rdrid", telephone as "telephone", lib_cir_reader.name as "rdrname", lib_cir_reader.rdrno as "rdrno", bibid as "bibid", loankey as "loankey", rulecode as "rulecode", loandate as "loandate", loantime as "loantime", returndate as "returndate", location as "location", renewnum as "renewnum", title as "title",author as "author",isbn as "isbn",publish as "publish", publishaddress as "publishaddress", publishdate as "publishdate", price as "price" from LIB_CIR_SPELOAN left join lib_bibliography on LIB_CIR_SPELOAN.bibid=lib_bibliography.id left join lib_cir_reader on LIB_CIR_SPELOAN.rdrid=lib_cir_reader.id 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