Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\LibCirReaderinfoMapper.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.LibCirReaderinfoMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.LibCirReaderinfo"> <id column="CODE" jdbcType="VARCHAR" property="code" /> <result column="RDRID" jdbcType="DECIMAL" property="rdrid" /> <result column="INFOTYPE" jdbcType="CHAR" property="infotype" /> <result column="DATA1" jdbcType="DECIMAL" property="data1" /> <result column="DATA2" jdbcType="DECIMAL" property="data2" /> <result column="DATA3" jdbcType="VARCHAR" property="data3" /> <result column="NOTE" jdbcType="VARCHAR" property="note" /> </resultMap> <sql id="Base_Column_List"> CODE, RDRID, INFOTYPE, DATA1, DATA2, DATA3, NOTE </sql> <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CIR_READERINFO where CODE = #{code,jdbcType=VARCHAR} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> delete from LIB_CIR_READERINFO where CODE = #{code,jdbcType=VARCHAR} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.LibCirReaderinfo"> insert into LIB_CIR_READERINFO (CODE, RDRID, INFOTYPE, DATA1, DATA2, DATA3, NOTE) values (#{code,jdbcType=VARCHAR}, #{rdrid,jdbcType=DECIMAL}, #{infotype,jdbcType=CHAR}, #{data1,jdbcType=DECIMAL}, #{data2,jdbcType=DECIMAL}, #{data3,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.LibCirReaderinfo"> insert into LIB_CIR_READERINFO <trim prefix="(" suffix=")" suffixOverrides=","> <if test="code != null"> CODE, </if> <if test="rdrid != null"> RDRID, </if> <if test="infotype != null"> INFOTYPE, </if> <if test="data1 != null"> DATA1, </if> <if test="data2 != null"> DATA2, </if> <if test="data3 != null"> DATA3, </if> <if test="note != null"> NOTE, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="code != null"> #{code,jdbcType=VARCHAR}, </if> <if test="rdrid != null"> #{rdrid,jdbcType=DECIMAL}, </if> <if test="infotype != null"> #{infotype,jdbcType=CHAR}, </if> <if test="data1 != null"> #{data1,jdbcType=DECIMAL}, </if> <if test="data2 != null"> #{data2,jdbcType=DECIMAL}, </if> <if test="data3 != null"> #{data3,jdbcType=VARCHAR}, </if> <if test="note != null"> #{note,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.LibCirReaderinfo"> update LIB_CIR_READERINFO <set> <if test="rdrid != null"> RDRID = #{rdrid,jdbcType=DECIMAL}, </if> <if test="infotype != null"> INFOTYPE = #{infotype,jdbcType=CHAR}, </if> <if test="data1 != null"> DATA1 = #{data1,jdbcType=DECIMAL}, </if> <if test="data2 != null"> DATA2 = #{data2,jdbcType=DECIMAL}, </if> <if test="data3 != null"> DATA3 = #{data3,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.LibCirReaderinfo"> update LIB_CIR_READERINFO set RDRID = #{rdrid,jdbcType=DECIMAL}, INFOTYPE = #{infotype,jdbcType=CHAR}, DATA1 = #{data1,jdbcType=DECIMAL}, DATA2 = #{data2,jdbcType=DECIMAL}, DATA3 = #{data3,jdbcType=VARCHAR}, NOTE = #{note,jdbcType=VARCHAR} where CODE = #{code,jdbcType=VARCHAR} </update> <select id="listWithCondition" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CIR_READERINFO where 1=1 <include refid="common.condition"/> </select> <select id="listSelective" parameterType="com.jishen.libsystem.entity.LibCirReaderinfo" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CIR_READERINFO where 1=1 <if test="infotype != null"> and infotype =#{infotype,jdbcType=VARCHAR} </if> <if test="rdrid != null"> and rdrid = #{rdrid,jdbcType=DECIMAL} </if> </select> </mapper>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de