Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\LibAcqCollectbibIdxMapper.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.LibAcqCollectbibIdxMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.LibBibliosIndex"> <result column="BIBID" jdbcType="DECIMAL" property="bibid" /> <result column="TYPE" jdbcType="VARCHAR" property="type" /> <result column="LIBCODE" jdbcType="VARCHAR" property="libcode" /> <result column="SYSID" jdbcType="DECIMAL" property="sysid" /> <result column="CODE" jdbcType="VARCHAR" property="code" /> <result column="VALUE" jdbcType="VARCHAR" property="value" /> </resultMap> <insert id="insert"> insert into LIB_ACQ_COLLECTBIB_IDX (BIBID, SYSID,LIBCODE, TYPE, CODE, VALUE) select idxItems.* from ( <foreach collection="list" item="item" index="index" separator="UNION ALL"> <if test="item != null and item.bibid != null"> select #{item.bibid,jdbcType=DECIMAL} as bibid, #{item.sysid,jdbcType=DECIMAL} as sysid, #{item.libcode,jdbcType=VARCHAR} as libcode, #{item.type,jdbcType=DECIMAL} as type, #{item.code,jdbcType=VARCHAR} as code, #{item.value,jdbcType=VARCHAR} as value from dual </if> </foreach> ) idxItems </insert> <delete id="delete"> delete from LIB_ACQ_COLLECTBIB_IDX where bibid in (${bibid}) </delete> <!-- <select id="selectRepeatBibid" resultType="java.lang.Long"> select bibid from ( <foreach collection="list" item="item" index="index" separator="INTERSECT"> <if test="item != null"> select distinct bibid from LIB_ACQ_COLLECTBIB_IDX where 1=1 <if test="item.libcode != null"> and LIBCODE = #{item.libcode,jdbcType=VARCHAR} </if> and TYPE = #{item.type,jdbcType=VARCHAR} <if test="item.sysid != null"> and SYSID = #{item.sysid,jdbcType=DECIMAL} </if> and VALUE =#{item.value,jdbcType=VARCHAR} </if> </foreach>) </select> --> </mapper>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de