Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\LibPerShelfnoMapper.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.LibPerShelfnoMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.LibPerShelfno"> <id column="ID" jdbcType="DECIMAL" property="id" /> <result column="LIBCODE" jdbcType="VARCHAR" property="libcode" /> <result column="BIBID" jdbcType="DECIMAL" property="bibid" /> <result column="SHELFNO" jdbcType="VARCHAR" property="shelfno" /> <result column="NOTE" jdbcType="VARCHAR" property="note" /> </resultMap> <sql id="Base_Column_List"> ID, LIBCODE, BIBID, SHELFNO, NOTE </sql> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_PER_SHELFNO where ID = #{id,jdbcType=DECIMAL} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> delete from LIB_PER_SHELFNO where ID = #{id,jdbcType=DECIMAL} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.LibPerShelfno"> insert into LIB_PER_SHELFNO (ID, LIBCODE, BIBID, SHELFNO, NOTE) values (#{id,jdbcType=DECIMAL}, #{libcode,jdbcType=VARCHAR}, #{bibid,jdbcType=DECIMAL}, #{shelfno,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.LibPerShelfno"> <selectKey keyProperty="id" resultType="java.lang.Long" order="BEFORE"> select LIB_PER_SHELFNO_SEQ.nextval a FROM dual </selectKey> insert into LIB_PER_SHELFNO <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> ID, </if> <if test="libcode != null"> LIBCODE, </if> <if test="bibid != null"> BIBID, </if> <if test="shelfno != null"> SHELFNO, </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="bibid != null"> #{bibid,jdbcType=DECIMAL}, </if> <if test="shelfno != null"> #{shelfno,jdbcType=VARCHAR}, </if> <if test="note != null"> #{note,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.LibPerShelfno"> update LIB_PER_SHELFNO <set> <if test="libcode != null"> LIBCODE = #{libcode,jdbcType=VARCHAR}, </if> <if test="bibid != null"> BIBID = #{bibid,jdbcType=DECIMAL}, </if> <if test="shelfno != null"> SHELFNO = #{shelfno,jdbcType=VARCHAR}, </if> <if test="note != null"> NOTE = #{note,jdbcType=VARCHAR}, </if> </set> where ID = #{id,jdbcType=DECIMAL} </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.LibPerShelfno"> update LIB_PER_SHELFNO set LIBCODE = #{libcode,jdbcType=VARCHAR}, BIBID = #{bibid,jdbcType=DECIMAL}, SHELFNO = #{shelfno,jdbcType=VARCHAR}, NOTE = #{note,jdbcType=VARCHAR} where ID = #{id,jdbcType=DECIMAL} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.LibPerShelfno" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_PER_SHELFNO where 1=1 <if test="shelfno != null"> and shelfno = #{shelfno,jdbcType=VARCHAR} </if> <if test="libcode != null"> and libcode = #{libcode,jdbcType=VARCHAR} </if> <if test="bibid != null"> and bibid = #{bibid,jdbcType=DECIMAL} </if> </select> <select id="listWithCondition" parameterType="com.jishen.common.SrchLimitEntity" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_PER_SHELFNO where 1=1 <include refid="common.condition"></include> </select> </mapper>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de