Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\LibBookclassMapper.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.LibBookclassMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.LibBookclass"> <id column="CODE" jdbcType="VARCHAR" property="code" /> <result column="NAME" jdbcType="VARCHAR" property="name" /> <result column="CLASSLEVEL" jdbcType="CHAR" property="classlevel" /> <result column="NOTE" jdbcType="VARCHAR" property="note" /> </resultMap> <sql id="Base_Column_List"> CODE, NAME, CLASSLEVEL, NOTE </sql> <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_BOOKCLASS where CODE = #{code,jdbcType=VARCHAR} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> delete from LIB_BOOKCLASS where CODE = #{code,jdbcType=VARCHAR} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.LibBookclass"> insert into LIB_BOOKCLASS (CODE, NAME, CLASSLEVEL, NOTE) values (#{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{classlevel,jdbcType=CHAR}, #{note,jdbcType=VARCHAR}) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.LibBookclass"> insert into LIB_BOOKCLASS <trim prefix="(" suffix=")" suffixOverrides=","> <if test="code != null"> CODE, </if> <if test="name != null"> NAME, </if> <if test="classlevel != null"> CLASSLEVEL, </if> <if test="note != null"> NOTE, </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="classlevel != null"> #{classlevel,jdbcType=CHAR}, </if> <if test="note != null"> #{note,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.LibBookclass"> update LIB_BOOKCLASS <set> <if test="name != null"> NAME = #{name,jdbcType=VARCHAR}, </if> <if test="classlevel != null"> CLASSLEVEL = #{classlevel,jdbcType=CHAR}, </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.LibBookclass"> update LIB_BOOKCLASS set NAME = #{name,jdbcType=VARCHAR}, CLASSLEVEL = #{classlevel,jdbcType=CHAR}, NOTE = #{note,jdbcType=VARCHAR} where CODE = #{code,jdbcType=VARCHAR} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.LibBookclass" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_BOOKCLASS 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