Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\ParCatBarcodeMapper.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.ParCatBarcodeMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.ParCatBarcode"> <id column="CODE" jdbcType="VARCHAR" property="code" /> <result column="LIBCODE" jdbcType="VARCHAR" property="libcode" /> <result column="NAME" jdbcType="VARCHAR" property="name" /> <result column="STARTBARNO" jdbcType="VARCHAR" property="startbarno" /> <result column="ENDBARNO" jdbcType="VARCHAR" property="endbarno" /> <result column="CURRENTBARNO" jdbcType="VARCHAR" property="currentbarno" /> <result column="PREFIX" jdbcType="VARCHAR" property="prefix" /> <result column="NOTE" jdbcType="VARCHAR" property="note" /> </resultMap> <sql id="Base_Column_List"> CODE, LIBCODE, NAME, STARTBARNO, ENDBARNO, CURRENTBARNO, PREFIX, NOTE </sql> <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from PAR_CAT_BARCODE where CODE = #{code,jdbcType=VARCHAR} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> delete from PAR_CAT_BARCODE where CODE = #{code,jdbcType=VARCHAR} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.ParCatBarcode"> insert into PAR_CAT_BARCODE (CODE, LIBCODE, NAME, STARTBARNO, ENDBARNO, CURRENTBARNO, PREFIX, NOTE) values (#{code,jdbcType=VARCHAR}, #{libcode,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{startbarno,jdbcType=VARCHAR}, #{endbarno,jdbcType=VARCHAR}, #{currentbarno,jdbcType=VARCHAR}, #{prefix,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.ParCatBarcode"> insert into PAR_CAT_BARCODE <trim prefix="(" suffix=")" suffixOverrides=","> <if test="code != null"> CODE, </if> <if test="libcode != null"> LIBCODE, </if> <if test="name != null"> NAME, </if> <if test="startbarno != null"> STARTBARNO, </if> <if test="endbarno != null"> ENDBARNO, </if> <if test="currentbarno != null"> CURRENTBARNO, </if> <if test="prefix != null"> PREFIX, </if> <if test="note != null"> NOTE, </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="name != null"> #{name,jdbcType=VARCHAR}, </if> <if test="startbarno != null"> #{startbarno,jdbcType=VARCHAR}, </if> <if test="endbarno != null"> #{endbarno,jdbcType=VARCHAR}, </if> <if test="currentbarno != null"> #{currentbarno,jdbcType=VARCHAR}, </if> <if test="prefix != null"> #{prefix,jdbcType=VARCHAR}, </if> <if test="note != null"> #{note,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.ParCatBarcode"> update PAR_CAT_BARCODE <set> <if test="libcode != null"> LIBCODE = #{libcode,jdbcType=VARCHAR}, </if> <if test="name != null"> NAME = #{name,jdbcType=VARCHAR}, </if> <if test="startbarno != null"> STARTBARNO = #{startbarno,jdbcType=VARCHAR}, </if> <if test="endbarno != null"> ENDBARNO = #{endbarno,jdbcType=VARCHAR}, </if> <if test="currentbarno != null"> CURRENTBARNO = #{currentbarno,jdbcType=VARCHAR}, </if> <if test="prefix != null"> PREFIX = #{prefix,jdbcType=VARCHAR}, </if> <if test="note != null"> NOTE = #{note,jdbcType=VARCHAR}, </if> </set> where CODE = #{code,jdbcType=VARCHAR} </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.ParCatBarcode"> update PAR_CAT_BARCODE set LIBCODE = #{libcode,jdbcType=VARCHAR}, NAME = #{name,jdbcType=VARCHAR}, STARTBARNO = #{startbarno,jdbcType=VARCHAR}, ENDBARNO = #{endbarno,jdbcType=VARCHAR}, CURRENTBARNO = #{currentbarno,jdbcType=VARCHAR}, PREFIX = #{prefix,jdbcType=VARCHAR}, NOTE = #{note,jdbcType=VARCHAR} where CODE = #{code,jdbcType=VARCHAR} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.ParCatBarcode" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from PAR_CAT_BARCODE where 1=1 <if test="code != null"> and code = #{code,jdbcType=VARCHAR} </if> <if test="libcode != null"> and libcode = #{libcode,jdbcType=VARCHAR} </if> <if test="name != null"> and name = #{name,jdbcType=VARCHAR} </if> </select> <select id="listWithCondition" parameterType="com.jishen.common.SrchLimitEntity" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from PAR_CAT_BARCODE 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