Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\LibAcqOrderMapper.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.LibAcqOrderMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.LibAcqOrder"> <id column="ID" jdbcType="DECIMAL" property="id" /> <result column="LIBCODE" jdbcType="VARCHAR" property="libcode" /> <result column="BIBID" jdbcType="DECIMAL" property="bibid" /> <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="ORDERDATE" jdbcType="DECIMAL" property="orderdate" /> <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" /> <result column="PAYDATE" jdbcType="DECIMAL" property="paydate" /> <result column="ORDSTATUS" jdbcType="VARCHAR" property="ordstatus" /> </resultMap> <sql id="Base_Column_List"> ID, LIBCODE, BIBID, ORDERNO, BATCHNO, COPIES, NCY, PRICE, TOTALPRICE, ORDERNCY, ORDERPRICE, ORDERTOTALPRICE, BINDING, DOCSOURCES, FINSOURCES, MEDIATYPE, BOOKSELLER, ORDERDATE, OPERID, VOLUMES, VOLINFO, NOTE, BILLNO, PAYDATE, ORDSTATUS </sql> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_ACQ_ORDER where ID = #{id,jdbcType=DECIMAL} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> delete from LIB_ACQ_ORDER where ID = #{id,jdbcType=DECIMAL} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.LibAcqOrder"> insert into LIB_ACQ_ORDER (ID, LIBCODE, BIBID, ORDERNO, BATCHNO, COPIES, NCY, PRICE, TOTALPRICE, ORDERNCY, ORDERPRICE, ORDERTOTALPRICE, BINDING, DOCSOURCES, FINSOURCES, MEDIATYPE, BOOKSELLER, ORDERDATE, OPERID, VOLUMES, VOLINFO, NOTE, BILLNO, PAYDATE ) values (#{id,jdbcType=DECIMAL}, #{libcode,jdbcType=VARCHAR}, #{bibid,jdbcType=DECIMAL}, #{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}, #{orderdate,jdbcType=DECIMAL}, #{operid,jdbcType=DECIMAL}, #{volumes,jdbcType=DECIMAL}, #{volinfo,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{billno,jdbcType=VARCHAR}, #{paydate,jdbcType=DECIMAL} ) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.LibAcqOrder"> <selectKey keyProperty="id" resultType="java.lang.Long" order="BEFORE"> select LIB_ACQ_ORDER_SEQ.nextval a FROM dual </selectKey> insert into LIB_ACQ_ORDER <trim prefix="(" suffix=")" suffixOverrides=","> ID, <if test="libcode != null"> LIBCODE, </if> <if test="bibid != null"> BIBID, </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="orderdate != null"> ORDERDATE, </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> <if test="paydate != null"> PAYDATE, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> #{id,jdbcType=DECIMAL}, <if test="libcode != null"> #{libcode,jdbcType=VARCHAR}, </if> <if test="bibid != null"> #{bibid,jdbcType=DECIMAL}, </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="orderdate != null"> #{orderdate,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> <if test="paydate != null"> #{paydate,jdbcType=DECIMAL}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.LibAcqOrder"> update LIB_ACQ_ORDER <set> <if test="libcode != null"> LIBCODE = #{libcode,jdbcType=VARCHAR}, </if> <if test="bibid != null"> BIBID = #{bibid,jdbcType=DECIMAL}, </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="orderdate != null"> ORDERDATE = #{orderdate,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> <if test="paydate != null"> PAYDATE = #{paydate,jdbcType=DECIMAL}, </if> <if test="ordstatus != null"> ordstatus = #{ordstatus,jdbcType=VARCHAR}, </if> </set> where ID = #{id,jdbcType=DECIMAL} </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.LibAcqOrder"> update LIB_ACQ_ORDER set LIBCODE = #{libcode,jdbcType=VARCHAR}, BIBID = #{bibid,jdbcType=DECIMAL}, 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}, ORDERDATE = #{orderdate,jdbcType=DECIMAL}, OPERID = #{operid,jdbcType=DECIMAL}, VOLUMES = #{volumes,jdbcType=DECIMAL}, VOLINFO = #{volinfo,jdbcType=VARCHAR}, NOTE = #{note,jdbcType=VARCHAR}, BILLNO = #{billno,jdbcType=VARCHAR}, PAYDATE = #{paydate,jdbcType=DECIMAL} where ID = #{id,jdbcType=DECIMAL} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.LibAcqOrder" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_ACQ_ORDER where 1=1 <if test="libcode != null"> and LIBCODE = #{libcode,jdbcType=VARCHAR} </if> <if test="orderno != null"> and orderno like CONCAT(#{orderno,jdbcType=VARCHAR},'%') </if> <if test="batchno != null"> and batchno like CONCAT(#{batchno,jdbcType=VARCHAR},'%') </if> <if test="bibid != null"> and BIBID = #{bibid,jdbcType=DECIMAL} </if> <if test="id != null"> and ID = #{id,jdbcType=DECIMAL} </if> </select> <insert id="insertRecords" > insert into LIB_ACQ_ORDER ( <include refid="Base_Column_List" /> ) select LIB_ACQ_ORDER_SEQ.nextval, list.* from ( <foreach collection="records" item="record" index="index" separator="UNION ALL"> select #{record.libcode,jdbcType=VARCHAR}, #{record.bibid,jdbcType=DECIMAL}, #{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.orderdate,jdbcType=DECIMAL}, #{record.operid,jdbcType=DECIMAL}, #{record.volumes,jdbcType=DECIMAL}, #{record.volinfo,jdbcType=VARCHAR}, #{record.note,jdbcType=VARCHAR}, #{record.billno,jdbcType=VARCHAR}, #{record.paydate,jdbcType=DECIMAL}, #{record.ordstatus,jdbcType=VARCHAR} from dual </foreach> ) list </insert> <select id="listWithCondition" parameterType="com.jishen.common.SrchLimitEntity" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_ACQ_ORDER 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