Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\LibCatAuthorMapper.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.LibCatAuthorMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.LibCatAuthor"> <id column="ID" jdbcType="DECIMAL" property="id" /> <result column="FULLNAME" jdbcType="VARCHAR" property="fullname" /> <result column="SURNAME" jdbcType="VARCHAR" property="surname" /> <result column="PERSONNAME" jdbcType="VARCHAR" property="personname" /> <result column="COUNTRY" jdbcType="VARCHAR" property="country" /> <result column="DYNASTY" jdbcType="VARCHAR" property="dynasty" /> <result column="YEARS" jdbcType="VARCHAR" property="years" /> <result column="PINYIN" jdbcType="VARCHAR" property="pinyin" /> <result column="CONTENT" jdbcType="VARCHAR" property="content" /> <result column="OTHERNAME" jdbcType="VARCHAR" property="othername" /> <result column="REFCOUNT1" jdbcType="DECIMAL" property="refcount1" /> <result column="REFCOUNT2" jdbcType="DECIMAL" property="refcount2" /> </resultMap> <sql id="Base_Column_List"> ID, FULLNAME, SURNAME, PERSONNAME, COUNTRY, DYNASTY, YEARS, PINYIN, CONTENT, OTHERNAME, REFCOUNT1, REFCOUNT2 </sql> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CAT_AUTHOR where ID = #{id,jdbcType=DECIMAL} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> delete from LIB_CAT_AUTHOR where ID = #{id,jdbcType=DECIMAL} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.LibCatAuthor"> insert into LIB_CAT_AUTHOR (ID, FULLNAME, SURNAME, PERSONNAME, COUNTRY, DYNASTY, YEARS, PINYIN, CONTENT, OTHERNAME, REFCOUNT1, REFCOUNT2 ) values (#{id,jdbcType=DECIMAL}, #{fullname,jdbcType=VARCHAR}, #{surname,jdbcType=VARCHAR}, #{personname,jdbcType=VARCHAR}, #{country,jdbcType=VARCHAR}, #{dynasty,jdbcType=VARCHAR}, #{years,jdbcType=VARCHAR}, #{pinyin,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR}, #{othername,jdbcType=VARCHAR}, #{refcount1,jdbcType=DECIMAL}, #{refcount2,jdbcType=DECIMAL} ) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.LibCatAuthor"> <selectKey keyProperty="id" resultType="java.lang.Long" order="BEFORE"> select LIB_CAT_AUTHOR_SEQ.nextval a FROM dual </selectKey> insert into LIB_CAT_AUTHOR <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> ID, </if> <if test="fullname != null"> FULLNAME, </if> <if test="surname != null"> SURNAME, </if> <if test="personname != null"> PERSONNAME, </if> <if test="country != null"> COUNTRY, </if> <if test="dynasty != null"> DYNASTY, </if> <if test="years != null"> YEARS, </if> <if test="pinyin != null"> PINYIN, </if> <if test="content != null"> CONTENT, </if> <if test="othername != null"> OTHERNAME, </if> <if test="refcount1 != null"> REFCOUNT1, </if> <if test="refcount2 != null"> REFCOUNT2, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null"> #{id,jdbcType=DECIMAL}, </if> <if test="fullname != null"> #{fullname,jdbcType=VARCHAR}, </if> <if test="surname != null"> #{surname,jdbcType=VARCHAR}, </if> <if test="personname != null"> #{personname,jdbcType=VARCHAR}, </if> <if test="country != null"> #{country,jdbcType=VARCHAR}, </if> <if test="dynasty != null"> #{dynasty,jdbcType=VARCHAR}, </if> <if test="years != null"> #{years,jdbcType=VARCHAR}, </if> <if test="pinyin != null"> #{pinyin,jdbcType=VARCHAR}, </if> <if test="content != null"> #{content,jdbcType=VARCHAR}, </if> <if test="othername != null"> #{othername,jdbcType=VARCHAR}, </if> <if test="refcount1 != null"> #{refcount1,jdbcType=DECIMAL}, </if> <if test="refcount2 != null"> #{refcount2,jdbcType=DECIMAL}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.LibCatAuthor"> update LIB_CAT_AUTHOR <set> <if test="fullname != null"> FULLNAME = #{fullname,jdbcType=VARCHAR}, </if> <if test="surname != null"> SURNAME = #{surname,jdbcType=VARCHAR}, </if> <if test="personname != null"> PERSONNAME = #{personname,jdbcType=VARCHAR}, </if> <if test="country != null"> COUNTRY = #{country,jdbcType=VARCHAR}, </if> <if test="dynasty != null"> DYNASTY = #{dynasty,jdbcType=VARCHAR}, </if> <if test="years != null"> YEARS = #{years,jdbcType=VARCHAR}, </if> <if test="pinyin != null"> PINYIN = #{pinyin,jdbcType=VARCHAR}, </if> <if test="content != null"> CONTENT = #{content,jdbcType=VARCHAR}, </if> <if test="othername != null"> OTHERNAME = #{othername,jdbcType=VARCHAR}, </if> <if test="refcount1 != null"> REFCOUNT1 = #{refcount1,jdbcType=DECIMAL}, </if> <if test="refcount2 != null"> REFCOUNT2 = #{refcount2,jdbcType=DECIMAL}, </if> </set> where ID = #{id,jdbcType=DECIMAL} </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.LibCatAuthor"> update LIB_CAT_AUTHOR set FULLNAME = #{fullname,jdbcType=VARCHAR}, SURNAME = #{surname,jdbcType=VARCHAR}, PERSONNAME = #{personname,jdbcType=VARCHAR}, COUNTRY = #{country,jdbcType=VARCHAR}, DYNASTY = #{dynasty,jdbcType=VARCHAR}, YEARS = #{years,jdbcType=VARCHAR}, PINYIN = #{pinyin,jdbcType=VARCHAR}, CONTENT = #{content,jdbcType=VARCHAR}, OTHERNAME = #{othername,jdbcType=VARCHAR}, REFCOUNT1 = #{refcount1,jdbcType=DECIMAL}, REFCOUNT2 = #{refcount2,jdbcType=DECIMAL} where ID = #{id,jdbcType=DECIMAL} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.LibBookclass" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CAT_AUTHOR where 1=1 <if test="fullname != null"> and FULLNAME = #{fullname,jdbcType=VARCHAR} </if> <if test="othername != null"> and othername = #{othername,jdbcType=VARCHAR} </if> </select> </mapper>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de