Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\BookReviewEntityMapper.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.BookReviewEntityMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.BookReviewEntity"> <id column="ID" jdbcType="DECIMAL" property="id" /> <result column="BIBID" jdbcType="DECIMAL" property="bibid" /> <result column="RDRID" jdbcType="DECIMAL" property="rdrid" /> <result column="REVIEWDATE" jdbcType="DECIMAL" property="reviewdate" /> <result column="REVIEWTIME" jdbcType="DECIMAL" property="reviewtime" /> <result column="TITLE" jdbcType="VARCHAR" property="title" /> <result column="CONTENT" jdbcType="VARCHAR" property="content" /> <result column="SCORE" jdbcType="CHAR" property="score" /> <result column="STATUS" jdbcType="CHAR" property="status" /> <result column="PARENTID" jdbcType="DECIMAL" property="parentid" /> </resultMap> <sql id="Base_Column_List"> ID, BIBID, RDRID, REVIEWDATE, REVIEWTIME, TITLE, CONTENT, SCORE, STATUS, PARENTID </sql> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from OPAC_BOOKREVIEW where ID = #{id,jdbcType=DECIMAL} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> delete from OPAC_BOOKREVIEW where ID = #{id,jdbcType=DECIMAL} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.BookReviewEntity"> insert into OPAC_BOOKREVIEW (ID, BIBID, RDRID, REVIEWDATE, REVIEWTIME, TITLE, CONTENT, SCORE, STATUS, PARENTID ) values (#{id,jdbcType=DECIMAL}, #{bibid,jdbcType=DECIMAL}, #{rdrid,jdbcType=DECIMAL}, #{reviewdate,jdbcType=DECIMAL}, #{reviewtime,jdbcType=DECIMAL}, #{title,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR}, #{score,jdbcType=CHAR}, #{status,jdbcType=CHAR}, #{parentid,jdbcType=DECIMAL} ) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.BookReviewEntity"> <selectKey keyProperty="id" resultType="java.lang.Long" order="BEFORE"> select OPAC_BOOKREVIEW_SEQ.nextval a FROM dual </selectKey> insert into OPAC_BOOKREVIEW <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> ID, </if> <if test="bibid != null"> BIBID, </if> <if test="rdrid != null"> RDRID, </if> <if test="reviewdate != null"> REVIEWDATE, </if> <if test="reviewtime != null"> REVIEWTIME, </if> <if test="title != null"> TITLE, </if> <if test="content != null"> CONTENT, </if> <if test="score != null"> SCORE, </if> <if test="status != null"> STATUS, </if> <if test="parentid != null"> PARENTID, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null"> #{id,jdbcType=DECIMAL}, </if> <if test="bibid != null"> #{bibid,jdbcType=DECIMAL}, </if> <if test="rdrid != null"> #{rdrid,jdbcType=DECIMAL}, </if> <if test="reviewdate != null"> #{reviewdate,jdbcType=DECIMAL}, </if> <if test="reviewtime != null"> #{reviewtime,jdbcType=DECIMAL}, </if> <if test="title != null"> #{title,jdbcType=VARCHAR}, </if> <if test="content != null"> #{content,jdbcType=VARCHAR}, </if> <if test="score != null"> #{score,jdbcType=CHAR}, </if> <if test="status != null"> #{status,jdbcType=CHAR}, </if> <if test="parentid != null"> #{parentid,jdbcType=DECIMAL}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.BookReviewEntity"> update OPAC_BOOKREVIEW <set> <if test="bibid != null"> BIBID = #{bibid,jdbcType=DECIMAL}, </if> <if test="rdrid != null"> RDRID = #{rdrid,jdbcType=DECIMAL}, </if> <if test="reviewdate != null"> REVIEWDATE = #{reviewdate,jdbcType=DECIMAL}, </if> <if test="reviewtime != null"> REVIEWTIME = #{reviewtime,jdbcType=DECIMAL}, </if> <if test="title != null"> TITLE = #{title,jdbcType=VARCHAR}, </if> <if test="content != null"> CONTENT = #{content,jdbcType=VARCHAR}, </if> <if test="score != null"> SCORE = #{score,jdbcType=CHAR}, </if> <if test="status != null"> STATUS = #{status,jdbcType=CHAR}, </if> <if test="parentid != null"> PARENTID = #{parentid,jdbcType=DECIMAL}, </if> </set> where ID = #{id,jdbcType=DECIMAL} </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.BookReviewEntity"> update OPAC_BOOKREVIEW set BIBID = #{bibid,jdbcType=DECIMAL}, RDRID = #{rdrid,jdbcType=DECIMAL}, REVIEWDATE = #{reviewdate,jdbcType=DECIMAL}, REVIEWTIME = #{reviewtime,jdbcType=DECIMAL}, TITLE = #{title,jdbcType=VARCHAR}, CONTENT = #{content,jdbcType=VARCHAR}, SCORE = #{score,jdbcType=CHAR}, STATUS = #{status,jdbcType=CHAR}, PARENTID = #{parentid,jdbcType=DECIMAL} where ID = #{id,jdbcType=DECIMAL} </update> <select id="listUnionReader" parameterType="com.jishen.common.BookReviewWithReaderEntity" resultType="com.jishen.common.BookReviewWithReaderEntity"> select OPAC_BOOKREVIEW.ID, OPAC_BOOKREVIEW.BIBID, OPAC_BOOKREVIEW.RDRID, OPAC_BOOKREVIEW.REVIEWDATE, OPAC_BOOKREVIEW.REVIEWTIME, OPAC_BOOKREVIEW.TITLE retitle, OPAC_BOOKREVIEW.CONTENT, OPAC_BOOKREVIEW.SCORE, OPAC_BOOKREVIEW.STATUS, OPAC_BOOKREVIEW.PARENTID ,LIB_BIBLIOGRAPHY.title ,LIB_BIBLIOGRAPHY.price price,LIB_BIBLIOGRAPHY.author, LIB_BIBLIOGRAPHY.publish, LIB_BIBLIOGRAPHY.publishaddress, LIB_BIBLIOGRAPHY.publishdate, LIB_BIBLIOGRAPHY.isbn, LIB_BIBLIOGRAPHY.subject , LIB_CIR_READER.rdrno ,LIB_CIR_READER.name FROM OPAC_BOOKREVIEW left join LIB_BIBLIOGRAPHY on LIB_BIBLIOGRAPHY.id = OPAC_BOOKREVIEW.BIBID left join LIB_CIR_READER on LIB_CIR_READER.id = OPAC_BOOKREVIEW.RDRID <where> <if test="record.rdrid != null"> and OPAC_BOOKREVIEW.RDRID = #{record.rdrid,jdbcType=DECIMAL} </if> <if test="record.bibid != null"> and OPAC_BOOKREVIEW.BIBID = #{record.bibid,jdbcType=DECIMAL} </if> <if test="record.status != null"> and OPAC_BOOKREVIEW.STATUS = #{record.status,jdbcType=CHAR} </if> <include refid="common.condition"/> </where> order by OPAC_BOOKREVIEW.ID desc </select> </mapper>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de