Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\LibCirFinelogMapper.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.LibCirFinelogMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.LibCirFinelog"> <id column="ID" jdbcType="DECIMAL" property="id" /> <result column="RDRID" jdbcType="DECIMAL" property="rdrid" /> <result column="TYPE" jdbcType="VARCHAR" property="type" /> <result column="MONEY" jdbcType="DECIMAL" property="money" /> <result column="FINDATE" jdbcType="DECIMAL" property="findate" /> <result column="FINSTAMP" jdbcType="DECIMAL" property="finstamp" /> <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="RECTYPE" jdbcType="VARCHAR" property="rectype" /> <result column="PARENTID" jdbcType="DECIMAL" property="parentid" /> <result column="PAYWAY" jdbcType="CHAR" property="payway" /> <result column="RESEFLD1" jdbcType="VARCHAR" property="resefld1" /> <result column="RESEFLD2" jdbcType="VARCHAR" property="resefld2" /> <result column="OLPAYCODE" jdbcType="VARCHAR" property="olpaycode" /> </resultMap> <sql id="Base_Column_List"> ID, RDRID, TYPE, MONEY, FINDATE, FINSTAMP, OPERID, NOTE, BIBID, HLDID, LOCCODE, RECTYPE, PARENTID, PAYWAY, RESEFLD1, RESEFLD2, OLPAYCODE </sql> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CIR_FINELOG where ID = #{id,jdbcType=DECIMAL} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> delete from LIB_CIR_FINELOG where ID = #{id,jdbcType=DECIMAL} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.LibCirFinelog"> insert into LIB_CIR_FINELOG (ID, RDRID, TYPE, MONEY, FINDATE, FINSTAMP, OPERID, NOTE, BIBID, HLDID, LOCCODE, RECTYPE, PARENTID, PAYWAY, RESEFLD1, RESEFLD2, OLPAYCODE) values (#{id,jdbcType=DECIMAL}, #{rdrid,jdbcType=DECIMAL}, #{type,jdbcType=VARCHAR}, #{money,jdbcType=DECIMAL}, #{findate,jdbcType=DECIMAL}, #{finstamp,jdbcType=DECIMAL}, #{operid,jdbcType=DECIMAL}, #{note,jdbcType=VARCHAR}, #{bibid,jdbcType=DECIMAL}, #{hldid,jdbcType=DECIMAL}, #{loccode,jdbcType=VARCHAR}, #{rectype,jdbcType=VARCHAR}, #{parentid,jdbcType=DECIMAL}, #{payway,jdbcType=CHAR}, #{resefld1,jdbcType=VARCHAR}, #{resefld2,jdbcType=VARCHAR}, #{olpaycode,jdbcType=VARCHAR}) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.LibCirFinelog"> <selectKey keyProperty="id" resultType="java.lang.Long" order="BEFORE"> select LIB_CIR_FINELOG_SEQ.nextval a FROM dual </selectKey> insert into LIB_CIR_FINELOG <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> ID, </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="finstamp != null"> FINSTAMP, </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="rectype != null"> RECTYPE, </if> <if test="parentid != null"> PARENTID, </if> <if test="payway != null"> PAYWAY, </if> <if test="resefld1 != null"> RESEFLD1, </if> <if test="resefld2 != null"> RESEFLD2, </if> <if test="olpaycode != null"> OLPAYCODE, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null"> #{id,jdbcType=DECIMAL}, </if> <if test="rdrid != null"> #{rdrid,jdbcType=DECIMAL}, </if> <if test="type != null"> #{type,jdbcType=VARCHAR}, </if> <if test="money != null"> #{money,jdbcType=DECIMAL}, </if> <if test="findate != null"> #{findate,jdbcType=DECIMAL}, </if> <if test="finstamp != null"> #{finstamp,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="rectype != null"> #{rectype,jdbcType=VARCHAR}, </if> <if test="parentid != null"> #{parentid,jdbcType=DECIMAL}, </if> <if test="payway != null"> #{payway,jdbcType=CHAR}, </if> <if test="resefld1 != null"> #{resefld1,jdbcType=VARCHAR}, </if> <if test="resefld2 != null"> #{resefld2,jdbcType=VARCHAR}, </if> <if test="olpaycode != null"> #{olpaycode,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.LibCirFinelog"> update LIB_CIR_FINELOG <set> <if test="rdrid != null"> RDRID = #{rdrid,jdbcType=DECIMAL}, </if> <if test="type != null"> TYPE = #{type,jdbcType=VARCHAR}, </if> <if test="money != null"> MONEY = #{money,jdbcType=DECIMAL}, </if> <if test="findate != null"> FINDATE = #{findate,jdbcType=DECIMAL}, </if> <if test="finstamp != null"> FINSTAMP = #{finstamp,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> <if test="rectype != null"> RECTYPE = #{rectype,jdbcType=VARCHAR}, </if> <if test="parentid != null"> PARENTID = #{parentid,jdbcType=DECIMAL}, </if> <if test="payway != null"> PAYWAY = #{payway,jdbcType=CHAR}, </if> <if test="resefld1 != null"> RESEFLD1 = #{resefld1,jdbcType=VARCHAR}, </if> <if test="resefld2 != null"> RESEFLD2 = #{resefld2,jdbcType=VARCHAR}, </if> <if test="olpaycode != null"> OLPAYCODE = #{olpaycode,jdbcType=VARCHAR}, </if> </set> where ID = #{id,jdbcType=DECIMAL} </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.LibCirFinelog"> update LIB_CIR_FINELOG set RDRID = #{rdrid,jdbcType=DECIMAL}, TYPE = #{type,jdbcType=VARCHAR}, MONEY = #{money,jdbcType=DECIMAL}, FINDATE = #{findate,jdbcType=DECIMAL}, FINSTAMP = #{finstamp,jdbcType=DECIMAL}, OPERID = #{operid,jdbcType=DECIMAL}, NOTE = #{note,jdbcType=VARCHAR}, BIBID = #{bibid,jdbcType=DECIMAL}, HLDID = #{hldid,jdbcType=DECIMAL}, LOCCODE = #{loccode,jdbcType=VARCHAR}, RECTYPE = #{rectype,jdbcType=VARCHAR}, PARENTID = #{parentid,jdbcType=DECIMAL}, PAYWAY = #{payway,jdbcType=CHAR}, RESEFLD1 = #{resefld1,jdbcType=VARCHAR}, RESEFLD2 = #{resefld2,jdbcType=VARCHAR}, OLPAYCODE = #{olpaycode,jdbcType=VARCHAR} where ID = #{id,jdbcType=DECIMAL} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.LibCirFinelog" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CIR_FINELOG where 1=1 <if test="type != null"> and type in (${type}) </if> <if test="rectype != null"> and RECTYPE = #{rectype,jdbcType=CHAR} </if> <if test="payway != null"> and PAYWAY = #{payway,jdbcType=CHAR} </if> <if test="rdrid != null"> and rdrid = #{rdrid,jdbcType=DECIMAL} </if> </select> <select id="listSelectiveByCondtion" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CIR_FINELOG where 1=1 <if test="record.type != null"> and type in (${record.type}) </if> <if test="record.rectype != null"> and RECTYPE = #{record.rectype} </if> <if test="record.payway != null"> and PAYWAY = #{record.payway} </if> <if test="record.rdrid != null"> and rdrid = #{record.rdrid} </if> <include refid="common.condition"/> </select> <select id="listSelectiveUnionByCondtion" resultType="com.jishen.common.LibCirLogfineUnionEntity"> select LIB_CIR_FINELOG.ID ID,LIB_CIR_FINELOG.RDRID RDRID,LIB_CIR_FINELOG.TYPE TYPE,LIB_CIR_FINELOG.MONEY MONEY, LIB_CIR_FINELOG.FINDATE FINDATE,LIB_CIR_FINELOG.FINSTAMP FINSTAMP, LIB_CIR_FINELOG.OPERID OPERID, LIB_CIR_FINELOG.NOTE NOTE, LIB_CIR_FINELOG.BIBID BIBID, LIB_CIR_FINELOG.HLDID HLDID, LIB_CIR_FINELOG.LOCCODE LOCCODE,LIB_CIR_FINELOG.RECTYPE RECTYPE, LIB_CIR_FINELOG.PARENTID PARENTID,LIB_CIR_FINELOG.PAYWAY PAYWAY, LIB_BIBLIOGRAPHY.TITLE TITLE,LIB_HOLDINGS.BARCODE BARCODE,LIB_HOLDINGS.CALLNO CALLNO ,LIB_CIR_FINELOG.RESEFLD1 RESEFLD1,LIB_CIR_FINELOG.RESEFLD2 RESEFLD2 from LIB_CIR_FINELOG left join LIB_BIBLIOGRAPHY on LIB_BIBLIOGRAPHY.id = LIB_CIR_FINELOG.BIBID left join LIB_HOLDINGS on LIB_HOLDINGS.id = LIB_CIR_FINELOG.HLDID where 1=1 <if test="record.type != null"> and LIB_CIR_FINELOG.type in (${record.type}) </if> <if test="record.rectype != null"> and LIB_CIR_FINELOG.RECTYPE = #{record.rectype} </if> <if test="record.payway != null"> and LIB_CIR_FINELOG.PAYWAY = #{record.payway} </if> <if test="record.rdrid != null"> and LIB_CIR_FINELOG.rdrid = #{record.rdrid} </if> <include refid="common.condition"/> </select> </mapper>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de