Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\ParSysLocationMapper.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.ParSysLocationMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.ParSysLocation"> <id column="CODE" jdbcType="VARCHAR" property="code" /> <result column="LIBCODE" jdbcType="VARCHAR" property="libcode" /> <result column="NAME" jdbcType="VARCHAR" property="name" /> <result column="SORTFIELD" jdbcType="DECIMAL" property="sortfield" /> <result column="NOTE" jdbcType="VARCHAR" property="note" /> <result column="DEFDOCTYPE" jdbcType="VARCHAR" property="defdoctype" /> <result column="LOCTYPE" jdbcType="VARCHAR" property="loctype" /> <result column="PROVINCE" jdbcType="VARCHAR" property="province" /> <result column="CITY" jdbcType="VARCHAR" property="city" /> <result column="COUNTY" jdbcType="VARCHAR" property="county" /> </resultMap> <sql id="Base_Column_List"> CODE, LIBCODE, NAME, SORTFIELD, NOTE, DEFDOCTYPE, LOCTYPE, PROVINCE, CITY, COUNTY </sql> <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from PAR_SYS_LOCATION where CODE = #{code,jdbcType=VARCHAR} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> delete from PAR_SYS_LOCATION where CODE = #{code,jdbcType=VARCHAR} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.ParSysLocation"> insert into PAR_SYS_LOCATION (CODE, LIBCODE, NAME, SORTFIELD, NOTE, DEFDOCTYPE, LOCTYPE, PROVINCE, CITY, COUNTY) values (#{code,jdbcType=VARCHAR}, #{libcode,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{sortfield,jdbcType=DECIMAL}, #{note,jdbcType=VARCHAR}, #{defdoctype,jdbcType=VARCHAR}, #{loctype,jdbcType=VARCHAR}, #{province,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR}, #{county,jdbcType=VARCHAR}) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.ParSysLocation"> insert into PAR_SYS_LOCATION <trim prefix="(" suffix=")" suffixOverrides=","> <if test="code != null"> CODE, </if> <if test="libcode != null"> LIBCODE, </if> <if test="name != null"> NAME, </if> <if test="sortfield != null"> SORTFIELD, </if> <if test="note != null"> NOTE, </if> <if test="defdoctype != null"> DEFDOCTYPE, </if> <if test="loctype != null"> LOCTYPE, </if> <if test="province != null"> PROVINCE, </if> <if test="city != null"> CITY, </if> <if test="county != null"> COUNTY, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="code != null"> #{code,jdbcType=VARCHAR}, </if> <if test="libcode != null"> #{libcode,jdbcType=VARCHAR}, </if> <if test="name != null"> #{name,jdbcType=VARCHAR}, </if> <if test="sortfield != null"> #{sortfield,jdbcType=DECIMAL}, </if> <if test="note != null"> #{note,jdbcType=VARCHAR}, </if> <if test="defdoctype != null"> #{defdoctype,jdbcType=VARCHAR}, </if> <if test="loctype != null"> #{loctype,jdbcType=VARCHAR}, </if> <if test="province != null"> #{province,jdbcType=VARCHAR}, </if> <if test="city != null"> #{city,jdbcType=VARCHAR}, </if> <if test="county != null"> #{county,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.ParSysLocation"> update PAR_SYS_LOCATION <set> <if test="libcode != null"> LIBCODE = #{libcode,jdbcType=VARCHAR}, </if> <if test="name != null"> NAME = #{name,jdbcType=VARCHAR}, </if> <if test="sortfield != null"> SORTFIELD = #{sortfield,jdbcType=DECIMAL}, </if> <if test="note != null"> NOTE = #{note,jdbcType=VARCHAR}, </if> <if test="defdoctype != null"> DEFDOCTYPE = #{defdoctype,jdbcType=VARCHAR}, </if> <if test="loctype != null"> LOCTYPE = #{loctype,jdbcType=VARCHAR}, </if> <if test="province != null"> PROVINCE = #{province,jdbcType=VARCHAR}, </if> <if test="city != null"> CITY = #{city,jdbcType=VARCHAR}, </if> <if test="county != null"> COUNTY = #{county,jdbcType=VARCHAR}, </if> </set> where CODE = #{code,jdbcType=VARCHAR} </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.ParSysLocation"> update PAR_SYS_LOCATION set LIBCODE = #{libcode,jdbcType=VARCHAR}, NAME = #{name,jdbcType=VARCHAR}, SORTFIELD = #{sortfield,jdbcType=DECIMAL}, NOTE = #{note,jdbcType=VARCHAR}, DEFDOCTYPE = #{defdoctype,jdbcType=VARCHAR}, LOCTYPE = #{loctype,jdbcType=VARCHAR}, PROVINCE = #{province,jdbcType=VARCHAR}, CITY = #{city,jdbcType=VARCHAR}, COUNTY = #{county,jdbcType=VARCHAR} where CODE = #{code,jdbcType=VARCHAR} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.ParSysLocation" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from PAR_SYS_LOCATION where 1=1 <if test="code != null"> and code = #{code,jdbcType=VARCHAR} </if> <if test="libcode != null"> and libcode = #{libcode,jdbcType=VARCHAR} </if> <if test="name != null"> and name = #{name,jdbcType=VARCHAR} </if> </select> <select id="listWithCondition" parameterType="com.jishen.common.SrchLimitEntity" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from PAR_SYS_LOCATION 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