Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\LibPerAllocationMapper.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.LibPerAllocationMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.LibPerAllocation"> <result column="LIBCODE" jdbcType="VARCHAR" property="libcode" /> <result column="LOCCODE" jdbcType="VARCHAR" property="loccode" /> <result column="LINKID" jdbcType="DECIMAL" property="linkid" /> <result column="COPIES" jdbcType="DECIMAL" property="copies" /> <result column="TYPE" jdbcType="CHAR" property="type" /> <result column="BARCODE" jdbcType="VARCHAR" property="barcode" /> <result column="VOLINFO" jdbcType="VARCHAR" property="volinfo" /> </resultMap> <insert id="insert"> insert into LIB_PER_ALLOCATION (LIBCODE, LOCCODE, LINKID, COPIES, TYPE, BARCODE, VOLINFO) select items.* from ( <foreach collection="list" item="item" index="index" separator="UNION ALL"> select #{item.libcode,jdbcType=VARCHAR}, #{item.loccode,jdbcType=VARCHAR}, #{item.linkid,jdbcType=DECIMAL}, #{item.copies,jdbcType=DECIMAL}, #{item.type,jdbcType=CHAR}, #{item.barcode,jdbcType=DECIMAL}, #{item.volinfo,jdbcType=CHAR} from dual </foreach> ) items </insert> <delete id="delete"> delete from LIB_PER_ALLOCATION where linkid = #{linkid,jdbcType=DECIMAL} and type=#{type,jdbcType=CHAR} </delete> <delete id="deleteByCheckId"> delete from LIB_PER_ALLOCATION where linkid in (select id from LIB_PER_DETAIL_CHECK where checkid = #{checkid,jdbcType=DECIMAL}) and type = 1 </delete> <select id="list" resultMap="BaseResultMap"> select LIBCODE, LOCCODE, LINKID, COPIES, TYPE, BARCODE, VOLINFO from LIB_PER_ALLOCATION where 1=1 <if test="linkid != null"> and linkid = #{linkid,jdbcType=DECIMAL} </if> </select> <select id="listByBarcode" resultType="java.util.Map"> select LIB_PER_DETAIL_CHECK.id as "id",lib_bibliography.id as "bibid", title as "title",author as "author",isbn as "isbn",publish as "publish", publishaddress as "publishaddress", publishdate as "publishdate", LIB_PER_DETAIL_CHECK.price as "price", LIB_PER_ALLOCATION.LIBCODE as "libcode", VOLINFO as "volinfo", BARCODE as "barcode", LOCCODE as "loccode", LIB_PER_DETAIL_CHECK.YEAR as "year", LIB_PER_DETAIL_CHECK.ISSUE as "issue" from LIB_PER_ALLOCATION join LIB_PER_DETAIL_CHECK on LIB_PER_ALLOCATION.LINKID=LIB_PER_DETAIL_CHECK.id join lib_bibliography on LIB_PER_DETAIL_CHECK.bibid=lib_bibliography.id where barcode = #{barcode,jdbcType=VARCHAR} </select> </mapper>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de