Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\OpacFAQMapper.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.OpacFAQMapper" > <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.OpacFAQ" > <id column="ID" property="id" jdbcType="DECIMAL" /> <result column="TYPE" property="type" jdbcType="CHAR" /> <result column="RDRID" property="rdrid" jdbcType="DECIMAL" /> <result column="FAQDATE" property="faqdate" jdbcType="DECIMAL" /> <result column="FAQTIME" property="faqtime" jdbcType="DECIMAL" /> <result column="STATUS" property="status" jdbcType="CHAR" /> <result column="TITLE" property="title" jdbcType="VARCHAR" /> <result column="QUESTION" property="question" jdbcType="VARCHAR" /> <result column="EMAIL" property="email" jdbcType="VARCHAR" /> <result column="PARENTID" property="parentid" jdbcType="DECIMAL" /> <result column="REPLY" property="reply" jdbcType="VARCHAR" /> <result column="REPLYDATE" property="replydate" jdbcType="DECIMAL" /> <result column="REPLYTIME" property="replytime" jdbcType="DECIMAL" /> <result column="OPERID" property="operid" jdbcType="DECIMAL" /> <result column="NOTE" property="note" jdbcType="VARCHAR" /> </resultMap> <sql id="Base_Column_List" > ID, TYPE, RDRID, FAQDATE, FAQTIME, STATUS, TITLE, QUESTION, EMAIL, PARENTID, REPLY, REPLYDATE, REPLYTIME, OPERID, NOTE </sql> <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" > select <include refid="Base_Column_List" /> from OPAC_FAQ where ID = #{id,jdbcType=DECIMAL} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" > delete from OPAC_FAQ where ID = #{id,jdbcType=DECIMAL} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.OpacFAQ" > insert into OPAC_FAQ (ID, TYPE, RDRID, FAQDATE, FAQTIME, STATUS, TITLE, QUESTION, EMAIL, PARENTID, REPLY, REPLYDATE, REPLYTIME, OPERID, NOTE ) values (#{id,jdbcType=DECIMAL}, #{type,jdbcType=CHAR}, #{rdrid,jdbcType=DECIMAL}, #{faqdate,jdbcType=DECIMAL}, #{faqtime,jdbcType=DECIMAL}, #{status,jdbcType=CHAR}, #{title,jdbcType=VARCHAR}, #{question,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{parentid,jdbcType=DECIMAL}, #{reply,jdbcType=VARCHAR}, #{replydate,jdbcType=DECIMAL}, #{replytime,jdbcType=DECIMAL}, #{operid,jdbcType=DECIMAL}, #{note,jdbcType=VARCHAR} ) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.OpacFAQ" > <selectKey keyProperty="id" resultType="java.lang.Long" order="BEFORE"> select OPAC_FAQ_SEQ.nextval a FROM dual </selectKey> insert into OPAC_FAQ <trim prefix="(" suffix=")" suffixOverrides="," > <if test="id != null" > ID, </if> <if test="type != null" > TYPE, </if> <if test="rdrid != null" > RDRID, </if> <if test="faqdate != null" > FAQDATE, </if> <if test="faqtime != null" > FAQTIME, </if> <if test="status != null" > STATUS, </if> <if test="title != null" > TITLE, </if> <if test="question != null" > QUESTION, </if> <if test="email != null" > EMAIL, </if> <if test="parentid != null" > PARENTID, </if> <if test="reply != null" > REPLY, </if> <if test="replydate != null" > REPLYDATE, </if> <if test="replytime != null" > REPLYTIME, </if> <if test="operid != null" > OPERID, </if> <if test="note != null" > NOTE, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides="," > <if test="id != null" > #{id,jdbcType=DECIMAL}, </if> <if test="type != null" > #{type,jdbcType=CHAR}, </if> <if test="rdrid != null" > #{rdrid,jdbcType=DECIMAL}, </if> <if test="faqdate != null" > #{faqdate,jdbcType=DECIMAL}, </if> <if test="faqtime != null" > #{faqtime,jdbcType=DECIMAL}, </if> <if test="status != null" > #{status,jdbcType=CHAR}, </if> <if test="title != null" > #{title,jdbcType=VARCHAR}, </if> <if test="question != null" > #{question,jdbcType=VARCHAR}, </if> <if test="email != null" > #{email,jdbcType=VARCHAR}, </if> <if test="parentid != null" > #{parentid,jdbcType=DECIMAL}, </if> <if test="reply != null" > #{reply,jdbcType=VARCHAR}, </if> <if test="replydate != null" > #{replydate,jdbcType=DECIMAL}, </if> <if test="replytime != null" > #{replytime,jdbcType=DECIMAL}, </if> <if test="operid != null" > #{operid,jdbcType=DECIMAL}, </if> <if test="note != null" > #{note,jdbcType=VARCHAR}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.OpacFAQ" > update OPAC_FAQ <set > <if test="type != null" > TYPE = #{type,jdbcType=CHAR}, </if> <if test="rdrid != null" > RDRID = #{rdrid,jdbcType=DECIMAL}, </if> <if test="faqdate != null" > FAQDATE = #{faqdate,jdbcType=DECIMAL}, </if> <if test="faqtime != null" > FAQTIME = #{faqtime,jdbcType=DECIMAL}, </if> <if test="status != null" > STATUS = #{status,jdbcType=CHAR}, </if> <if test="title != null" > TITLE = #{title,jdbcType=VARCHAR}, </if> <if test="question != null" > QUESTION = #{question,jdbcType=VARCHAR}, </if> <if test="email != null" > EMAIL = #{email,jdbcType=VARCHAR}, </if> <if test="parentid != null" > PARENTID = #{parentid,jdbcType=DECIMAL}, </if> <if test="reply != null" > REPLY = #{reply,jdbcType=VARCHAR}, </if> <if test="replydate != null" > REPLYDATE = #{replydate,jdbcType=DECIMAL}, </if> <if test="replytime != null" > REPLYTIME = #{replytime,jdbcType=DECIMAL}, </if> <if test="operid != null" > OPERID = #{operid,jdbcType=DECIMAL}, </if> <if test="note != null" > NOTE = #{note,jdbcType=VARCHAR}, </if> </set> where ID = #{id,jdbcType=DECIMAL} </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.OpacFAQ" > update OPAC_FAQ set TYPE = #{type,jdbcType=CHAR}, RDRID = #{rdrid,jdbcType=DECIMAL}, FAQDATE = #{faqdate,jdbcType=DECIMAL}, FAQTIME = #{faqtime,jdbcType=DECIMAL}, STATUS = #{status,jdbcType=CHAR}, TITLE = #{title,jdbcType=VARCHAR}, QUESTION = #{question,jdbcType=VARCHAR}, EMAIL = #{email,jdbcType=VARCHAR}, PARENTID = #{parentid,jdbcType=DECIMAL}, REPLY = #{reply,jdbcType=VARCHAR}, REPLYDATE = #{replydate,jdbcType=DECIMAL}, REPLYTIME = #{replytime,jdbcType=DECIMAL}, OPERID = #{operid,jdbcType=DECIMAL}, NOTE = #{note,jdbcType=VARCHAR} where ID = #{id,jdbcType=DECIMAL} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.OpacFAQ" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from OPAC_FAQ where 1=1 <if test="status != null"> and STATUS = #{status,jdbcType=CHAR} </if> <if test="rdrid != null"> and RDRID = #{rdrid,jdbcType=DECIMAL} </if> </select> <select id="listWithCondition" parameterType="com.jishen.common.SrchLimitEntity" resultType="com.jishen.common.OpacFAQWithRdrEntity"> select OPAC_FAQ.ID, OPAC_FAQ.TYPE, OPAC_FAQ.RDRID, OPAC_FAQ.FAQDATE, OPAC_FAQ.FAQTIME, OPAC_FAQ.STATUS, OPAC_FAQ.TITLE, OPAC_FAQ.QUESTION, OPAC_FAQ.EMAIL, OPAC_FAQ.PARENTID, OPAC_FAQ.REPLY, OPAC_FAQ.REPLYDATE, OPAC_FAQ.REPLYTIME, OPAC_FAQ.OPERID, OPAC_FAQ.NOTE, rdrno ,name FROM OPAC_FAQ left join LIB_CIR_READER on LIB_CIR_READER.id = OPAC_FAQ.RDRID 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