Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\ParCatCtrlnoMapper.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.ParCatCtrlnoMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.ParCatCtrlno"> <id column="CODE" jdbcType="VARCHAR" property="code" /> <result column="LIBCODE" jdbcType="VARCHAR" property="libcode" /> <result column="NAME" jdbcType="VARCHAR" property="name" /> <result column="STARTCTRLNO" jdbcType="VARCHAR" property="startctrlno" /> <result column="ENDCTRLNO" jdbcType="VARCHAR" property="endctrlno" /> <result column="CURRENTCTRLNO" jdbcType="VARCHAR" property="currentctrlno" /> <result column="PREFIX" jdbcType="VARCHAR" property="prefix" /> <result column="NOTE" jdbcType="VARCHAR" property="note" /> </resultMap> <sql id="Base_Column_List"> CODE, LIBCODE, NAME, STARTCTRLNO, ENDCTRLNO, CURRENTCTRLNO, PREFIX, NOTE </sql> <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from PAR_CAT_CTRLNO where CODE = #{code,jdbcType=VARCHAR} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> delete from PAR_CAT_CTRLNO where CODE = #{code,jdbcType=VARCHAR} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.ParCatCtrlno"> insert into PAR_CAT_CTRLNO (CODE, LIBCODE, NAME, STARTCTRLNO, ENDCTRLNO, CURRENTCTRLNO, PREFIX, NOTE) values (#{code,jdbcType=VARCHAR}, #{libcode,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{startctrlno,jdbcType=VARCHAR}, #{endctrlno,jdbcType=VARCHAR}, #{currentctrlno,jdbcType=VARCHAR}, #{prefix,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.ParCatCtrlno"> insert into PAR_CAT_CTRLNO <trim prefix="(" suffix=")" suffixOverrides=","> <if test="code != null"> CODE, </if> <if test="libcode != null"> LIBCODE, </if> <if test="name != null"> NAME, </if> <if test="startctrlno != null"> STARTCTRLNO, </if> <if test="endctrlno != null"> ENDCTRLNO, </if> <if test="currentctrlno != null"> CURRENTCTRLNO, </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="startctrlno != null"> #{startctrlno,jdbcType=VARCHAR}, </if> <if test="endctrlno != null"> #{endctrlno,jdbcType=VARCHAR}, </if> <if test="currentctrlno != null"> #{currentctrlno,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.ParCatCtrlno"> update PAR_CAT_CTRLNO <set> <if test="libcode != null"> LIBCODE = #{libcode,jdbcType=VARCHAR}, </if> <if test="name != null"> NAME = #{name,jdbcType=VARCHAR}, </if> <if test="startctrlno != null"> STARTCTRLNO = #{startctrlno,jdbcType=VARCHAR}, </if> <if test="endctrlno != null"> ENDCTRLNO = #{endctrlno,jdbcType=VARCHAR}, </if> <if test="currentctrlno != null"> CURRENTCTRLNO = #{currentctrlno,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.ParCatCtrlno"> update PAR_CAT_CTRLNO set LIBCODE = #{libcode,jdbcType=VARCHAR}, NAME = #{name,jdbcType=VARCHAR}, STARTCTRLNO = #{startctrlno,jdbcType=VARCHAR}, ENDCTRLNO = #{endctrlno,jdbcType=VARCHAR}, CURRENTCTRLNO = #{currentctrlno,jdbcType=VARCHAR}, PREFIX = #{prefix,jdbcType=VARCHAR}, NOTE = #{note,jdbcType=VARCHAR} where CODE = #{code,jdbcType=VARCHAR} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.ParCatCtrlno" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from PAR_CAT_CTRLNO 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_CTRLNO 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