Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\LibAcqCheckMapper.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.LibAcqCheckMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.LibAcqCheck"> <id column="ID" jdbcType="DECIMAL" property="id" /> <result column="LIBCODE" jdbcType="VARCHAR" property="libcode" /> <result column="ORDERID" jdbcType="DECIMAL" property="orderid" /> <result column="BIBID" jdbcType="DECIMAL" property="bibid" /> <result column="CALLNO" jdbcType="VARCHAR" property="callno" /> <result column="ORDERNO" jdbcType="VARCHAR" property="orderno" /> <result column="BATCHNO" jdbcType="VARCHAR" property="batchno" /> <result column="COPIES" jdbcType="DECIMAL" property="copies" /> <result column="NCY" jdbcType="VARCHAR" property="ncy" /> <result column="PRICE" jdbcType="DECIMAL" property="price" /> <result column="TOTALPRICE" jdbcType="DECIMAL" property="totalprice" /> <result column="ORDERNCY" jdbcType="VARCHAR" property="orderncy" /> <result column="ORDERPRICE" jdbcType="DECIMAL" property="orderprice" /> <result column="ORDERTOTALPRICE" jdbcType="DECIMAL" property="ordertotalprice" /> <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="BOOKSELLER" jdbcType="VARCHAR" property="bookseller" /> <result column="CHECKDATE" jdbcType="DECIMAL" property="checkdate" /> <result column="OPERID" jdbcType="DECIMAL" property="operid" /> <result column="VOLUMES" jdbcType="DECIMAL" property="volumes" /> <result column="VOLINFO" jdbcType="VARCHAR" property="volinfo" /> <result column="NOTE" jdbcType="VARCHAR" property="note" /> <result column="BILLNO" jdbcType="VARCHAR" property="billno" /> </resultMap> <sql id="Base_Column_List"> ID, LIBCODE, ORDERID, BIBID, CALLNO, ORDERNO, BATCHNO, COPIES, NCY, PRICE, TOTALPRICE, ORDERNCY, ORDERPRICE, ORDERTOTALPRICE, BINDING, DOCSOURCES, FINSOURCES, MEDIATYPE, BOOKSELLER, CHECKDATE, OPERID, VOLUMES, VOLINFO, NOTE,BILLNO </sql> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_ACQ_CHECK where ID = #{id,jdbcType=DECIMAL} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> delete from LIB_ACQ_CHECK where ID = #{id,jdbcType=DECIMAL} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.LibAcqCheck"> insert into LIB_ACQ_CHECK (ID, LIBCODE, ORDERID, BIBID, CALLNO, ORDERNO, BATCHNO, COPIES, NCY, PRICE, TOTALPRICE, ORDERNCY, ORDERPRICE, ORDERTOTALPRICE, BINDING, DOCSOURCES, FINSOURCES, MEDIATYPE, BOOKSELLER, CHECKDATE, OPERID, VOLUMES, VOLINFO, NOTE ) values (#{id,jdbcType=DECIMAL}, #{libcode,jdbcType=VARCHAR}, #{orderid,jdbcType=DECIMAL}, #{bibid,jdbcType=DECIMAL}, #{callno,jdbcType=VARCHAR}, #{orderno,jdbcType=VARCHAR}, #{batchno,jdbcType=VARCHAR}, #{copies,jdbcType=DECIMAL}, #{ncy,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL}, #{totalprice,jdbcType=DECIMAL}, #{orderncy,jdbcType=VARCHAR}, #{orderprice,jdbcType=DECIMAL}, #{ordertotalprice,jdbcType=DECIMAL}, #{binding,jdbcType=VARCHAR}, #{docsources,jdbcType=VARCHAR}, #{finsources,jdbcType=VARCHAR}, #{mediatype,jdbcType=VARCHAR}, #{bookseller,jdbcType=VARCHAR}, #{checkdate,jdbcType=DECIMAL}, #{operid,jdbcType=DECIMAL}, #{volumes,jdbcType=DECIMAL}, #{volinfo,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR} ) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.LibAcqCheck"> <selectKey keyProperty="id" resultType="java.lang.Long" order="BEFORE"> select LIB_ACQ_CHECK_SEQ.nextval a FROM dual </selectKey> insert into LIB_ACQ_CHECK <trim prefix="(" suffix=")" suffixOverrides=","> ID, <if test="libcode != null"> LIBCODE, </if> <if test="orderid != null"> ORDERID, </if> <if test="bibid != null"> BIBID, </if> <if test="callno != null"> CALLNO, </if> <if test="orderno != null"> ORDERNO, </if> <if test="batchno != null"> BATCHNO, </if> <if test="copies != null"> COPIES, </if> <if test="ncy != null"> NCY, </if> <if test="price != null"> PRICE, </if> <if test="totalprice != null"> TOTALPRICE, </if> <if test="orderncy != null"> ORDERNCY, </if> <if test="orderprice != null"> ORDERPRICE, </if> <if test="ordertotalprice != null"> ORDERTOTALPRICE, </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="bookseller != null"> BOOKSELLER, </if> <if test="checkdate != null"> CHECKDATE, </if> <if test="operid != null"> OPERID, </if> <if test="volumes != null"> VOLUMES, </if> <if test="volinfo != null"> VOLINFO, </if> <if test="note != null"> NOTE, </if> <if test="billno != null"> BILLNO, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> #{id,jdbcType=DECIMAL}, <if test="libcode != null"> #{libcode,jdbcType=VARCHAR}, </if> <if test="orderid != null"> #{orderid,jdbcType=DECIMAL}, </if> <if test="bibid != null"> #{bibid,jdbcType=DECIMAL}, </if> <if test="callno != null"> #{callno,jdbcType=VARCHAR}, </if> <if test="orderno != null"> #{orderno,jdbcType=VARCHAR}, </if> <if test="batchno != null"> #{batchno,jdbcType=VARCHAR}, </if> <if test="copies != null"> #{copies,jdbcType=DECIMAL}, </if> <if test="ncy != null"> #{ncy,jdbcType=VARCHAR}, </if> <if test="price != null"> #{price,jdbcType=DECIMAL}, </if> <if test="totalprice != null"> #{totalprice,jdbcType=DECIMAL}, </if> <if test="orderncy != null"> #{orderncy,jdbcType=VARCHAR}, </if> <if test="orderprice != null"> #{orderprice,jdbcType=DECIMAL}, </if> <if test="ordertotalprice != null"> #{ordertotalprice,jdbcType=DECIMAL}, </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="bookseller != null"> #{bookseller,jdbcType=VARCHAR}, </if> <if test="checkdate != null"> #{checkdate,jdbcType=DECIMAL}, </if> <if test="operid != null"> #{operid,jdbcType=DECIMAL}, </if> <if test="volumes != null"> #{volumes,jdbcType=DECIMAL}, </if> <if test="volinfo != null"> #{volinfo,jdbcType=VARCHAR}, </if> <if test="note != null"> #{note,jdbcType=VARCHAR}, </if> <if test="billno != null"> #{billno,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.LibAcqCheck"> update LIB_ACQ_CHECK <set> <if test="libcode != null"> LIBCODE = #{libcode,jdbcType=VARCHAR}, </if> <if test="orderid != null"> ORDERID = #{orderid,jdbcType=DECIMAL}, </if> <if test="bibid != null"> BIBID = #{bibid,jdbcType=DECIMAL}, </if> <if test="callno != null"> CALLNO = #{callno,jdbcType=VARCHAR}, </if> <if test="orderno != null"> ORDERNO = #{orderno,jdbcType=VARCHAR}, </if> <if test="batchno != null"> BATCHNO = #{batchno,jdbcType=VARCHAR}, </if> <if test="copies != null"> COPIES = #{copies,jdbcType=DECIMAL}, </if> <if test="ncy != null"> NCY = #{ncy,jdbcType=VARCHAR}, </if> <if test="price != null"> PRICE = #{price,jdbcType=DECIMAL}, </if> <if test="totalprice != null"> TOTALPRICE = #{totalprice,jdbcType=DECIMAL}, </if> <if test="orderncy != null"> ORDERNCY = #{orderncy,jdbcType=VARCHAR}, </if> <if test="orderprice != null"> ORDERPRICE = #{orderprice,jdbcType=DECIMAL}, </if> <if test="ordertotalprice != null"> ORDERTOTALPRICE = #{ordertotalprice,jdbcType=DECIMAL}, </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="bookseller != null"> BOOKSELLER = #{bookseller,jdbcType=VARCHAR}, </if> <if test="checkdate != null"> CHECKDATE = #{checkdate,jdbcType=DECIMAL}, </if> <if test="operid != null"> OPERID = #{operid,jdbcType=DECIMAL}, </if> <if test="volumes != null"> VOLUMES = #{volumes,jdbcType=DECIMAL}, </if> <if test="volinfo != null"> VOLINFO = #{volinfo,jdbcType=VARCHAR}, </if> <if test="note != null"> NOTE = #{note,jdbcType=VARCHAR}, </if> <if test="billno != null"> billno = #{billno,jdbcType=VARCHAR}, </if> </set> where ID = #{id,jdbcType=DECIMAL} </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.LibAcqCheck"> update LIB_ACQ_CHECK set LIBCODE = #{libcode,jdbcType=VARCHAR}, ORDERID = #{orderid,jdbcType=DECIMAL}, BIBID = #{bibid,jdbcType=DECIMAL}, CALLNO = #{callno,jdbcType=VARCHAR}, ORDERNO = #{orderno,jdbcType=VARCHAR}, BATCHNO = #{batchno,jdbcType=VARCHAR}, COPIES = #{copies,jdbcType=DECIMAL}, NCY = #{ncy,jdbcType=VARCHAR}, PRICE = #{price,jdbcType=DECIMAL}, TOTALPRICE = #{totalprice,jdbcType=DECIMAL}, ORDERNCY = #{orderncy,jdbcType=VARCHAR}, ORDERPRICE = #{orderprice,jdbcType=DECIMAL}, ORDERTOTALPRICE = #{ordertotalprice,jdbcType=DECIMAL}, BINDING = #{binding,jdbcType=VARCHAR}, DOCSOURCES = #{docsources,jdbcType=VARCHAR}, FINSOURCES = #{finsources,jdbcType=VARCHAR}, MEDIATYPE = #{mediatype,jdbcType=VARCHAR}, BOOKSELLER = #{bookseller,jdbcType=VARCHAR}, CHECKDATE = #{checkdate,jdbcType=DECIMAL}, OPERID = #{operid,jdbcType=DECIMAL}, VOLUMES = #{volumes,jdbcType=DECIMAL}, VOLINFO = #{volinfo,jdbcType=VARCHAR}, NOTE = #{note,jdbcType=VARCHAR} where ID = #{id,jdbcType=DECIMAL} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.LibAcqCheck" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_ACQ_CHECK where 1=1 <if test="libcode != null"> and LIBCODE = #{libcode,jdbcType=VARCHAR} </if> <if test="bibid != null"> and BIBID = #{bibid,jdbcType=DECIMAL} </if> <if test="callno != null"> and callno like CONCAT(#{callno,jdbcType=VARCHAR},'%') </if> </select> <select id="listWithCondition" parameterType="com.jishen.common.SrchLimitEntity" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_ACQ_CHECK where 1=1 <include refid="common.condition"></include> </select> <insert id="insertRecords" > insert into LIB_ACQ_CHECK ( ID, LIBCODE, ORDERID, BIBID, CALLNO, ORDERNO, BATCHNO, COPIES, NCY, PRICE, TOTALPRICE, ORDERNCY, ORDERPRICE, ORDERTOTALPRICE, BINDING, DOCSOURCES, FINSOURCES, MEDIATYPE, BOOKSELLER, CHECKDATE, OPERID, VOLUMES, VOLINFO, NOTE,BILLNO ) select list.* from ( <foreach collection="records" item="record" index="index" separator="UNION ALL"> select #{record.id,jdbcType=DECIMAL}, #{record.libcode,jdbcType=VARCHAR}, #{record.orderid,jdbcType=DECIMAL}, #{record.bibid,jdbcType=DECIMAL}, #{record.callno,jdbcType=VARCHAR}, #{record.orderno,jdbcType=VARCHAR}, #{record.batchno,jdbcType=VARCHAR}, #{record.copies,jdbcType=DECIMAL}, #{record.ncy,jdbcType=VARCHAR}, #{record.price,jdbcType=DECIMAL}, #{record.totalprice,jdbcType=DECIMAL}, #{record.orderncy,jdbcType=VARCHAR}, #{record.orderprice,jdbcType=DECIMAL}, #{record.ordertotalprice,jdbcType=DECIMAL}, #{record.binding,jdbcType=VARCHAR}, #{record.docsources,jdbcType=VARCHAR}, #{record.finsources,jdbcType=VARCHAR}, #{record.mediatype,jdbcType=VARCHAR}, #{record.bookseller,jdbcType=VARCHAR}, #{record.checkdate,jdbcType=DECIMAL}, #{record.operid,jdbcType=DECIMAL}, #{record.volumes,jdbcType=DECIMAL}, #{record.volinfo,jdbcType=VARCHAR}, #{record.note,jdbcType=VARCHAR}, #{record.billno,jdbcType=VARCHAR} from dual </foreach> ) list </insert> </mapper>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de