Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\LibCatSubjectMapper.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.LibCatSubjectMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.LibCatSubject"> <id column="ID" jdbcType="DECIMAL" property="id" /> <result column="CLASSNO" jdbcType="VARCHAR" property="classno" /> <result column="SUBJECT" jdbcType="VARCHAR" property="subject" /> <result column="NOTE" jdbcType="VARCHAR" property="note" /> <result column="THEME" jdbcType="VARCHAR" property="theme" /> <result column="AREA" jdbcType="VARCHAR" property="area" /> <result column="AGE" jdbcType="VARCHAR" property="age" /> </resultMap> <sql id="Base_Column_List"> ID, CLASSNO, SUBJECT, NOTE, THEME, AREA, AGE </sql> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CAT_SUBJECT where ID = #{id,jdbcType=DECIMAL} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> delete from LIB_CAT_SUBJECT where ID = #{id,jdbcType=DECIMAL} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.LibCatSubject"> insert into LIB_CAT_SUBJECT (ID, CLASSNO, SUBJECT, NOTE, THEME, AREA, AGE) values (#{id,jdbcType=DECIMAL}, #{classno,jdbcType=VARCHAR}, #{subject,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{theme,jdbcType=VARCHAR}, #{area,jdbcType=VARCHAR}, #{age,jdbcType=VARCHAR}) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.LibCatSubject"> <selectKey keyProperty="id" resultType="java.lang.Long" order="BEFORE"> select LIB_CAT_SUBJECT_SEQ.nextval a FROM dual </selectKey> insert into LIB_CAT_SUBJECT <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> ID, </if> <if test="classno != null"> CLASSNO, </if> <if test="subject != null"> SUBJECT, </if> <if test="note != null"> NOTE, </if> <if test="theme != null"> THEME, </if> <if test="area != null"> AREA, </if> <if test="age != null"> AGE, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null"> #{id,jdbcType=DECIMAL}, </if> <if test="classno != null"> #{classno,jdbcType=VARCHAR}, </if> <if test="subject != null"> #{subject,jdbcType=VARCHAR}, </if> <if test="note != null"> #{note,jdbcType=VARCHAR}, </if> <if test="theme != null"> #{theme,jdbcType=VARCHAR}, </if> <if test="area != null"> #{area,jdbcType=VARCHAR}, </if> <if test="age != null"> #{age,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.LibCatSubject"> update LIB_CAT_SUBJECT <set> <if test="classno != null"> CLASSNO = #{classno,jdbcType=VARCHAR}, </if> <if test="subject != null"> SUBJECT = #{subject,jdbcType=VARCHAR}, </if> <if test="note != null"> NOTE = #{note,jdbcType=VARCHAR}, </if> <if test="theme != null"> THEME = #{theme,jdbcType=VARCHAR}, </if> <if test="area != null"> AREA = #{area,jdbcType=VARCHAR}, </if> <if test="age != null"> AGE = #{age,jdbcType=VARCHAR}, </if> </set> where ID = #{id,jdbcType=DECIMAL} </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.LibCatSubject"> update LIB_CAT_SUBJECT set CLASSNO = #{classno,jdbcType=VARCHAR}, SUBJECT = #{subject,jdbcType=VARCHAR}, NOTE = #{note,jdbcType=VARCHAR}, THEME = #{theme,jdbcType=VARCHAR}, AREA = #{area,jdbcType=VARCHAR}, AGE = #{age,jdbcType=VARCHAR} where ID = #{id,jdbcType=DECIMAL} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.LibCatSubject" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CAT_SUBJECT where 1=1 <if test="classno != null"> and classno like CONCAT(#{classno,jdbcType=VARCHAR},'%') </if> <if test="subject != null"> and subject like CONCAT(#{subject,jdbcType=VARCHAR},'%') </if> </select> </mapper>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de