Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\LibPerCheckMapper.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.LibPerCheckMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.LibPerCheck"> <id column="ID" jdbcType="DECIMAL" property="id" /> <result column="LIBCODE" jdbcType="VARCHAR" property="libcode" /> <result column="TYPE" jdbcType="VARCHAR" property="type" /> <result column="BIBID" jdbcType="DECIMAL" property="bibid" /> <result column="ORDERNO" jdbcType="VARCHAR" property="orderno" /> <result column="ORDERID" jdbcType="DECIMAL" property="orderid" /> <result column="FREQUENCY" jdbcType="VARCHAR" property="frequency" /> <result column="ISSUENUM" jdbcType="DECIMAL" property="issuenum" /> <result column="YEAR" jdbcType="DECIMAL" property="year" /> <result column="BATCHNO" jdbcType="VARCHAR" property="batchno" /> <result column="COPIES" jdbcType="DECIMAL" property="copies" /> <result column="PRICE" jdbcType="DECIMAL" property="price" /> <result column="YEARPRICE" jdbcType="DECIMAL" property="yearprice" /> <result column="DOCSOURCES" jdbcType="VARCHAR" property="docsources" /> <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="ALLOCATION" jdbcType="VARCHAR" property="allocation" /> <result column="NOTE" jdbcType="VARCHAR" property="note" /> <result column="SHELFNO" jdbcType="VARCHAR" property="shelfno" /> </resultMap> <sql id="Base_Column_List"> ID, LIBCODE, TYPE, BIBID, ORDERNO, ORDERID, FREQUENCY, ISSUENUM, YEAR, BATCHNO, COPIES, PRICE, YEARPRICE, DOCSOURCES, MEDIATYPE, BOOKSELLER, CHECKDATE, OPERID, ALLOCATION, NOTE, SHELFNO </sql> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_PER_CHECK where ID = #{id,jdbcType=DECIMAL} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> delete from LIB_PER_CHECK where ID = #{id,jdbcType=DECIMAL} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.LibPerCheck"> insert into LIB_PER_CHECK (ID, LIBCODE, TYPE, BIBID, ORDERNO, ORDERID, FREQUENCY, ISSUENUM, YEAR, BATCHNO, COPIES, PRICE, YEARPRICE, DOCSOURCES, MEDIATYPE, BOOKSELLER, CHECKDATE, OPERID, ALLOCATION, NOTE, SHELFNO ) values (#{id,jdbcType=DECIMAL}, #{libcode,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{bibid,jdbcType=DECIMAL}, #{orderno,jdbcType=VARCHAR}, #{orderid,jdbcType=DECIMAL}, #{frequency,jdbcType=VARCHAR}, #{issuenum,jdbcType=DECIMAL}, #{year,jdbcType=DECIMAL}, #{batchno,jdbcType=VARCHAR}, #{copies,jdbcType=DECIMAL}, #{price,jdbcType=DECIMAL}, #{yearprice,jdbcType=DECIMAL}, #{docsources,jdbcType=VARCHAR}, #{mediatype,jdbcType=VARCHAR}, #{bookseller,jdbcType=VARCHAR}, #{checkdate,jdbcType=DECIMAL}, #{operid,jdbcType=DECIMAL}, #{allocation,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{shelfno,jdbcType=VARCHAR} ) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.LibPerCheck"> <selectKey keyProperty="id" resultType="java.lang.Long" order="BEFORE"> select LIB_PER_CHECK_SEQ.nextval a FROM dual </selectKey> insert into LIB_PER_CHECK <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> ID, </if> <if test="libcode != null"> LIBCODE, </if> <if test="type != null"> TYPE, </if> <if test="bibid != null"> BIBID, </if> <if test="orderno != null"> ORDERNO, </if> <if test="orderid != null"> ORDERID, </if> <if test="frequency != null"> FREQUENCY, </if> <if test="issuenum != null"> ISSUENUM, </if> <if test="year != null"> YEAR, </if> <if test="batchno != null"> BATCHNO, </if> <if test="copies != null"> COPIES, </if> <if test="price != null"> PRICE, </if> <if test="yearprice != null"> YEARPRICE, </if> <if test="docsources != null"> DOCSOURCES, </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="allocation != null"> ALLOCATION, </if> <if test="note != null"> NOTE, </if> <if test="shelfno != null"> SHELFNO, </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="type != null"> #{type,jdbcType=VARCHAR}, </if> <if test="bibid != null"> #{bibid,jdbcType=DECIMAL}, </if> <if test="orderno != null"> #{orderno,jdbcType=VARCHAR}, </if> <if test="orderid != null"> #{orderid,jdbcType=DECIMAL}, </if> <if test="frequency != null"> #{frequency,jdbcType=VARCHAR}, </if> <if test="issuenum != null"> #{issuenum,jdbcType=DECIMAL}, </if> <if test="year != null"> #{year,jdbcType=DECIMAL}, </if> <if test="batchno != null"> #{batchno,jdbcType=VARCHAR}, </if> <if test="copies != null"> #{copies,jdbcType=DECIMAL}, </if> <if test="price != null"> #{price,jdbcType=DECIMAL}, </if> <if test="yearprice != null"> #{yearprice,jdbcType=DECIMAL}, </if> <if test="docsources != null"> #{docsources,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="allocation != null"> #{allocation,jdbcType=VARCHAR}, </if> <if test="note != null"> #{note,jdbcType=VARCHAR}, </if> <if test="shelfno != null"> #{shelfno,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.LibPerCheck"> update LIB_PER_CHECK <set> <if test="libcode != null"> LIBCODE = #{libcode,jdbcType=VARCHAR}, </if> <if test="type != null"> TYPE = #{type,jdbcType=VARCHAR}, </if> <if test="bibid != null"> BIBID = #{bibid,jdbcType=DECIMAL}, </if> <if test="orderno != null"> ORDERNO = #{orderno,jdbcType=VARCHAR}, </if> <if test="orderid != null"> ORDERID = #{orderid,jdbcType=DECIMAL}, </if> <if test="frequency != null"> FREQUENCY = #{frequency,jdbcType=VARCHAR}, </if> <if test="issuenum != null"> ISSUENUM = #{issuenum,jdbcType=DECIMAL}, </if> <if test="year != null"> YEAR = #{year,jdbcType=DECIMAL}, </if> <if test="batchno != null"> BATCHNO = #{batchno,jdbcType=VARCHAR}, </if> <if test="copies != null"> COPIES = #{copies,jdbcType=DECIMAL}, </if> <if test="price != null"> PRICE = #{price,jdbcType=DECIMAL}, </if> <if test="yearprice != null"> YEARPRICE = #{yearprice,jdbcType=DECIMAL}, </if> <if test="docsources != null"> DOCSOURCES = #{docsources,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="allocation != null"> ALLOCATION = #{allocation,jdbcType=VARCHAR}, </if> <if test="note != null"> NOTE = #{note,jdbcType=VARCHAR}, </if> <if test="shelfno != null"> SHELFNO = #{shelfno,jdbcType=VARCHAR}, </if> </set> where ID = #{id,jdbcType=DECIMAL} </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.LibPerCheck"> update LIB_PER_CHECK set LIBCODE = #{libcode,jdbcType=VARCHAR}, TYPE = #{type,jdbcType=VARCHAR}, BIBID = #{bibid,jdbcType=DECIMAL}, ORDERNO = #{orderno,jdbcType=VARCHAR}, ORDERID = #{orderid,jdbcType=DECIMAL}, FREQUENCY = #{frequency,jdbcType=VARCHAR}, ISSUENUM = #{issuenum,jdbcType=DECIMAL}, YEAR = #{year,jdbcType=DECIMAL}, BATCHNO = #{batchno,jdbcType=VARCHAR}, COPIES = #{copies,jdbcType=DECIMAL}, PRICE = #{price,jdbcType=DECIMAL}, YEARPRICE = #{yearprice,jdbcType=DECIMAL}, DOCSOURCES = #{docsources,jdbcType=VARCHAR}, MEDIATYPE = #{mediatype,jdbcType=VARCHAR}, BOOKSELLER = #{bookseller,jdbcType=VARCHAR}, CHECKDATE = #{checkdate,jdbcType=DECIMAL}, OPERID = #{operid,jdbcType=DECIMAL}, ALLOCATION = #{allocation,jdbcType=VARCHAR}, NOTE = #{note,jdbcType=VARCHAR}, SHELFNO = #{shelfno,jdbcType=VARCHAR} where ID = #{id,jdbcType=DECIMAL} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.LibPerCheck" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_PER_CHECK 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="bibid != null"> and BIBID = #{bibid,jdbcType=DECIMAL} </if> <if test="orderid != null"> and ORDERID = #{orderid,jdbcType=DECIMAL} </if> </select> <select id="checkCanDelete" parameterType="java.lang.Long" resultType="java.lang.Integer" > select count(1) from LIB_PER_DETAIL_CHECK where CHECKID =#{id,jdbcType=DECIMAL} and status in('1','2','4') </select> </mapper>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de