Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\LibPerOrderMapper.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.LibPerOrderMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.LibPerOrder"> <id column="ID" jdbcType="DECIMAL" property="id" /> <result column="LIBCODE" jdbcType="VARCHAR" property="libcode" /> <result column="ORDERTYPE" jdbcType="CHAR" property="ordertype" /> <result column="BIBID" jdbcType="DECIMAL" property="bibid" /> <result column="ORDERNO" jdbcType="VARCHAR" property="orderno" /> <result column="ISSUENUM" jdbcType="DECIMAL" property="issuenum" /> <result column="FREQUENCY" jdbcType="VARCHAR" property="frequency" /> <result column="YEARPRICE" jdbcType="DECIMAL" property="yearprice" /> <result column="ORDERYEAR" jdbcType="DECIMAL" property="orderyear" /> <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="ORDERNCY" jdbcType="VARCHAR" property="orderncy" /> <result column="ORDERPRICE" jdbcType="DECIMAL" property="orderprice" /> <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="NOTE" jdbcType="VARCHAR" property="note" /> <result column="PUBLISHER" jdbcType="VARCHAR" property="publisher" /> <result column="PERTYPE" jdbcType="VARCHAR" property="pertype" /> <result column="ALLOCATION" jdbcType="VARCHAR" property="allocation" /> </resultMap> <sql id="Base_Column_List"> ID, LIBCODE, ORDERTYPE, BIBID, ORDERNO, ISSUENUM, FREQUENCY, YEARPRICE, ORDERYEAR, BATCHNO, COPIES, NCY, PRICE, ORDERNCY, ORDERPRICE, DOCSOURCES, FINSOURCES, MEDIATYPE, BOOKSELLER, ORDERDATE, OPERID, NOTE, PUBLISHER, PERTYPE, ALLOCATION </sql> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_PER_ORDER where ID = #{id,jdbcType=DECIMAL} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> delete from LIB_PER_ORDER where ID = #{id,jdbcType=DECIMAL} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.LibPerOrder"> insert into LIB_PER_ORDER (ID, LIBCODE, ORDERTYPE, BIBID, ORDERNO, ISSUENUM, FREQUENCY, YEARPRICE, ORDERYEAR, BATCHNO, COPIES, NCY, PRICE, ORDERNCY, ORDERPRICE, DOCSOURCES, FINSOURCES, MEDIATYPE, BOOKSELLER, ORDERDATE, OPERID, NOTE, PUBLISHER, PERTYPE, ALLOCATION) values (#{id,jdbcType=DECIMAL}, #{libcode,jdbcType=VARCHAR}, #{ordertype,jdbcType=CHAR}, #{bibid,jdbcType=DECIMAL}, #{orderno,jdbcType=VARCHAR}, #{issuenum,jdbcType=DECIMAL}, #{frequency,jdbcType=VARCHAR}, #{yearprice,jdbcType=DECIMAL}, #{orderyear,jdbcType=DECIMAL}, #{batchno,jdbcType=VARCHAR}, #{copies,jdbcType=DECIMAL}, #{ncy,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL}, #{orderncy,jdbcType=VARCHAR}, #{orderprice,jdbcType=DECIMAL}, #{docsources,jdbcType=VARCHAR}, #{finsources,jdbcType=VARCHAR}, #{mediatype,jdbcType=VARCHAR}, #{bookseller,jdbcType=VARCHAR}, #{orderdate,jdbcType=DECIMAL}, #{operid,jdbcType=DECIMAL}, #{note,jdbcType=VARCHAR}, #{publisher,jdbcType=VARCHAR}, #{pertype,jdbcType=VARCHAR}, #{allocation,jdbcType=VARCHAR}) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.LibPerOrder"> <selectKey keyProperty="id" resultType="java.lang.Long" order="BEFORE"> select LIB_PER_ORDER_SEQ.nextval a FROM dual </selectKey> insert into LIB_PER_ORDER <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> ID, </if> <if test="libcode != null"> LIBCODE, </if> <if test="ordertype != null"> ORDERTYPE, </if> <if test="bibid != null"> BIBID, </if> <if test="orderno != null"> ORDERNO, </if> <if test="issuenum != null"> ISSUENUM, </if> <if test="frequency != null"> FREQUENCY, </if> <if test="yearprice != null"> YEARPRICE, </if> <if test="orderyear != null"> ORDERYEAR, </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="orderncy != null"> ORDERNCY, </if> <if test="orderprice != null"> ORDERPRICE, </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="note != null"> NOTE, </if> <if test="publisher != null"> PUBLISHER, </if> <if test="pertype != null"> PERTYPE, </if> <if test="allocation != null"> ALLOCATION, </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="ordertype != null"> #{ordertype,jdbcType=CHAR}, </if> <if test="bibid != null"> #{bibid,jdbcType=DECIMAL}, </if> <if test="orderno != null"> #{orderno,jdbcType=VARCHAR}, </if> <if test="issuenum != null"> #{issuenum,jdbcType=DECIMAL}, </if> <if test="frequency != null"> #{frequency,jdbcType=VARCHAR}, </if> <if test="yearprice != null"> #{yearprice,jdbcType=DECIMAL}, </if> <if test="orderyear != null"> #{orderyear,jdbcType=DECIMAL}, </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="orderncy != null"> #{orderncy,jdbcType=VARCHAR}, </if> <if test="orderprice != null"> #{orderprice,jdbcType=DECIMAL}, </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="note != null"> #{note,jdbcType=VARCHAR}, </if> <if test="publisher != null"> #{publisher,jdbcType=VARCHAR}, </if> <if test="pertype != null"> #{pertype,jdbcType=VARCHAR}, </if> <if test="allocation != null"> #{allocation,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.LibPerOrder"> update LIB_PER_ORDER <set> <if test="libcode != null"> LIBCODE = #{libcode,jdbcType=VARCHAR}, </if> <if test="ordertype != null"> ORDERTYPE = #{ordertype,jdbcType=CHAR}, </if> <if test="bibid != null"> BIBID = #{bibid,jdbcType=DECIMAL}, </if> <if test="orderno != null"> ORDERNO = #{orderno,jdbcType=VARCHAR}, </if> <if test="issuenum != null"> ISSUENUM = #{issuenum,jdbcType=DECIMAL}, </if> <if test="frequency != null"> FREQUENCY = #{frequency,jdbcType=VARCHAR}, </if> <if test="yearprice != null"> YEARPRICE = #{yearprice,jdbcType=DECIMAL}, </if> <if test="orderyear != null"> ORDERYEAR = #{orderyear,jdbcType=DECIMAL}, </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="orderncy != null"> ORDERNCY = #{orderncy,jdbcType=VARCHAR}, </if> <if test="orderprice != null"> ORDERPRICE = #{orderprice,jdbcType=DECIMAL}, </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="note != null"> NOTE = #{note,jdbcType=VARCHAR}, </if> <if test="publisher != null"> PUBLISHER = #{publisher,jdbcType=VARCHAR}, </if> <if test="pertype != null"> PERTYPE = #{pertype,jdbcType=VARCHAR}, </if> <if test="allocation != null"> ALLOCATION = #{allocation,jdbcType=VARCHAR}, </if> </set> where ID = #{id,jdbcType=DECIMAL} </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.LibPerOrder"> update LIB_PER_ORDER set LIBCODE = #{libcode,jdbcType=VARCHAR}, ORDERTYPE = #{ordertype,jdbcType=CHAR}, BIBID = #{bibid,jdbcType=DECIMAL}, ORDERNO = #{orderno,jdbcType=VARCHAR}, ISSUENUM = #{issuenum,jdbcType=DECIMAL}, FREQUENCY = #{frequency,jdbcType=VARCHAR}, YEARPRICE = #{yearprice,jdbcType=DECIMAL}, ORDERYEAR = #{orderyear,jdbcType=DECIMAL}, BATCHNO = #{batchno,jdbcType=VARCHAR}, COPIES = #{copies,jdbcType=DECIMAL}, NCY = #{ncy,jdbcType=VARCHAR}, PRICE = #{price,jdbcType=DECIMAL}, ORDERNCY = #{orderncy,jdbcType=VARCHAR}, ORDERPRICE = #{orderprice,jdbcType=DECIMAL}, DOCSOURCES = #{docsources,jdbcType=VARCHAR}, FINSOURCES = #{finsources,jdbcType=VARCHAR}, MEDIATYPE = #{mediatype,jdbcType=VARCHAR}, BOOKSELLER = #{bookseller,jdbcType=VARCHAR}, ORDERDATE = #{orderdate,jdbcType=DECIMAL}, OPERID = #{operid,jdbcType=DECIMAL}, NOTE = #{note,jdbcType=VARCHAR}, PUBLISHER = #{publisher,jdbcType=VARCHAR}, PERTYPE = #{pertype,jdbcType=VARCHAR}, ALLOCATION = #{allocation,jdbcType=VARCHAR} where ID = #{id,jdbcType=DECIMAL} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.LibPerOrder" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_PER_ORDER 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="orderno != null"> and ORDERNO = #{orderno,jdbcType=VARCHAR} </if> <if test="id != null"> and ID = #{id,jdbcType=DECIMAL} </if> <if test="bibid != null"> and BIBID = #{bibid,jdbcType=DECIMAL} </if> </select> <select id="listUnionCondition" resultType="java.util.Map"> select LIB_PER_ORDER.ID as "id", LIB_PER_ORDER.LIBCODE as "libcode", ISSUENUM as "issuenum", FREQUENCY as "frequency", BATCHNO as "batchno", COPIES as "copies", ORDERPRICE as "price", LIB_PER_ORDER.PERTYPE as "pertype", 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" from LIB_PER_ORDER left join lib_bibliography on LIB_PER_ORDER.bibid=lib_bibliography.id where 1=1 <include refid="common.condition" /> </select> <select id="listWithCondition" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_PER_ORDER where 1=1 <include refid="common.condition" /> </select> <select id="checkCanDelete" parameterType="java.lang.Long" resultType="java.lang.Integer" > select count(1) from LIB_PER_DETAIL_CHECK where CHECKID IN (SELECT ID FROM LIB_PER_CHECK where ORDERID=#{id,jdbcType=DECIMAL}) and <![CDATA[status in('1','2','4') ]]> </select> </mapper>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de