Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\ParCirGiftMapper.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.ParCirGiftMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.ParCirGift"> <id column="ID" jdbcType="DECIMAL" property="id" /> <result column="NAME" jdbcType="VARCHAR" property="name" /> <result column="IMAGEURL" jdbcType="VARCHAR" property="imageurl" /> <result column="NOTE" jdbcType="VARCHAR" property="note" /> <result column="SORTFLD" jdbcType="DECIMAL" property="sortfld" /> <result column="GIFTWAY" jdbcType="CHAR" property="giftway" /> <result column="POINTS" jdbcType="DECIMAL" property="points" /> <result column="RDRTYPE" jdbcType="VARCHAR" property="rdrtype" /> <result column="GIFTTYPE" jdbcType="VARCHAR" property="gifttype" /> <result column="ENDDATE" jdbcType="VARCHAR" property="enddate" /> <result column="ADDRESS" jdbcType="VARCHAR" property="address" /> <result column="PARAMJSON" jdbcType="VARCHAR" property="paramjson" /> <result column="GIFTCOUNT" jdbcType="DECIMAL" property="giftcount" /> <result column="MAXCOUNT" jdbcType="DECIMAL" property="maxcount" /> </resultMap> <sql id="Base_Column_List"> ID, NAME, IMAGEURL, NOTE, SORTFLD, GIFTWAY, POINTS, RDRTYPE, GIFTTYPE, ENDDATE, ADDRESS, PARAMJSON, GIFTCOUNT, MAXCOUNT </sql> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from PAR_CIR_GIFT where ID = #{id,jdbcType=DECIMAL} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> delete from PAR_CIR_GIFT where ID = #{id,jdbcType=DECIMAL} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.ParCirGift"> insert into PAR_CIR_GIFT (ID, NAME, IMAGEURL, NOTE, SORTFLD, GIFTWAY, POINTS, RDRTYPE, GIFTTYPE, ENDDATE, ADDRESS, PARAMJSON, GIFTCOUNT, MAXCOUNT) values (#{id,jdbcType=DECIMAL}, #{name,jdbcType=VARCHAR}, #{imageurl,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{sortfld,jdbcType=DECIMAL}, #{giftway,jdbcType=CHAR}, #{points,jdbcType=DECIMAL}, #{rdrtype,jdbcType=VARCHAR}, #{gifttype,jdbcType=VARCHAR}, #{enddate,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{paramjson,jdbcType=VARCHAR}, #{giftcount,jdbcType=DECIMAL}, #{maxcount,jdbcType=DECIMAL}) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.ParCirGift"> <selectKey keyProperty="id" resultType="java.lang.Long" order="BEFORE"> select PAR_CIR_GIFT_SEQ.nextval a FROM dual </selectKey> insert into PAR_CIR_GIFT <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> ID, </if> <if test="name != null"> NAME, </if> <if test="imageurl != null"> IMAGEURL, </if> <if test="note != null"> NOTE, </if> <if test="sortfld != null"> SORTFLD, </if> <if test="giftway != null"> GIFTWAY, </if> <if test="points != null"> POINTS, </if> <if test="rdrtype != null"> RDRTYPE, </if> <if test="gifttype != null"> GIFTTYPE, </if> <if test="enddate != null"> ENDDATE, </if> <if test="address != null"> ADDRESS, </if> <if test="paramjson != null"> PARAMJSON, </if> <if test="giftcount != null"> GIFTCOUNT, </if> <if test="maxcount != null"> MAXCOUNT, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null"> #{id,jdbcType=DECIMAL}, </if> <if test="name != null"> #{name,jdbcType=VARCHAR}, </if> <if test="imageurl != null"> #{imageurl,jdbcType=VARCHAR}, </if> <if test="note != null"> #{note,jdbcType=VARCHAR}, </if> <if test="sortfld != null"> #{sortfld,jdbcType=DECIMAL}, </if> <if test="giftway != null"> #{giftway,jdbcType=CHAR}, </if> <if test="points != null"> #{points,jdbcType=DECIMAL}, </if> <if test="rdrtype != null"> #{rdrtype,jdbcType=VARCHAR}, </if> <if test="gifttype != null"> #{gifttype,jdbcType=VARCHAR}, </if> <if test="enddate != null"> #{enddate,jdbcType=VARCHAR}, </if> <if test="address != null"> #{address,jdbcType=VARCHAR}, </if> <if test="paramjson != null"> #{paramjson,jdbcType=VARCHAR}, </if> <if test="giftcount != null"> #{giftcount,jdbcType=DECIMAL}, </if> <if test="maxcount != null"> #{maxcount,jdbcType=DECIMAL}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.ParCirGift"> update PAR_CIR_GIFT <set> <if test="name != null"> NAME = #{name,jdbcType=VARCHAR}, </if> <if test="imageurl != null"> IMAGEURL = #{imageurl,jdbcType=VARCHAR}, </if> <if test="note != null"> NOTE = #{note,jdbcType=VARCHAR}, </if> <if test="sortfld != null"> SORTFLD = #{sortfld,jdbcType=DECIMAL}, </if> <if test="giftway != null"> GIFTWAY = #{giftway,jdbcType=CHAR}, </if> <if test="points != null"> POINTS = #{points,jdbcType=DECIMAL}, </if> <if test="rdrtype != null"> RDRTYPE = #{rdrtype,jdbcType=VARCHAR}, </if> <if test="gifttype != null"> GIFTTYPE = #{gifttype,jdbcType=VARCHAR}, </if> <if test="enddate != null"> ENDDATE = #{enddate,jdbcType=VARCHAR}, </if> <if test="address != null"> ADDRESS = #{address,jdbcType=VARCHAR}, </if> <if test="paramjson != null"> PARAMJSON = #{paramjson,jdbcType=VARCHAR}, </if> <if test="giftcount != null"> GIFTCOUNT = #{giftcount,jdbcType=DECIMAL}, </if> <if test="maxcount != null"> MAXCOUNT = #{maxcount,jdbcType=DECIMAL}, </if> </set> where ID = #{id,jdbcType=DECIMAL} </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.ParCirGift"> update PAR_CIR_GIFT set NAME = #{name,jdbcType=VARCHAR}, IMAGEURL = #{imageurl,jdbcType=VARCHAR}, NOTE = #{note,jdbcType=VARCHAR}, SORTFLD = #{sortfld,jdbcType=DECIMAL}, GIFTWAY = #{giftway,jdbcType=CHAR}, POINTS = #{points,jdbcType=DECIMAL}, RDRTYPE = #{rdrtype,jdbcType=VARCHAR}, GIFTTYPE = #{gifttype,jdbcType=VARCHAR}, ENDDATE = #{enddate,jdbcType=VARCHAR}, ADDRESS = #{address,jdbcType=VARCHAR}, PARAMJSON = #{paramjson,jdbcType=VARCHAR}, GIFTCOUNT = #{giftcount,jdbcType=DECIMAL}, MAXCOUNT = #{maxcount,jdbcType=DECIMAL} where ID = #{id,jdbcType=DECIMAL} </update> <select id="listWithCondition" resultType="com.jishen.common.GiftWithGetEntity"> select ID, NAME, IMAGEURL, NOTE, SORTFLD, GIFTWAY, POINTS, RDRTYPE, GIFTTYPE, ENDDATE, ADDRESS, PARAMJSON, GIFTCOUNT, MAXCOUNT,(SELECT COUNT(ID) FROM PAR_CIR_GETGIFT WHERE PAR_CIR_GIFT.ID=PAR_CIR_GETGIFT.GIFTID AND PAR_CIR_GETGIFT.STATUS!='4') GETGIFTCOUNT from PAR_CIR_GIFT where 1=1 <include refid="common.condition"/> </select> <select id="listSelective" parameterType="com.jishen.libsystem.entity.ParCirGift" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from PAR_CIR_GIFT where 1=1 <if test="id != null"> and ID = #{id,jdbcType=DECIMAL} </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