Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\LibPerBindMapper.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.LibPerBindMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.LibPerBind"> <id column="ID" jdbcType="DECIMAL" property="id" /> <result column="LIBCODE" jdbcType="VARCHAR" property="libcode" /> <result column="BIBID" jdbcType="DECIMAL" property="bibid" /> <result column="BARCODE" jdbcType="VARCHAR" property="barcode" /> <result column="CALLNO" jdbcType="VARCHAR" property="callno" /> <result column="BATCHNO" jdbcType="VARCHAR" property="batchno" /> <result column="PRICE" jdbcType="DECIMAL" property="price" /> <result column="TOTALPRICE" jdbcType="DECIMAL" property="totalprice" /> <result column="DOCTYPE" jdbcType="VARCHAR" property="doctype" /> <result column="LOCCODE" jdbcType="VARCHAR" property="loccode" /> <result column="BINDING" jdbcType="VARCHAR" property="binding" /> <result column="DOCSOURCES" jdbcType="VARCHAR" property="docsources" /> <result column="FINSOURCES" jdbcType="VARCHAR" property="finsources" /> <result column="MEDIATYPE" jdbcType="VARCHAR" property="mediatype" /> <result column="BINDDATE" jdbcType="DECIMAL" property="binddate" /> <result column="OPERID" jdbcType="DECIMAL" property="operid" /> <result column="VOLINFO" jdbcType="VARCHAR" property="volinfo" /> <result column="NOTE" jdbcType="VARCHAR" property="note" /> </resultMap> <sql id="Base_Column_List"> ID, LIBCODE, BIBID, BARCODE, CALLNO, BATCHNO, PRICE, TOTALPRICE, DOCTYPE, LOCCODE, BINDING, DOCSOURCES, FINSOURCES, MEDIATYPE, BINDDATE, OPERID, VOLINFO, NOTE </sql> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_PER_BIND where ID = #{id,jdbcType=DECIMAL} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> delete from LIB_PER_BIND where ID = #{id,jdbcType=DECIMAL} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.LibPerBind"> insert into LIB_PER_BIND (ID, LIBCODE, BIBID, BARCODE, CALLNO, BATCHNO, PRICE, TOTALPRICE, DOCTYPE, LOCCODE, BINDING, DOCSOURCES, FINSOURCES, MEDIATYPE, BINDDATE, OPERID, VOLINFO, NOTE ) values (#{id,jdbcType=DECIMAL}, #{libcode,jdbcType=VARCHAR}, #{bibid,jdbcType=DECIMAL}, #{barcode,jdbcType=VARCHAR}, #{callno,jdbcType=VARCHAR}, #{batchno,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL}, #{totalprice,jdbcType=DECIMAL}, #{doctype,jdbcType=VARCHAR}, #{loccode,jdbcType=VARCHAR}, #{binding,jdbcType=VARCHAR}, #{docsources,jdbcType=VARCHAR}, #{finsources,jdbcType=VARCHAR}, #{mediatype,jdbcType=VARCHAR}, #{binddate,jdbcType=DECIMAL}, #{operid,jdbcType=DECIMAL}, #{volinfo,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR} ) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.LibPerBind"> <selectKey keyProperty="id" resultType="java.lang.Long" order="BEFORE"> select LIB_PER_BIND_SEQ.nextval a FROM dual </selectKey> insert into LIB_PER_BIND <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> ID, </if> <if test="libcode != null"> LIBCODE, </if> <if test="bibid != null"> BIBID, </if> <if test="barcode != null"> BARCODE, </if> <if test="callno != null"> CALLNO, </if> <if test="batchno != null"> BATCHNO, </if> <if test="price != null"> PRICE, </if> <if test="totalprice != null"> TOTALPRICE, </if> <if test="doctype != null"> DOCTYPE, </if> <if test="loccode != null"> LOCCODE, </if> <if test="binding != null"> BINDING, </if> <if test="docsources != null"> DOCSOURCES, </if> <if test="finsources != null"> FINSOURCES, </if> <if test="mediatype != null"> MEDIATYPE, </if> <if test="binddate != null"> BINDDATE, </if> <if test="operid != null"> OPERID, </if> <if test="volinfo != null"> VOLINFO, </if> <if test="note != null"> NOTE, </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="bibid != null"> #{bibid,jdbcType=DECIMAL}, </if> <if test="barcode != null"> #{barcode,jdbcType=VARCHAR}, </if> <if test="callno != null"> #{callno,jdbcType=VARCHAR}, </if> <if test="batchno != null"> #{batchno,jdbcType=VARCHAR}, </if> <if test="price != null"> #{price,jdbcType=DECIMAL}, </if> <if test="totalprice != null"> #{totalprice,jdbcType=DECIMAL}, </if> <if test="doctype != null"> #{doctype,jdbcType=VARCHAR}, </if> <if test="loccode != null"> #{loccode,jdbcType=VARCHAR}, </if> <if test="binding != null"> #{binding,jdbcType=VARCHAR}, </if> <if test="docsources != null"> #{docsources,jdbcType=VARCHAR}, </if> <if test="finsources != null"> #{finsources,jdbcType=VARCHAR}, </if> <if test="mediatype != null"> #{mediatype,jdbcType=VARCHAR}, </if> <if test="binddate != null"> #{binddate,jdbcType=DECIMAL}, </if> <if test="operid != null"> #{operid,jdbcType=DECIMAL}, </if> <if test="volinfo != null"> #{volinfo,jdbcType=VARCHAR}, </if> <if test="note != null"> #{note,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.LibPerBind"> update LIB_PER_BIND <set> <if test="libcode != null"> LIBCODE = #{libcode,jdbcType=VARCHAR}, </if> <if test="bibid != null"> BIBID = #{bibid,jdbcType=DECIMAL}, </if> <if test="barcode != null"> BARCODE = #{barcode,jdbcType=VARCHAR}, </if> <if test="callno != null"> CALLNO = #{callno,jdbcType=VARCHAR}, </if> <if test="batchno != null"> BATCHNO = #{batchno,jdbcType=VARCHAR}, </if> <if test="price != null"> PRICE = #{price,jdbcType=DECIMAL}, </if> <if test="totalprice != null"> TOTALPRICE = #{totalprice,jdbcType=DECIMAL}, </if> <if test="doctype != null"> DOCTYPE = #{doctype,jdbcType=VARCHAR}, </if> <if test="loccode != null"> LOCCODE = #{loccode,jdbcType=VARCHAR}, </if> <if test="binding != null"> BINDING = #{binding,jdbcType=VARCHAR}, </if> <if test="docsources != null"> DOCSOURCES = #{docsources,jdbcType=VARCHAR}, </if> <if test="finsources != null"> FINSOURCES = #{finsources,jdbcType=VARCHAR}, </if> <if test="mediatype != null"> MEDIATYPE = #{mediatype,jdbcType=VARCHAR}, </if> <if test="binddate != null"> BINDDATE = #{binddate,jdbcType=DECIMAL}, </if> <if test="operid != null"> OPERID = #{operid,jdbcType=DECIMAL}, </if> <if test="volinfo != null"> VOLINFO = #{volinfo,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.LibPerBind"> update LIB_PER_BIND set LIBCODE = #{libcode,jdbcType=VARCHAR}, BIBID = #{bibid,jdbcType=DECIMAL}, BARCODE = #{barcode,jdbcType=VARCHAR}, CALLNO = #{callno,jdbcType=VARCHAR}, BATCHNO = #{batchno,jdbcType=VARCHAR}, PRICE = #{price,jdbcType=DECIMAL}, TOTALPRICE = #{totalprice,jdbcType=DECIMAL}, DOCTYPE = #{doctype,jdbcType=VARCHAR}, LOCCODE = #{loccode,jdbcType=VARCHAR}, BINDING = #{binding,jdbcType=VARCHAR}, DOCSOURCES = #{docsources,jdbcType=VARCHAR}, FINSOURCES = #{finsources,jdbcType=VARCHAR}, MEDIATYPE = #{mediatype,jdbcType=VARCHAR}, BINDDATE = #{binddate,jdbcType=DECIMAL}, OPERID = #{operid,jdbcType=DECIMAL}, VOLINFO = #{volinfo,jdbcType=VARCHAR}, NOTE = #{note,jdbcType=VARCHAR} where ID = #{id,jdbcType=DECIMAL} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.LibPerBind" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_PER_BIND where 1=1 <if test="id != null"> and ID = #{id,jdbcType=DECIMAL} </if> <if test="batchno != null"> and BATCHNO = #{batchno,jdbcType=VARCHAR} </if> <if test="callno != null"> and callno like CONCAT(#{callno,jdbcType=VARCHAR},'%') </if> <if test="bibid != null"> and BIBID = #{bibid,jdbcType=DECIMAL} </if> <if test="libcode != null"> and LIBCODE = #{libcode,jdbcType=VARCHAR} </if> <if test="barcode != null"> and BARCODE = #{barcode,jdbcType=VARCHAR} </if> </select> <insert id="insertRecords" > insert into LIB_PER_BIND ( <include refid="Base_Column_List" /> ) select LIB_PER_BIND_SEQ.nextval, list.* from ( <foreach collection="records" item="record" index="index" separator="UNION ALL"> select #{record.libcode,jdbcType=VARCHAR}, #{record.bibid,jdbcType=DECIMAL}, #{record.barcode,jdbcType=VARCHAR}, #{record.callno,jdbcType=VARCHAR}, #{record.batchno,jdbcType=VARCHAR}, #{record.price,jdbcType=DECIMAL}, #{record.totalprice,jdbcType=DECIMAL}, #{record.doctype,jdbcType=VARCHAR}, #{record.loccode,jdbcType=VARCHAR}, #{record.binding,jdbcType=VARCHAR}, #{record.docsources,jdbcType=VARCHAR}, #{record.finsources,jdbcType=VARCHAR}, #{record.mediatype,jdbcType=VARCHAR}, #{record.binddate,jdbcType=DECIMAL}, #{record.operid,jdbcType=DECIMAL}, #{record.volinfo,jdbcType=VARCHAR}, #{record.note,jdbcType=VARCHAR} from dual </foreach> ) list </insert> <select id="listUnionCondition" resultType="java.util.Map"> select LIB_PER_BIND.ID as "id", LIB_PER_BIND.LIBCODE as "libcode", LIB_PER_BIND.barcode as "barcode", BATCHNO as "batchno", LIB_PER_BIND.callno as "callno", LIB_PER_BIND.price as "price", LIB_PER_BIND.binddate as "binddate", LIB_PER_BIND.volinfo as "volinfo", title as "title",author as "author",isbn as "isbn",publish as "publish", publishaddress as "publishaddress", publishdate as "publishdate" , lib_bibliography.ORDERNO as "orderno",UNIFIEDNO as "unifiedno" , lib_holdings.curlocation as "curlocation" from LIB_PER_BIND left join lib_bibliography on LIB_PER_BIND.bibid=lib_bibliography.id left join lib_holdings on LIB_PER_BIND.id=lib_holdings.bindid 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