Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\BdDeviceMapper.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.BdDeviceMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.BdDevice"> <id column="ID" jdbcType="DECIMAL" property="id" /> <result column="ALIAS" jdbcType="VARCHAR" property="alias" /> <result column="LIBCODE" jdbcType="VARCHAR" property="libcode" /> <result column="LOCATIONID" jdbcType="DECIMAL" property="locationid" /> <result column="CATEGORYID" jdbcType="DECIMAL" property="categoryid" /> <result column="HVERSION" jdbcType="VARCHAR" property="hversion" /> <result column="SVERSION" jdbcType="VARCHAR" property="sversion" /> <result column="IPADDRESS" jdbcType="VARCHAR" property="ipaddress" /> <result column="STATUS" jdbcType="VARCHAR" property="status" /> </resultMap> <sql id="Base_Column_List"> ID, ALIAS, LIBCODE, LOCATIONID, CATEGORYID, HVERSION, SVERSION, IPADDRESS, STATUS </sql> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from BD_DEVICE where ID = #{id,jdbcType=DECIMAL} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> delete from BD_DEVICE where ID = #{id,jdbcType=DECIMAL} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.BdDevice"> insert into BD_DEVICE (ID, ALIAS, LIBCODE, LOCATIONID, CATEGORYID, HVERSION, SVERSION, IPADDRESS, STATUS ) values (#{id,jdbcType=DECIMAL}, #{alias,jdbcType=VARCHAR}, #{libcode,jdbcType=VARCHAR}, #{locationid,jdbcType=DECIMAL}, #{categoryid,jdbcType=DECIMAL}, #{hversion,jdbcType=VARCHAR}, #{sversion,jdbcType=VARCHAR}, #{ipaddress,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR} ) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.BdDevice"> <selectKey keyProperty="id" resultType="java.lang.Long" order="BEFORE"> select BD_DEVICE_SEQ.nextval a FROM dual </selectKey> insert into BD_DEVICE <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> ID, </if> <if test="alias != null"> ALIAS, </if> <if test="libcode != null"> LIBCODE, </if> <if test="locationid != null"> LOCATIONID, </if> <if test="categoryid != null"> CATEGORYID, </if> <if test="hversion != null"> HVERSION, </if> <if test="sversion != null"> SVERSION, </if> <if test="ipaddress != null"> IPADDRESS, </if> <if test="status != null"> STATUS, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null"> #{id,jdbcType=DECIMAL}, </if> <if test="alias != null"> #{alias,jdbcType=VARCHAR}, </if> <if test="libcode != null"> #{libcode,jdbcType=VARCHAR}, </if> <if test="locationid != null"> #{locationid,jdbcType=DECIMAL}, </if> <if test="categoryid != null"> #{categoryid,jdbcType=DECIMAL}, </if> <if test="hversion != null"> #{hversion,jdbcType=VARCHAR}, </if> <if test="sversion != null"> #{sversion,jdbcType=VARCHAR}, </if> <if test="ipaddress != null"> #{ipaddress,jdbcType=VARCHAR}, </if> <if test="status != null"> #{status,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.BdDevice"> update BD_DEVICE <set> <if test="alias != null"> ALIAS = #{alias,jdbcType=VARCHAR}, </if> <if test="libcode != null"> LIBCODE = #{libcode,jdbcType=VARCHAR}, </if> <if test="locationid != null"> LOCATIONID = #{locationid,jdbcType=DECIMAL}, </if> <if test="categoryid != null"> CATEGORYID = #{categoryid,jdbcType=DECIMAL}, </if> <if test="hversion != null"> HVERSION = #{hversion,jdbcType=VARCHAR}, </if> <if test="sversion != null"> SVERSION = #{sversion,jdbcType=VARCHAR}, </if> <if test="ipaddress != null"> IPADDRESS = #{ipaddress,jdbcType=VARCHAR}, </if> <if test="status != null"> STATUS = #{status,jdbcType=VARCHAR}, </if> </set> where ID = #{id,jdbcType=DECIMAL} </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.BdDevice"> update BD_DEVICE set ALIAS = #{alias,jdbcType=VARCHAR}, LIBCODE = #{libcode,jdbcType=VARCHAR}, LOCATIONID = #{locationid,jdbcType=DECIMAL}, CATEGORYID = #{categoryid,jdbcType=DECIMAL}, HVERSION = #{hversion,jdbcType=VARCHAR}, SVERSION = #{sversion,jdbcType=VARCHAR}, IPADDRESS = #{ipaddress,jdbcType=VARCHAR}, STATUS = #{status,jdbcType=VARCHAR} where ID = #{id,jdbcType=DECIMAL} </update> <select id="listWithCondition" parameterType="com.jishen.common.SrchLimitEntity" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from BD_DEVICE where 1=1 <include refid="common.condition"></include> </select> </mapper>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de