Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\ParCirCirruleMapper.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.ParCirCirruleMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.ParCirCirrule"> <id column="ID" jdbcType="DECIMAL" property="id" /> <result column="LIBCODE" jdbcType="VARCHAR" property="libcode" /> <result column="RDRTYPE" jdbcType="VARCHAR" property="rdrtype" /> <result column="DOCTYPE" jdbcType="VARCHAR" property="doctype" /> <result column="LOANRULE" jdbcType="VARCHAR" property="loanrule" /> <!-- <result column="LOANRULE" jdbcType="VARCHAR" property="location" /> <collection property="location" ofType="java.lang.String" javaType="list"> <result column="LOCCODE" /> </collection> --> </resultMap> <sql id="Base_Column_List"> ID, LIBCODE, RDRTYPE, DOCTYPE, LOANRULE<!-- ,PAR_SYS_RULELOCATION.CODE AS LOCCODE --> </sql> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from PAR_CIR_CIRRULE <!-- LEFT JOIN PAR_SYS_RULELOCATION ON (PAR_SYS_RULELOCATION.RULEID=PAR_CIR_CIRRULE.ID) --> where ID = #{id,jdbcType=DECIMAL} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> delete from PAR_CIR_CIRRULE where ID = #{id,jdbcType=DECIMAL} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.ParCirCirrule"> insert into PAR_CIR_CIRRULE (ID, LIBCODE, RDRTYPE, DOCTYPE, LOANRULE) values (#{id,jdbcType=DECIMAL}, #{libcode,jdbcType=VARCHAR}, #{rdrtype,jdbcType=VARCHAR}, #{doctype,jdbcType=VARCHAR}, #{loanrule,jdbcType=VARCHAR}) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.ParCirCirrule"> <selectKey keyProperty="id" resultType="java.lang.Long" order="BEFORE"> select PAR_CIR_CIRRULE_SEQ.nextval a FROM dual </selectKey> insert into PAR_CIR_CIRRULE <trim prefix="(" suffix=")" suffixOverrides=","> ID, <if test="libcode != null"> LIBCODE, </if> <if test="rdrtype != null"> RDRTYPE, </if> <if test="doctype != null"> DOCTYPE, </if> <if test="loanrule != null"> LOANRULE, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> #{id,jdbcType=DECIMAL}, <if test="libcode != null"> #{libcode,jdbcType=VARCHAR}, </if> <if test="rdrtype != null"> #{rdrtype,jdbcType=VARCHAR}, </if> <if test="doctype != null"> #{doctype,jdbcType=VARCHAR}, </if> <if test="loanrule != null"> #{loanrule,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.ParCirCirrule"> update PAR_CIR_CIRRULE <set> <if test="libcode != null"> LIBCODE = #{libcode,jdbcType=VARCHAR}, </if> <if test="rdrtype != null"> RDRTYPE = #{rdrtype,jdbcType=VARCHAR}, </if> <if test="doctype != null"> DOCTYPE = #{doctype,jdbcType=VARCHAR}, </if> <if test="loanrule != null"> LOANRULE = #{loanrule,jdbcType=VARCHAR}, </if> </set> where ID = #{id,jdbcType=DECIMAL} </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.ParCirCirrule"> update PAR_CIR_CIRRULE set LIBCODE = #{libcode,jdbcType=VARCHAR}, RDRTYPE = #{rdrtype,jdbcType=VARCHAR}, DOCTYPE = #{doctype,jdbcType=VARCHAR}, LOANRULE = #{loanrule,jdbcType=VARCHAR} where ID = #{id,jdbcType=DECIMAL} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.ParCirCirrule" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from PAR_CIR_CIRRULE <!-- LEFT JOIN PAR_SYS_RULELOCATION ON (PAR_SYS_RULELOCATION.RULEID=PAR_CIR_CIRRULE.ID) --> where 1=1 <if test="libcode != null"> and libcode = #{libcode,jdbcType=VARCHAR} </if> <if test="rdrtype != null"> and rdrtype = #{rdrtype,jdbcType=VARCHAR} </if> <if test="doctype != null"> and doctype = #{doctype,jdbcType=VARCHAR} </if> <if test="loanrule != null"> and loanrule = #{loanrule,jdbcType=VARCHAR} </if> </select> <select id="listWithCondition" parameterType="com.jishen.common.SrchLimitEntity" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from PAR_CIR_CIRRULE 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