Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\ParCirGetgiftMapper.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.ParCirGetgiftMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.ParCirGetgift"> <id column="ID" jdbcType="DECIMAL" property="id" /> <result column="RDRID" jdbcType="DECIMAL" property="rdrid" /> <result column="GIFTID" jdbcType="DECIMAL" property="giftid" /> <result column="STATUS" jdbcType="CHAR" property="status" /> <result column="NOTE" jdbcType="VARCHAR" property="note" /> <result column="SERNO" jdbcType="VARCHAR" property="serno" /> <result column="CREATEDATE" jdbcType="VARCHAR" property="createdate" /> <result column="CREATESTAMP" jdbcType="VARCHAR" property="createstamp" /> <result column="GETDATE" jdbcType="VARCHAR" property="getdate" /> <result column="GETSTAMP" jdbcType="VARCHAR" property="getstamp" /> </resultMap> <sql id="Base_Column_List"> ID, RDRID, GIFTID, STATUS, NOTE, SERNO, CREATEDATE, CREATESTAMP, GETDATE, GETSTAMP </sql> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from PAR_CIR_GETGIFT where ID = #{id,jdbcType=DECIMAL} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> delete from PAR_CIR_GETGIFT where ID = #{id,jdbcType=DECIMAL} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.ParCirGetgift"> insert into PAR_CIR_GETGIFT (ID, RDRID, GIFTID, STATUS, NOTE, SERNO, CREATEDATE, CREATESTAMP, GETDATE, GETSTAMP ) values (#{id,jdbcType=DECIMAL}, #{rdrid,jdbcType=DECIMAL}, #{giftid,jdbcType=DECIMAL}, #{status,jdbcType=CHAR}, #{note,jdbcType=VARCHAR}, #{serno,jdbcType=VARCHAR}, #{createdate,jdbcType=VARCHAR}, #{createstamp,jdbcType=VARCHAR}, #{getdate,jdbcType=VARCHAR}, #{getstamp,jdbcType=VARCHAR} ) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.ParCirGetgift"> <selectKey keyProperty="id" resultType="java.lang.Long" order="BEFORE"> select PAR_CIR_GETGIFT_SEQ.nextval a FROM dual </selectKey> insert into PAR_CIR_GETGIFT <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> ID, </if> <if test="rdrid != null"> RDRID, </if> <if test="giftid != null"> GIFTID, </if> <if test="status != null"> STATUS, </if> <if test="note != null"> NOTE, </if> <if test="serno != null"> SERNO, </if> <if test="createdate != null"> CREATEDATE, </if> <if test="createstamp != null"> CREATESTAMP, </if> <if test="getdate != null"> GETDATE, </if> <if test="getstamp != null"> GETSTAMP, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null"> #{id,jdbcType=DECIMAL}, </if> <if test="rdrid != null"> #{rdrid,jdbcType=DECIMAL}, </if> <if test="giftid != null"> #{giftid,jdbcType=DECIMAL}, </if> <if test="status != null"> #{status,jdbcType=CHAR}, </if> <if test="note != null"> #{note,jdbcType=VARCHAR}, </if> <if test="serno != null"> #{serno,jdbcType=VARCHAR}, </if> <if test="createdate != null"> #{createdate,jdbcType=VARCHAR}, </if> <if test="createstamp != null"> #{createstamp,jdbcType=VARCHAR}, </if> <if test="getdate != null"> #{getdate,jdbcType=VARCHAR}, </if> <if test="getstamp != null"> #{getstamp,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.ParCirGetgift"> update PAR_CIR_GETGIFT <set> <if test="rdrid != null"> RDRID = #{rdrid,jdbcType=DECIMAL}, </if> <if test="giftid != null"> GIFTID = #{giftid,jdbcType=DECIMAL}, </if> <if test="status != null"> STATUS = #{status,jdbcType=CHAR}, </if> <if test="note != null"> NOTE = #{note,jdbcType=VARCHAR}, </if> <if test="serno != null"> SERNO = #{serno,jdbcType=VARCHAR}, </if> <if test="createdate != null"> CREATEDATE = #{createdate,jdbcType=VARCHAR}, </if> <if test="createstamp != null"> CREATESTAMP = #{createstamp,jdbcType=VARCHAR}, </if> <if test="getdate != null"> GETDATE = #{getdate,jdbcType=VARCHAR}, </if> <if test="getstamp != null"> GETSTAMP = #{getstamp,jdbcType=VARCHAR}, </if> </set> where ID = #{id,jdbcType=DECIMAL} </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.ParCirGetgift"> update PAR_CIR_GETGIFT set RDRID = #{rdrid,jdbcType=DECIMAL}, GIFTID = #{giftid,jdbcType=DECIMAL}, STATUS = #{status,jdbcType=CHAR}, NOTE = #{note,jdbcType=VARCHAR}, SERNO = #{serno,jdbcType=VARCHAR}, CREATEDATE = #{createdate,jdbcType=VARCHAR}, CREATESTAMP = #{createstamp,jdbcType=VARCHAR}, GETDATE = #{getdate,jdbcType=VARCHAR}, GETSTAMP = #{getstamp,jdbcType=VARCHAR} where ID = #{id,jdbcType=DECIMAL} </update> <select id="listUnionCondition" resultType="java.util.Map"> select par_cir_getgift.id as "id", rdrid as "rdrid", giftid as "giftid", par_cir_getgift.status as "status", serno as "serno", rdrno as "rdrno",lib_cir_reader.name as "rdrname", par_cir_gift.name as "name", par_cir_gift.imageurl as "imageurl", par_cir_getgift.note as "note", par_cir_gift.sortfld as "sortfld", par_cir_gift.giftway as "giftway", par_cir_gift.points as "points", par_cir_gift.rdrtype as "rdrtype", par_cir_gift.gifttype as "gifttype", par_cir_gift.enddate as "enddate", par_cir_gift.address as "address", giftcount as "giftcount", maxcount as "maxcount", par_cir_getgift.createstamp as "createstamp",par_cir_getgift.getstamp as "getstamp" from PAR_CIR_GETGIFT,PAR_CIR_GIFT,LIB_CIR_READER where PAR_CIR_GIFT.ID=PAR_CIR_GETGIFT.GIFTID AND LIB_CIR_READER.ID=PAR_CIR_GETGIFT.RDRID <include refid="common.condition"/> </select> <select id="listWithCondition" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from PAR_CIR_GETGIFT where 1=1 <include refid="common.condition"/> </select> <select id="listSelective" parameterType="com.jishen.libsystem.entity.ParCirGetgift" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from PAR_CIR_GETGIFT where 1=1 <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