Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\ParAcqBatchnoMapper.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.ParAcqBatchnoMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.ParAcqBatchno"> <id column="CODE" jdbcType="VARCHAR" property="code" /> <result column="LIBCODE" jdbcType="VARCHAR" property="libcode" /> <result column="BOOKSELLER" jdbcType="VARCHAR" property="bookseller" /> <result column="TYPE" jdbcType="CHAR" property="type" /> <result column="STATUS" jdbcType="CHAR" property="status" /> <result column="NOTE" jdbcType="VARCHAR" property="note" /> <result column="CREATEDATE" jdbcType="VARCHAR" property="createdate" /> </resultMap> <sql id="Base_Column_List"> CODE, LIBCODE, BOOKSELLER, TYPE, STATUS, NOTE,CREATEDATE </sql> <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from PAR_ACQ_BATCHNO where CODE = #{code,jdbcType=VARCHAR} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> delete from PAR_ACQ_BATCHNO where CODE = #{code,jdbcType=VARCHAR} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.ParAcqBatchno"> insert into PAR_ACQ_BATCHNO (CODE, LIBCODE, BOOKSELLER, TYPE, STATUS, NOTE) values (#{code,jdbcType=VARCHAR}, #{libcode,jdbcType=VARCHAR}, #{bookseller,jdbcType=VARCHAR}, #{type,jdbcType=CHAR}, #{status,jdbcType=CHAR}, #{note,jdbcType=VARCHAR}) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.ParAcqBatchno"> insert into PAR_ACQ_BATCHNO <trim prefix="(" suffix=")" suffixOverrides=","> <if test="code != null"> CODE, </if> <if test="libcode != null"> LIBCODE, </if> <if test="bookseller != null"> BOOKSELLER, </if> <if test="type != null"> TYPE, </if> <if test="status != null"> STATUS, </if> <if test="note != null"> NOTE, </if> <if test="createdate != null"> CREATEDATE, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="code != null"> #{code,jdbcType=VARCHAR}, </if> <if test="libcode != null"> #{libcode,jdbcType=VARCHAR}, </if> <if test="bookseller != null"> #{bookseller,jdbcType=VARCHAR}, </if> <if test="type != null"> #{type,jdbcType=CHAR}, </if> <if test="status != null"> #{status,jdbcType=CHAR}, </if> <if test="note != null"> #{note,jdbcType=VARCHAR}, </if> <if test="createdate != null"> #{createdate,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.ParAcqBatchno"> update PAR_ACQ_BATCHNO <set> <if test="libcode != null"> LIBCODE = #{libcode,jdbcType=VARCHAR}, </if> <if test="bookseller != null"> BOOKSELLER = #{bookseller,jdbcType=VARCHAR}, </if> <if test="type != null"> TYPE = #{type,jdbcType=CHAR}, </if> <if test="status != null"> STATUS = #{status,jdbcType=CHAR}, </if> <if test="note != null"> NOTE = #{note,jdbcType=VARCHAR}, </if> <if test="createdate != null"> CREATEDATE = #{createdate,jdbcType=VARCHAR}, </if> </set> where CODE = #{code,jdbcType=VARCHAR} </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.ParAcqBatchno"> update PAR_ACQ_BATCHNO set LIBCODE = #{libcode,jdbcType=VARCHAR}, BOOKSELLER = #{bookseller,jdbcType=VARCHAR}, TYPE = #{type,jdbcType=CHAR}, STATUS = #{status,jdbcType=CHAR}, NOTE = #{note,jdbcType=VARCHAR} where CODE = #{code,jdbcType=VARCHAR} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.ParAcqBatchno" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from PAR_ACQ_BATCHNO where 1=1 <if test="libcode != null"> and LIBCODE = #{libcode,jdbcType=VARCHAR} </if> <if test="bookseller != null"> and bookseller = #{bookseller,jdbcType=VARCHAR} </if> <if test="code != null"> and CODE like CONCAT(#{code,jdbcType=VARCHAR},'%') </if> <if test="type != null"> and TYPE = #{type,jdbcType=CHAR} </if> <if test="status != null"> and STATUS = #{status,jdbcType=CHAR} </if> </select> <select id="listWithCondition" parameterType="com.jishen.common.SrchLimitEntity" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from PAR_ACQ_BATCHNO 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