Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\LibCirBonuslogMapper.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.LibCirBonuslogMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.LibCirBonuslog"> <id column="ID" jdbcType="DECIMAL" property="id" /> <result column="RDRID" jdbcType="DECIMAL" property="rdrid" /> <result column="BONTYPE" jdbcType="CHAR" property="bontype" /> <result column="POINTS" jdbcType="DECIMAL" property="points" /> <result column="BONDATE" jdbcType="DECIMAL" property="bondate" /> <result column="BONSTAMP" jdbcType="DECIMAL" property="bonstamp" /> <result column="OPERID" jdbcType="DECIMAL" property="operid" /> <result column="NOTE" jdbcType="VARCHAR" property="note" /> <result column="LIBCODE" jdbcType="VARCHAR" property="libcode" /> <result column="BONWAY" jdbcType="CHAR" property="bonway" /> <result column="RESEFLD1" jdbcType="VARCHAR" property="resefld1" /> <result column="RESEFLD2" jdbcType="VARCHAR" property="resefld2" /> </resultMap> <sql id="Base_Column_List"> ID, RDRID, BONTYPE, POINTS, BONDATE, BONSTAMP, OPERID, NOTE, LIBCODE, BONWAY, RESEFLD1, RESEFLD2 </sql> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CIR_BONUSLOG where ID = #{id,jdbcType=DECIMAL} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> delete from LIB_CIR_BONUSLOG where ID = #{id,jdbcType=DECIMAL} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.LibCirBonuslog"> insert into LIB_CIR_BONUSLOG (ID, RDRID, BONTYPE, POINTS, BONDATE, BONSTAMP, OPERID, NOTE, LIBCODE, BONWAY, RESEFLD1, RESEFLD2 ) values (#{id,jdbcType=DECIMAL}, #{rdrid,jdbcType=DECIMAL}, #{bontype,jdbcType=CHAR}, #{points,jdbcType=DECIMAL}, #{bondate,jdbcType=DECIMAL}, #{bonstamp,jdbcType=DECIMAL}, #{operid,jdbcType=DECIMAL}, #{note,jdbcType=VARCHAR}, #{libcode,jdbcType=VARCHAR}, #{bonway,jdbcType=CHAR}, #{resefld1,jdbcType=VARCHAR}, #{resefld2,jdbcType=VARCHAR} ) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.LibCirBonuslog"> <selectKey keyProperty="id" resultType="java.lang.Long" order="BEFORE"> select LIB_CIR_BONUSLOG_SEQ.nextval a FROM dual </selectKey> insert into LIB_CIR_BONUSLOG <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> ID, </if> <if test="rdrid != null"> RDRID, </if> <if test="bontype != null"> BONTYPE, </if> <if test="points != null"> POINTS, </if> <if test="bondate != null"> BONDATE, </if> <if test="bonstamp != null"> BONSTAMP, </if> <if test="operid != null"> OPERID, </if> <if test="note != null"> NOTE, </if> <if test="libcode != null"> LIBCODE, </if> <if test="bonway != null"> BONWAY, </if> <if test="resefld1 != null"> RESEFLD1, </if> <if test="resefld2 != null"> RESEFLD2, </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="bontype != null"> #{bontype,jdbcType=CHAR}, </if> <if test="points != null"> #{points,jdbcType=DECIMAL}, </if> <if test="bondate != null"> #{bondate,jdbcType=DECIMAL}, </if> <if test="bonstamp != null"> #{bonstamp,jdbcType=DECIMAL}, </if> <if test="operid != null"> #{operid,jdbcType=DECIMAL}, </if> <if test="note != null"> #{note,jdbcType=VARCHAR}, </if> <if test="libcode != null"> #{libcode,jdbcType=VARCHAR}, </if> <if test="bonway != null"> #{bonway,jdbcType=CHAR}, </if> <if test="resefld1 != null"> #{resefld1,jdbcType=VARCHAR}, </if> <if test="resefld2 != null"> #{resefld2,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.LibCirBonuslog"> update LIB_CIR_BONUSLOG <set> <if test="rdrid != null"> RDRID = #{rdrid,jdbcType=DECIMAL}, </if> <if test="bontype != null"> BONTYPE = #{bontype,jdbcType=CHAR}, </if> <if test="points != null"> POINTS = #{points,jdbcType=DECIMAL}, </if> <if test="bondate != null"> BONDATE = #{bondate,jdbcType=DECIMAL}, </if> <if test="bonstamp != null"> BONSTAMP = #{bonstamp,jdbcType=DECIMAL}, </if> <if test="operid != null"> OPERID = #{operid,jdbcType=DECIMAL}, </if> <if test="note != null"> NOTE = #{note,jdbcType=VARCHAR}, </if> <if test="libcode != null"> LIBCODE = #{libcode,jdbcType=VARCHAR}, </if> <if test="bonway != null"> BONWAY = #{bonway,jdbcType=CHAR}, </if> <if test="resefld1 != null"> RESEFLD1 = #{resefld1,jdbcType=VARCHAR}, </if> <if test="resefld2 != null"> RESEFLD2 = #{resefld2,jdbcType=VARCHAR}, </if> </set> where ID = #{id,jdbcType=DECIMAL} </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.LibCirBonuslog"> update LIB_CIR_BONUSLOG set RDRID = #{rdrid,jdbcType=DECIMAL}, BONTYPE = #{bontype,jdbcType=CHAR}, POINTS = #{points,jdbcType=DECIMAL}, BONDATE = #{bondate,jdbcType=DECIMAL}, BONSTAMP = #{bonstamp,jdbcType=DECIMAL}, OPERID = #{operid,jdbcType=DECIMAL}, NOTE = #{note,jdbcType=VARCHAR}, LIBCODE = #{libcode,jdbcType=VARCHAR}, BONWAY = #{bonway,jdbcType=CHAR}, RESEFLD1 = #{resefld1,jdbcType=VARCHAR}, RESEFLD2 = #{resefld2,jdbcType=VARCHAR} where ID = #{id,jdbcType=DECIMAL} </update> <select id="listWithCondition" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CIR_BONUSLOG where 1=1 <include refid="common.condition"/> </select> <select id="listSelective" parameterType="com.jishen.libsystem.entity.LibCirBonuslog" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_CIR_BONUSLOG where 1=1 <if test="bontype != null"> and bontype =#{bontype,jdbcType=VARCHAR} </if> <if test="rdrid != null"> and rdrid = #{rdrid,jdbcType=DECIMAL} </if> <if test="bondate != null"> and bondate = #{bondate,jdbcType=DECIMAL} </if> </select> </mapper>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de