Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\ParCatTemplateMapper.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.ParCatTemplateMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.ParCatTemplate"> <id column="ID" jdbcType="DECIMAL" property="id" /> <result column="SYSID" jdbcType="DECIMAL" property="sysid" /> <result column="NAME" jdbcType="VARCHAR" property="name" /> <result column="PARAMJSON" jdbcType="VARCHAR" property="paramjson" /> <result column="NOTE" jdbcType="VARCHAR" property="note" /> <result column="EDITMODEL" jdbcType="VARCHAR" property="editmodel" /> </resultMap> <sql id="Base_Column_List"> ID, SYSID, NAME, PARAMJSON, NOTE, EDITMODEL </sql> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from PAR_CAT_TEMPLATE where ID = #{id,jdbcType=DECIMAL} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> delete from PAR_CAT_TEMPLATE where ID = #{id,jdbcType=DECIMAL} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.ParCatTemplate"> insert into PAR_CAT_TEMPLATE (ID, SYSID, NAME, PARAMJSON, NOTE, EDITMODEL ) values (#{id,jdbcType=DECIMAL}, #{sysid,jdbcType=DECIMAL}, #{name,jdbcType=VARCHAR}, #{paramjson,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{editmodel,jdbcType=VARCHAR} ) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.ParCatTemplate"> <selectKey keyProperty="id" resultType="java.lang.Long" order="BEFORE"> select PAR_CAT_TEMPLATE_SEQ.nextval a FROM dual </selectKey> insert into PAR_CAT_TEMPLATE <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> ID, </if> <if test="sysid != null"> SYSID, </if> <if test="name != null"> NAME, </if> <if test="paramjson != null"> PARAMJSON, </if> <if test="note != null"> NOTE, </if> <if test="editmodel != null"> EDITMODEL, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null"> #{id,jdbcType=DECIMAL}, </if> <if test="sysid != null"> #{sysid,jdbcType=DECIMAL}, </if> <if test="name != null"> #{name,jdbcType=VARCHAR}, </if> <if test="paramjson != null"> #{paramjson,jdbcType=VARCHAR}, </if> <if test="note != null"> #{note,jdbcType=VARCHAR}, </if> <if test="editmodel != null"> #{editmodel,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.ParCatTemplate"> update PAR_CAT_TEMPLATE <set> <if test="sysid != null"> SYSID = #{sysid,jdbcType=DECIMAL}, </if> <if test="name != null"> NAME = #{name,jdbcType=VARCHAR}, </if> <if test="paramjson != null"> PARAMJSON = #{paramjson,jdbcType=VARCHAR}, </if> <if test="note != null"> NOTE = #{note,jdbcType=VARCHAR}, </if> <if test="editmodel != null"> EDITMODEL = #{editmodel,jdbcType=VARCHAR}, </if> </set> where ID = #{id,jdbcType=DECIMAL} </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.ParCatTemplate"> update PAR_CAT_TEMPLATE set SYSID = #{sysid,jdbcType=DECIMAL}, NAME = #{name,jdbcType=VARCHAR}, PARAMJSON = #{paramjson,jdbcType=VARCHAR}, NOTE = #{note,jdbcType=VARCHAR}, EDITMODEL = #{editmodel,jdbcType=VARCHAR} where ID = #{id,jdbcType=DECIMAL} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.ParCatTemplate" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from PAR_CAT_TEMPLATE where 1=1 <if test="sysid != null"> and SYSID = #{sysid,jdbcType=VARCHAR} </if> <if test="name != null"> and name = #{name,jdbcType=VARCHAR} </if> </select> </mapper>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de