Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\LibPerDetailCheckMapper.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.LibPerDetailCheckMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.LibPerDetailCheck"> <id column="ID" jdbcType="DECIMAL" property="id" /> <result column="LIBCODE" jdbcType="VARCHAR" property="libcode" /> <result column="TYPE" jdbcType="CHAR" property="type" /> <result column="BIBID" jdbcType="DECIMAL" property="bibid" /> <result column="CHECKID" jdbcType="DECIMAL" property="checkid" /> <result column="COPIES" jdbcType="DECIMAL" property="copies" /> <result column="ORDERCOPIES" jdbcType="DECIMAL" property="ordercopies" /> <result column="SORTFLD" jdbcType="DECIMAL" property="sortfld" /> <result column="VOLUME" jdbcType="VARCHAR" property="volume" /> <result column="ISSUENUM" jdbcType="DECIMAL" property="issuenum" /> <result column="ISSUE" jdbcType="VARCHAR" property="issue" /> <result column="TOTALISSUE" jdbcType="VARCHAR" property="totalissue" /> <result column="YEAR" jdbcType="DECIMAL" property="year" /> <result column="PRICE" jdbcType="DECIMAL" property="price" /> <result column="STATUS" jdbcType="CHAR" property="status" /> <result column="ACTUALDATE" jdbcType="DECIMAL" property="actualdate" /> <result column="EXPECTDATE" jdbcType="DECIMAL" property="expectdate" /> <result column="ALLOCATION" jdbcType="VARCHAR" property="allocation" /> <result column="OPERID" jdbcType="DECIMAL" property="operid" /> <result column="NOTE" jdbcType="VARCHAR" property="note" /> </resultMap> <sql id="Base_Column_List"> ID, LIBCODE, TYPE, BIBID, CHECKID, COPIES, ORDERCOPIES, SORTFLD, VOLUME, ISSUENUM, ISSUE, TOTALISSUE, YEAR, PRICE, STATUS, ACTUALDATE, EXPECTDATE, ALLOCATION, OPERID, NOTE </sql> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_PER_DETAIL_CHECK where ID = #{id,jdbcType=DECIMAL} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> delete from LIB_PER_DETAIL_CHECK where ID = #{id,jdbcType=DECIMAL} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.LibPerDetailCheck"> insert into LIB_PER_DETAIL_CHECK (ID, LIBCODE, TYPE, BIBID, CHECKID, COPIES, SORTFLD, VOLUME, ISSUENUM, ISSUE, TOTALISSUE, YEAR, PRICE, STATUS, ACTUALDATE, EXPECTDATE, ALLOCATION, OPERID, NOTE) values (#{id,jdbcType=DECIMAL}, #{libcode,jdbcType=VARCHAR}, #{type,jdbcType=CHAR}, #{bibid,jdbcType=DECIMAL}, #{checkid,jdbcType=DECIMAL}, #{copies,jdbcType=DECIMAL}, #{sortfld,jdbcType=DECIMAL}, #{volume,jdbcType=VARCHAR}, #{issuenum,jdbcType=DECIMAL}, #{issue,jdbcType=VARCHAR}, #{totalissue,jdbcType=VARCHAR}, #{year,jdbcType=DECIMAL}, #{price,jdbcType=DECIMAL}, #{status,jdbcType=CHAR}, #{actualdate,jdbcType=DECIMAL}, #{expectdate,jdbcType=DECIMAL}, #{allocation,jdbcType=VARCHAR}, #{operid,jdbcType=DECIMAL}, #{note,jdbcType=VARCHAR}) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.LibPerDetailCheck"> <selectKey keyProperty="id" resultType="java.lang.Long" order="BEFORE"> select LIB_PER_DETAIL_CHECK_SEQ.nextval a FROM dual </selectKey> insert into LIB_PER_DETAIL_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="checkid != null"> CHECKID, </if> <if test="copies != null"> COPIES, </if> <if test="ordercopies != null"> ORDERCOPIES, </if> <if test="sortfld != null"> SORTFLD, </if> <if test="volume != null"> VOLUME, </if> <if test="issuenum != null"> ISSUENUM, </if> <if test="issue != null"> ISSUE, </if> <if test="totalissue != null"> TOTALISSUE, </if> <if test="year != null"> YEAR, </if> <if test="price != null"> PRICE, </if> <if test="status != null"> STATUS, </if> <if test="actualdate != null"> ACTUALDATE, </if> <if test="expectdate != null"> EXPECTDATE, </if> <if test="allocation != null"> ALLOCATION, </if> <if test="operid != null"> OPERID, </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="type != null"> #{type,jdbcType=CHAR}, </if> <if test="bibid != null"> #{bibid,jdbcType=DECIMAL}, </if> <if test="checkid != null"> #{checkid,jdbcType=DECIMAL}, </if> <if test="copies != null"> #{copies,jdbcType=DECIMAL}, </if> <if test="ordercopies != null"> #{ordercopies,jdbcType=DECIMAL}, </if> <if test="sortfld != null"> #{sortfld,jdbcType=DECIMAL}, </if> <if test="volume != null"> #{volume,jdbcType=VARCHAR}, </if> <if test="issuenum != null"> #{issuenum,jdbcType=DECIMAL}, </if> <if test="issue != null"> #{issue,jdbcType=VARCHAR}, </if> <if test="totalissue != null"> #{totalissue,jdbcType=VARCHAR}, </if> <if test="year != null"> #{year,jdbcType=DECIMAL}, </if> <if test="price != null"> #{price,jdbcType=DECIMAL}, </if> <if test="status != null"> #{status,jdbcType=CHAR}, </if> <if test="actualdate != null"> #{actualdate,jdbcType=DECIMAL}, </if> <if test="expectdate != null"> #{expectdate,jdbcType=DECIMAL}, </if> <if test="allocation != null"> #{allocation,jdbcType=VARCHAR}, </if> <if test="operid != null"> #{operid,jdbcType=DECIMAL}, </if> <if test="note != null"> #{note,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.LibPerDetailCheck"> update LIB_PER_DETAIL_CHECK <set> <if test="libcode != null"> LIBCODE = #{libcode,jdbcType=VARCHAR}, </if> <if test="type != null"> TYPE = #{type,jdbcType=CHAR}, </if> <if test="bibid != null"> BIBID = #{bibid,jdbcType=DECIMAL}, </if> <if test="checkid != null"> CHECKID = #{checkid,jdbcType=DECIMAL}, </if> <if test="copies != null"> COPIES = #{copies,jdbcType=DECIMAL}, </if> <if test="ordercopies != null"> ordercopies = #{ordercopies,jdbcType=DECIMAL}, </if> <if test="sortfld != null"> SORTFLD = #{sortfld,jdbcType=DECIMAL}, </if> <if test="volume != null"> VOLUME = #{volume,jdbcType=VARCHAR}, </if> <if test="issuenum != null"> ISSUENUM = #{issuenum,jdbcType=DECIMAL}, </if> <if test="issue != null"> ISSUE = #{issue,jdbcType=VARCHAR}, </if> <if test="totalissue != null"> TOTALISSUE = #{totalissue,jdbcType=VARCHAR}, </if> <if test="year != null"> YEAR = #{year,jdbcType=DECIMAL}, </if> <if test="price != null"> PRICE = #{price,jdbcType=DECIMAL}, </if> <if test="status != null"> STATUS = #{status,jdbcType=CHAR}, </if> <if test="actualdate != null"> ACTUALDATE = #{actualdate,jdbcType=DECIMAL}, </if> <if test="expectdate != null"> EXPECTDATE = #{expectdate,jdbcType=DECIMAL}, </if> <if test="allocation != null"> ALLOCATION = #{allocation,jdbcType=VARCHAR}, </if> <if test="operid != null"> OPERID = #{operid,jdbcType=DECIMAL}, </if> <if test="note != null"> NOTE = #{note,jdbcType=VARCHAR}, </if> </set> where ID = #{id,jdbcType=DECIMAL} </update> <update id="updateByIdsSelective" parameterType="com.jishen.libsystem.entity.LibPerDetailCheck"> update LIB_PER_DETAIL_CHECK <set> <if test="libcode != null"> LIBCODE = #{libcode,jdbcType=VARCHAR}, </if> <if test="type != null"> TYPE = #{type,jdbcType=CHAR}, </if> <if test="bibid != null"> BIBID = #{bibid,jdbcType=DECIMAL}, </if> <if test="checkid != null"> CHECKID = #{checkid,jdbcType=DECIMAL}, </if> <if test="copies != null"> COPIES = #{copies,jdbcType=DECIMAL}, </if> <if test="ordercopies != null"> ordercopies = #{ordercopies,jdbcType=DECIMAL}, </if> <if test="sortfld != null"> SORTFLD = #{sortfld,jdbcType=DECIMAL}, </if> <if test="volume != null"> VOLUME = #{volume,jdbcType=VARCHAR}, </if> <if test="issuenum != null"> ISSUENUM = #{issuenum,jdbcType=DECIMAL}, </if> <if test="issue != null"> ISSUE = #{issue,jdbcType=VARCHAR}, </if> <if test="totalissue != null"> TOTALISSUE = #{totalissue,jdbcType=VARCHAR}, </if> <if test="year != null"> YEAR = #{year,jdbcType=DECIMAL}, </if> <if test="price != null"> PRICE = #{price,jdbcType=DECIMAL}, </if> <if test="status != null"> STATUS = #{status,jdbcType=CHAR}, </if> <if test="actualdate != null"> ACTUALDATE = #{actualdate,jdbcType=DECIMAL}, </if> <if test="expectdate != null"> EXPECTDATE = #{expectdate,jdbcType=DECIMAL}, </if> <if test="allocation != null"> ALLOCATION = #{allocation,jdbcType=VARCHAR}, </if> <if test="operid != null"> OPERID = #{operid,jdbcType=DECIMAL}, </if> <if test="note != null"> NOTE = #{note,jdbcType=VARCHAR}, </if> </set> where ID in (${ids}) </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.LibPerDetailCheck"> update LIB_PER_DETAIL_CHECK set LIBCODE = #{libcode,jdbcType=VARCHAR}, TYPE = #{type,jdbcType=CHAR}, BIBID = #{bibid,jdbcType=DECIMAL}, CHECKID = #{checkid,jdbcType=DECIMAL}, COPIES = #{copies,jdbcType=DECIMAL}, ordercopies = #{ordercopies,jdbcType=DECIMAL}, SORTFLD = #{sortfld,jdbcType=DECIMAL}, VOLUME = #{volume,jdbcType=VARCHAR}, ISSUENUM = #{issuenum,jdbcType=DECIMAL}, ISSUE = #{issue,jdbcType=VARCHAR}, TOTALISSUE = #{totalissue,jdbcType=VARCHAR}, YEAR = #{year,jdbcType=DECIMAL}, PRICE = #{price,jdbcType=DECIMAL}, STATUS = #{status,jdbcType=CHAR}, ACTUALDATE = #{actualdate,jdbcType=DECIMAL}, EXPECTDATE = #{expectdate,jdbcType=DECIMAL}, ALLOCATION = #{allocation,jdbcType=VARCHAR}, OPERID = #{operid,jdbcType=DECIMAL}, NOTE = #{note,jdbcType=VARCHAR} where ID = #{id,jdbcType=DECIMAL} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.LibPerDetailCheck" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_PER_DETAIL_CHECK where 1=1 <if test="bibid != null"> and BIBID = #{bibid,jdbcType=DECIMAL} </if> <if test="checkid != null"> and CHECKID = #{checkid,jdbcType=DECIMAL} </if> <if test="year != null"> and YEAR = #{year,jdbcType=DECIMAL} </if> <if test="issue != null"> and issue = #{issue,jdbcType=VARCHAR} </if> <if test="ids != null"> and ID in (${ids}) </if> </select> <update id="updateRecords" parameterType="java.util.List"> begin <foreach collection="records" item="record" index="index" separator=";"> update LIB_PER_DETAIL_CHECK <set> <if test="record.libcode != null"> LIBCODE = #{record.libcode,jdbcType=VARCHAR}, </if> <if test="record.type != null"> TYPE = #{record.type,jdbcType=CHAR}, </if> <if test="record.bibid != null"> BIBID = #{record.bibid,jdbcType=DECIMAL}, </if> <if test="record.checkid != null"> CHECKID = #{record.checkid,jdbcType=DECIMAL}, </if> <if test="record.copies != null"> COPIES = #{record.copies,jdbcType=DECIMAL}, </if> <if test="record.ordercopies != null"> ordercopies = #{record.ordercopies,jdbcType=DECIMAL}, </if> <if test="record.sortfld != null"> SORTFLD = #{record.sortfld,jdbcType=DECIMAL}, </if> <if test="record.volume != null"> VOLUME = #{record.volume,jdbcType=VARCHAR}, </if> <if test="record.issue != null"> ISSUE = #{record.issue,jdbcType=VARCHAR}, </if> <if test="record.totalissue != null"> TOTALISSUE = #{record.totalissue,jdbcType=VARCHAR}, </if> <if test="record.year != null"> YEAR = #{record.year,jdbcType=DECIMAL}, </if> <if test="record.price != null"> PRICE = #{record.price,jdbcType=DECIMAL}, </if> <if test="record.status != null"> STATUS = #{record.status,jdbcType=CHAR}, </if> <if test="record.actualdate != null"> ACTUALDATE = #{record.actualdate,jdbcType=DECIMAL}, </if> <if test="record.expectdate != null"> EXPECTDATE = #{record.expectdate,jdbcType=DECIMAL}, </if> <if test="record.operid != null"> OPERID = #{record.operid,jdbcType=DECIMAL}, </if> <if test="record.note != null"> NOTE = #{record.note,jdbcType=VARCHAR}, </if> </set> where ID = #{record.id,jdbcType=DECIMAL} </foreach> ;end; </update> <insert id="insertRecords"> insert into LIB_PER_DETAIL_CHECK ( <include refid="Base_Column_List" /> ) select LIB_PER_DETAIL_CHECK_SEQ.nextval, list.* from ( <foreach collection="records" item="record" index="index" separator="UNION ALL"> select #{record.libcode,jdbcType=VARCHAR}, #{record.type,jdbcType=CHAR}, #{record.bibid,jdbcType=DECIMAL}, #{record.checkid,jdbcType=DECIMAL}, #{record.copies,jdbcType=DECIMAL}, #{record.ordercopies,jdbcType=DECIMAL}, #{record.sortfld,jdbcType=DECIMAL}, #{record.volume,jdbcType=VARCHAR}, #{record.issuenum,jdbcType=DECIMAL}, #{record.issue,jdbcType=VARCHAR}, #{record.totalissue,jdbcType=VARCHAR}, #{record.year,jdbcType=DECIMAL}, #{record.price,jdbcType=DECIMAL}, #{record.status,jdbcType=CHAR}, #{record.actualdate,jdbcType=DECIMAL}, #{record.expectdate,jdbcType=DECIMAL}, #{record.allocation,jdbcType=VARCHAR}, #{record.operid,jdbcType=DECIMAL}, #{record.note,jdbcType=VARCHAR} from dual </foreach> ) list </insert> <delete id="deleteWithRecord" parameterType="com.jishen.libsystem.entity.LibPerDetailCheck"> delete from LIB_PER_DETAIL_CHECK where 1=1 <if test="bibid != null"> and BIBID = #{bibid,jdbcType=DECIMAL} </if> <if test="checkid != null"> and CHECKID = #{checkid,jdbcType=DECIMAL} </if> <if test="ids != null"> and ID in (${ids}) </if> </delete> <delete id="deleteRecords"> delete from LIB_PER_DETAIL_CHECK where 1 = 1 <include refid="common.condition"/> </delete> <select id="listWithCondition" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_PER_DETAIL_CHECK where 1=1 <include refid="common.condition"/> </select> <update id="updateWithCondition"> update LIB_PER_DETAIL_CHECK <set> <if test="record.ordercopies != null"> ordercopies = #{record.ordercopies,jdbcType=DECIMAL}, </if> <if test="record.sortfld != null"> SORTFLD = #{record.sortfld,jdbcType=DECIMAL}, </if> <if test="record.issuenum != null"> ISSUENUM = #{record.issuenum,jdbcType=DECIMAL}, </if> <if test="record.year != null"> YEAR = #{record.year,jdbcType=DECIMAL}, </if> <if test="record.price != null"> PRICE = #{record.price,jdbcType=DECIMAL}, </if> <if test="record.allocation != null"> ALLOCATION = #{record.allocation,jdbcType=VARCHAR}, </if> <if test="record.note != null"> NOTE = #{record.note,jdbcType=VARCHAR}, </if> </set> where 1=1 <include refid="common.condition"/> </update> </mapper>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de