Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\LibCirCurfineMapper.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.LibCirCurfineMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.LibCirCurfine"> <id column="FINEID" jdbcType="DECIMAL" property="fineid" /> <result column="RDRID" jdbcType="DECIMAL" property="rdrid" /> <result column="TYPE" jdbcType="CHAR" property="type" /> <result column="MONEY" jdbcType="DECIMAL" property="money" /> <result column="FINDATE" jdbcType="DECIMAL" property="findate" /> <result column="FINTIME" jdbcType="DECIMAL" property="fintime" /> <result column="OPERID" jdbcType="DECIMAL" property="operid" /> <result column="NOTE" jdbcType="VARCHAR" property="note" /> <result column="BIBID" jdbcType="DECIMAL" property="bibid" /> <result column="HLDID" jdbcType="DECIMAL" property="hldid" /> <result column="LOCCODE" jdbcType="VARCHAR" property="loccode" /> <result column="RESEFLD1" jdbcType="VARCHAR" property="resefld1" /> <result column="RESEFLD2" jdbcType="VARCHAR" property="resefld2" /> </resultMap> <sql id="Base_Column_List"> FINEID, RDRID, TYPE, MONEY, FINDATE, FINTIME, OPERID, NOTE, BIBID, HLDID, LOCCODE, RESEFLD1, RESEFLD2 </sql> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CIR_CURFINE where FINEID = #{fineid,jdbcType=DECIMAL} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> delete from LIB_CIR_CURFINE where FINEID = #{fineid,jdbcType=DECIMAL} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.LibCirCurfine"> insert into LIB_CIR_CURFINE (FINEID, RDRID, TYPE, MONEY, FINDATE, FINTIME, OPERID, NOTE, BIBID, HLDID, LOCCODE) values (#{fineid,jdbcType=DECIMAL}, #{rdrid,jdbcType=DECIMAL}, #{type,jdbcType=CHAR}, #{money,jdbcType=DECIMAL}, #{findate,jdbcType=DECIMAL}, #{fintime,jdbcType=DECIMAL}, #{operid,jdbcType=DECIMAL}, #{note,jdbcType=VARCHAR}, #{bibid,jdbcType=DECIMAL}, #{hldid,jdbcType=DECIMAL}, #{loccode,jdbcType=VARCHAR}) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.LibCirCurfine"> insert into LIB_CIR_CURFINE <trim prefix="(" suffix=")" suffixOverrides=","> <if test="fineid != null"> FINEID, </if> <if test="rdrid != null"> RDRID, </if> <if test="type != null"> TYPE, </if> <if test="money != null"> MONEY, </if> <if test="findate != null"> FINDATE, </if> <if test="fintime != null"> FINTIME, </if> <if test="operid != null"> OPERID, </if> <if test="note != null"> NOTE, </if> <if test="bibid != null"> BIBID, </if> <if test="hldid != null"> HLDID, </if> <if test="loccode != null"> LOCCODE, </if> <if test="resefld1 != null"> RESEFLD1, </if> <if test="resefld2 != null"> RESEFLD2, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="fineid != null"> #{fineid,jdbcType=DECIMAL}, </if> <if test="rdrid != null"> #{rdrid,jdbcType=DECIMAL}, </if> <if test="type != null"> #{type,jdbcType=CHAR}, </if> <if test="money != null"> #{money,jdbcType=DECIMAL}, </if> <if test="findate != null"> #{findate,jdbcType=DECIMAL}, </if> <if test="fintime != null"> #{fintime,jdbcType=DECIMAL}, </if> <if test="operid != null"> #{operid,jdbcType=DECIMAL}, </if> <if test="note != null"> #{note,jdbcType=VARCHAR}, </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="resefld1 != null"> #{resefld1,jdbcType=VARCHAR}, </if> <if test="resefld2 != null"> #{resefld2,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.LibCirCurfine"> update LIB_CIR_CURFINE <set> <if test="rdrid != null"> RDRID = #{rdrid,jdbcType=DECIMAL}, </if> <if test="type != null"> TYPE = #{type,jdbcType=CHAR}, </if> <if test="money != null"> MONEY = #{money,jdbcType=DECIMAL}, </if> <if test="findate != null"> FINDATE = #{findate,jdbcType=DECIMAL}, </if> <if test="fintime != null"> FINTIME = #{fintime,jdbcType=DECIMAL}, </if> <if test="operid != null"> OPERID = #{operid,jdbcType=DECIMAL}, </if> <if test="note != null"> NOTE = #{note,jdbcType=VARCHAR}, </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> </set> where FINEID = #{fineid,jdbcType=DECIMAL} </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.LibCirCurfine"> update LIB_CIR_CURFINE set RDRID = #{rdrid,jdbcType=DECIMAL}, TYPE = #{type,jdbcType=CHAR}, MONEY = #{money,jdbcType=DECIMAL}, FINDATE = #{findate,jdbcType=DECIMAL}, FINTIME = #{fintime,jdbcType=DECIMAL}, OPERID = #{operid,jdbcType=DECIMAL}, NOTE = #{note,jdbcType=VARCHAR}, BIBID = #{bibid,jdbcType=DECIMAL}, HLDID = #{hldid,jdbcType=DECIMAL}, LOCCODE = #{loccode,jdbcType=VARCHAR} where FINEID = #{fineid,jdbcType=DECIMAL} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.LibCirCurfine" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CIR_CURFINE where 1=1 <if test="type != null"> and type in (${type}) </if> <if test="rdrid != null"> and rdrid = #{rdrid,jdbcType=DECIMAL} </if> <if test="fineid != null"> and fineid = #{fineid,jdbcType=DECIMAL} </if> </select> <select id="listSelectiveUnion" parameterType="com.jishen.common.LibCirCurfineUnionEntity" resultType="com.jishen.common.LibCirCurfineUnionEntity"> select LIB_CIR_CURFINE.FINEID FINEID,LIB_CIR_CURFINE.RDRID RDRID, LIB_CIR_CURFINE.TYPE TYPE,LIB_CIR_CURFINE.MONEY MONEY, LIB_CIR_CURFINE.FINDATE FINDATE, LIB_CIR_CURFINE.FINTIME FINTIME, LIB_CIR_CURFINE.OPERID OPERID, LIB_CIR_CURFINE.NOTE NOTE, LIB_CIR_CURFINE.BIBID BIBID, LIB_CIR_CURFINE.HLDID HLDID, LIB_CIR_CURFINE.LOCCODE LOCCODE,LIB_BIBLIOGRAPHY.TITLE TITLE,LIB_HOLDINGS.BARCODE BARCODE,LIB_HOLDINGS.CALLNO CALLNO ,LIB_CIR_CURFINE.RESEFLD1 RESEFLD1,LIB_CIR_CURFINE.RESEFLD2 RESEFLD2 from LIB_CIR_CURFINE left join LIB_BIBLIOGRAPHY on LIB_BIBLIOGRAPHY.id = LIB_CIR_CURFINE.BIBID left join LIB_HOLDINGS on LIB_HOLDINGS.id = LIB_CIR_CURFINE.HLDID where 1=1 <if test="type != null"> and LIB_CIR_CURFINE.type in (${type}) </if> <if test="rdrid != null"> and LIB_CIR_CURFINE.rdrid = #{rdrid,jdbcType=DECIMAL} </if> <if test="fineid != null"> and LIB_CIR_CURFINE.fineid = #{fineid,jdbcType=DECIMAL} </if> </select> <select id="selectSum" resultMap="BaseResultMap"> select sum(money) money, type from LIB_CIR_CURFINE where 1=1 <if test="rdrid != null"> and rdrid = #{rdrid,jdbcType=DECIMAL} </if> <if test="types != null"> and type in <foreach collection="types" item="type" index="index" open="(" close=")" separator=","> #{type,jdbcType=CHAR} </foreach> </if> group by type </select> <select id="listWithCondition" parameterType="com.jishen.common.SrchLimitEntity" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CIR_CURFINE 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