Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\LibCirLogMapper.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.LibCirLogMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.LibCirLog"> <id column="ID" jdbcType="DECIMAL" property="id" /> <result column="LOGTYPE" jdbcType="VARCHAR" property="logtype" /> <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="LOCCODE" jdbcType="VARCHAR" property="loccode" /> <result column="LOGDATE" jdbcType="DECIMAL" property="logdate" /> <result column="LOGSTAMP" jdbcType="DECIMAL" property="logstamp" /> <result column="OPERID" jdbcType="DECIMAL" property="operid" /> <result column="INFO1" jdbcType="VARCHAR" property="info1" /> <result column="INFO2" jdbcType="VARCHAR" property="info2" /> <result column="IP" jdbcType="VARCHAR" property="ip" /> <result column="NOTE" jdbcType="VARCHAR" property="note" /> <result column="PARENTID" jdbcType="DECIMAL" property="parentid" /> <result column="logloandate" jdbcType="VARCHAR" property="logloandate" /> <result column="logreturndate" jdbcType="VARCHAR" property="logreturndate" /> </resultMap> <sql id="Base_Column_List"> ID, LOGTYPE, LIBCODE, RDRID, BIBID, HLDID, LOCCODE, LOGDATE, LOGSTAMP, OPERID, INFO1, INFO2, IP, NOTE, PARENTID, logloandate, logreturndate </sql> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CIR_LOG where ID = #{id,jdbcType=DECIMAL} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> delete from LIB_CIR_LOG where ID = #{id,jdbcType=DECIMAL} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.LibCirLog"> insert into LIB_CIR_LOG (ID, LOGTYPE, LIBCODE, RDRID, BIBID, HLDID, LOCCODE, LOGDATE, LOGSTAMP, OPERID, INFO1, INFO2, IP, NOTE, PARENTID) values (#{id,jdbcType=DECIMAL}, #{logtype,jdbcType=VARCHAR}, #{libcode,jdbcType=VARCHAR}, #{rdrid,jdbcType=DECIMAL}, #{bibid,jdbcType=DECIMAL}, #{hldid,jdbcType=DECIMAL}, #{loccode,jdbcType=VARCHAR}, #{logdate,jdbcType=DECIMAL}, #{logstamp,jdbcType=DECIMAL}, #{operid,jdbcType=DECIMAL}, #{info1,jdbcType=VARCHAR}, #{info2,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{parentid,jdbcType=DECIMAL}) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.LibCirLog"> <selectKey keyProperty="id" resultType="java.lang.Long" order="BEFORE"> select LIB_CIR_LOG_SEQ.nextval a FROM dual </selectKey> insert into LIB_CIR_LOG <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> ID, </if> <if test="logtype != null"> LOGTYPE, </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="loccode != null"> LOCCODE, </if> <if test="logdate != null"> LOGDATE, </if> <if test="logstamp != null"> LOGSTAMP, </if> <if test="operid != null"> OPERID, </if> <if test="info1 != null"> INFO1, </if> <if test="info2 != null"> INFO2, </if> <if test="ip != null"> IP, </if> <if test="note != null"> NOTE, </if> <if test="parentid != null"> PARENTID, </if> <if test="logloandate != null"> logloandate, </if> <if test="logreturndate != null"> logreturndate, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null"> #{id,jdbcType=DECIMAL}, </if> <if test="logtype != null"> #{logtype,jdbcType=VARCHAR}, </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="loccode != null"> #{loccode,jdbcType=VARCHAR}, </if> <if test="logdate != null"> #{logdate,jdbcType=DECIMAL}, </if> <if test="logstamp != null"> #{logstamp,jdbcType=DECIMAL}, </if> <if test="operid != null"> #{operid,jdbcType=DECIMAL}, </if> <if test="info1 != null"> #{info1,jdbcType=VARCHAR}, </if> <if test="info2 != null"> #{info2,jdbcType=VARCHAR}, </if> <if test="ip != null"> #{ip,jdbcType=VARCHAR}, </if> <if test="note != null"> #{note,jdbcType=VARCHAR}, </if> <if test="parentid != null"> #{parentid,jdbcType=DECIMAL}, </if> <if test="logloandate != null"> #{logloandate,jdbcType=VARCHAR}, </if> <if test="logreturndate != null"> #{logreturndate,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.LibCirLog"> update LIB_CIR_LOG <set> <if test="logtype != null"> LOGTYPE = #{logtype,jdbcType=VARCHAR}, </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="loccode != null"> LOCCODE = #{loccode,jdbcType=VARCHAR}, </if> <if test="logdate != null"> LOGDATE = #{logdate,jdbcType=DECIMAL}, </if> <if test="logstamp != null"> LOGSTAMP = #{logstamp,jdbcType=DECIMAL}, </if> <if test="operid != null"> OPERID = #{operid,jdbcType=DECIMAL}, </if> <if test="info1 != null"> INFO1 = #{info1,jdbcType=VARCHAR}, </if> <if test="info2 != null"> INFO2 = #{info2,jdbcType=VARCHAR}, </if> <if test="ip != null"> IP = #{ip,jdbcType=VARCHAR}, </if> <if test="note != null"> NOTE = #{note,jdbcType=VARCHAR}, </if> <if test="parentid != null"> PARENTID = #{parentid,jdbcType=DECIMAL}, </if> </set> where ID = #{id,jdbcType=DECIMAL} </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.LibCirLog"> update LIB_CIR_LOG set LOGTYPE = #{logtype,jdbcType=VARCHAR}, LIBCODE = #{libcode,jdbcType=VARCHAR}, RDRID = #{rdrid,jdbcType=DECIMAL}, BIBID = #{bibid,jdbcType=DECIMAL}, HLDID = #{hldid,jdbcType=DECIMAL}, LOCCODE = #{loccode,jdbcType=VARCHAR}, LOGDATE = #{logdate,jdbcType=DECIMAL}, LOGSTAMP = #{logstamp,jdbcType=DECIMAL}, OPERID = #{operid,jdbcType=DECIMAL}, INFO1 = #{info1,jdbcType=VARCHAR}, INFO2 = #{info2,jdbcType=VARCHAR}, IP = #{ip,jdbcType=VARCHAR}, NOTE = #{note,jdbcType=VARCHAR}, PARENTID = #{parentid,jdbcType=DECIMAL} where ID = #{id,jdbcType=DECIMAL} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.LibCirLog" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CIR_LOG where 1=1 <if test="logtype != null"> and LOGTYPE =#{logtype,jdbcType=VARCHAR} </if> <if test="rdrid != null"> and rdrid = #{rdrid,jdbcType=DECIMAL} </if> <if test="hldid != null"> and hldid = #{hldid,jdbcType=DECIMAL} </if> </select> <select id="listSelectiveUnionByCondtion" resultType="com.jishen.common.LibCirLogUnionEntity"> select title,author,LIB_HOLDINGS.price price,publish,publishaddress,publishdate,isbn,subject,seriesname, barcode, LIB_HOLDINGS.status status,LIB_HOLDINGS.callno callno,location,curlocation, doctype,loandate, loantime,returndate,renewnum,volumeinfo,rdrno,name,LIB_CIR_READER.telephone,LIB_CIR_READER.idcard,LIB_CIR_LOG.* from LIB_CIR_LOG left join LIB_BIBLIOGRAPHY on LIB_BIBLIOGRAPHY.id = LIB_CIR_LOG.BIBID left join LIB_HOLDINGS on LIB_HOLDINGS.id = LIB_CIR_LOG.HLDID left join LIB_CIR_READER on LIB_CIR_READER.id = LIB_CIR_LOG.RDRID where 1=1 <if test="record.logtype != null"> and LIB_CIR_LOG.LOGTYPE =#{record.logtype,jdbcType=VARCHAR} </if> <if test="record.operid != null"> and LIB_CIR_LOG.OPERID =#{record.operid,jdbcType=VARCHAR} </if> <if test="record.rdrid != null"> and LIB_CIR_LOG.rdrid = #{record.rdrid,jdbcType=DECIMAL} </if> <if test="record.hldid != null"> and LIB_CIR_LOG.hldid = #{record.hldid,jdbcType=DECIMAL} </if> <if test="record.bibid != null"> and LIB_CIR_LOG.BIBID = #{record.bibid,jdbcType=DECIMAL} </if> <include refid="common.condition"/> </select> <select id="listWithCondition" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CIR_LOG 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