Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\LibCatInstitutionalMapper.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.LibCatInstitutionalMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.LibCatInstitutional"> <id column="CODE" jdbcType="VARCHAR" property="code" /> <result column="NAME" jdbcType="VARCHAR" property="name" /> <result column="ADDRESS" jdbcType="VARCHAR" property="address" /> <result column="AREA" jdbcType="VARCHAR" property="area" /> <result column="NOTE" jdbcType="VARCHAR" property="note" /> <result column="AREACODE" jdbcType="VARCHAR" property="areacode" /> </resultMap> <sql id="Base_Column_List"> CODE, NAME, ADDRESS, AREA, NOTE, AREACODE </sql> <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from C##JISHEN.LIB_CAT_INSTITUTIONAL where CODE = #{code,jdbcType=VARCHAR} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> delete from C##JISHEN.LIB_CAT_INSTITUTIONAL where CODE = #{code,jdbcType=VARCHAR} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.LibCatInstitutional"> insert into C##JISHEN.LIB_CAT_INSTITUTIONAL (CODE, NAME, ADDRESS, AREA, NOTE, AREACODE ) values (#{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{area,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{areacode,jdbcType=VARCHAR} ) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.LibCatInstitutional"> insert into C##JISHEN.LIB_CAT_INSTITUTIONAL <trim prefix="(" suffix=")" suffixOverrides=","> <if test="code != null"> CODE, </if> <if test="name != null"> NAME, </if> <if test="address != null"> ADDRESS, </if> <if test="area != null"> AREA, </if> <if test="note != null"> NOTE, </if> <if test="areacode != null"> AREACODE, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="code != null"> #{code,jdbcType=VARCHAR}, </if> <if test="name != null"> #{name,jdbcType=VARCHAR}, </if> <if test="address != null"> #{address,jdbcType=VARCHAR}, </if> <if test="area != null"> #{area,jdbcType=VARCHAR}, </if> <if test="note != null"> #{note,jdbcType=VARCHAR}, </if> <if test="areacode != null"> #{areacode,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.LibCatInstitutional"> update C##JISHEN.LIB_CAT_INSTITUTIONAL <set> <if test="name != null"> NAME = #{name,jdbcType=VARCHAR}, </if> <if test="address != null"> ADDRESS = #{address,jdbcType=VARCHAR}, </if> <if test="area != null"> AREA = #{area,jdbcType=VARCHAR}, </if> <if test="note != null"> NOTE = #{note,jdbcType=VARCHAR}, </if> <if test="areacode != null"> AREACODE = #{areacode,jdbcType=VARCHAR}, </if> </set> where CODE = #{code,jdbcType=VARCHAR} </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.LibCatInstitutional"> update C##JISHEN.LIB_CAT_INSTITUTIONAL set NAME = #{name,jdbcType=VARCHAR}, ADDRESS = #{address,jdbcType=VARCHAR}, AREA = #{area,jdbcType=VARCHAR}, NOTE = #{note,jdbcType=VARCHAR}, AREACODE = #{areacode,jdbcType=VARCHAR} where CODE = #{code,jdbcType=VARCHAR} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.LibCatInstitutional" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CAT_INSTITUTIONAL where 1=1 <if test="code != null"> and code = #{code,jdbcType=VARCHAR} </if> </select> </mapper>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de