Edit D:\rfid\libsystem\WEB-INF\classes\com\jishen\libsystem\mapping\LibAcqCollectcataMapper.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.LibAcqCollectcataMapper"> <resultMap id="BaseResultMap" type="com.jishen.libsystem.entity.LibAcqCollectcata"> <id column="CODE" jdbcType="VARCHAR" property="code" /> <result column="NAME" jdbcType="VARCHAR" property="name" /> <result column="LIBCODE" jdbcType="VARCHAR" property="libcode" /> <result column="BOOKSELLER" jdbcType="VARCHAR" property="bookseller" /> <result column="STATUS" jdbcType="CHAR" property="status" /> <result column="NOTE" jdbcType="VARCHAR" property="note" /> <result column="YEAR" jdbcType="DECIMAL" property="year" /> <result column="ENDDATE" jdbcType="DECIMAL" property="enddate" /> <result column="SYSID" jdbcType="DECIMAL" property="sysid" /> </resultMap> <sql id="Base_Column_List"> CODE, NAME, LIBCODE, BOOKSELLER, STATUS, NOTE, YEAR, ENDDATE, SYSID </sql> <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_ACQ_COLLECTCATA where CODE = #{code,jdbcType=VARCHAR} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> delete from LIB_ACQ_COLLECTCATA where CODE = #{code,jdbcType=VARCHAR} </delete> <insert id="insert" parameterType="com.jishen.libsystem.entity.LibAcqCollectcata"> insert into LIB_ACQ_COLLECTCATA (CODE, NAME, LIBCODE, BOOKSELLER, STATUS, NOTE, YEAR, ENDDATE, SYSID ) values (#{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{libcode,jdbcType=VARCHAR}, #{bookseller,jdbcType=VARCHAR}, #{status,jdbcType=CHAR}, #{note,jdbcType=VARCHAR}, #{year,jdbcType=DECIMAL}, #{enddate,jdbcType=DECIMAL}, #{sysid,jdbcType=DECIMAL} ) </insert> <insert id="insertSelective" parameterType="com.jishen.libsystem.entity.LibAcqCollectcata"> insert into LIB_ACQ_COLLECTCATA <trim prefix="(" suffix=")" suffixOverrides=","> <if test="code != null"> CODE, </if> <if test="name != null"> NAME, </if> <if test="libcode != null"> LIBCODE, </if> <if test="bookseller != null"> BOOKSELLER, </if> <if test="status != null"> STATUS, </if> <if test="note != null"> NOTE, </if> <if test="year != null"> YEAR, </if> <if test="enddate != null"> ENDDATE, </if> <if test="sysid != null"> SYSID, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="code != null"> #{code,jdbcType=VARCHAR}, </if> <if test="name != null"> #{name,jdbcType=VARCHAR}, </if> <if test="libcode != null"> #{libcode,jdbcType=VARCHAR}, </if> <if test="bookseller != null"> #{bookseller,jdbcType=VARCHAR}, </if> <if test="status != null"> #{status,jdbcType=CHAR}, </if> <if test="note != null"> #{note,jdbcType=VARCHAR}, </if> <if test="year != null"> #{year,jdbcType=DECIMAL}, </if> <if test="enddate != null"> #{enddate,jdbcType=DECIMAL}, </if> <if test="sysid != null"> #{sysid,jdbcType=DECIMAL}, </if> </trim> </insert> <update id="updateByPrimaryKeySelective" parameterType="com.jishen.libsystem.entity.LibAcqCollectcata"> update LIB_ACQ_COLLECTCATA <set> <if test="name != null"> NAME = #{name,jdbcType=VARCHAR}, </if> <if test="libcode != null"> LIBCODE = #{libcode,jdbcType=VARCHAR}, </if> <if test="bookseller != null"> BOOKSELLER = #{bookseller,jdbcType=VARCHAR}, </if> <if test="status != null"> STATUS = #{status,jdbcType=CHAR}, </if> <if test="note != null"> NOTE = #{note,jdbcType=VARCHAR}, </if> <if test="year != null"> YEAR = #{year,jdbcType=DECIMAL}, </if> <if test="enddate != null"> ENDDATE = #{enddate,jdbcType=DECIMAL}, </if> <if test="sysid != null"> SYSID = #{sysid,jdbcType=DECIMAL}, </if> </set> where CODE = #{code,jdbcType=VARCHAR} </update> <update id="updateByPrimaryKey" parameterType="com.jishen.libsystem.entity.LibAcqCollectcata"> update LIB_ACQ_COLLECTCATA set NAME = #{name,jdbcType=VARCHAR}, LIBCODE = #{libcode,jdbcType=VARCHAR}, BOOKSELLER = #{bookseller,jdbcType=VARCHAR}, STATUS = #{status,jdbcType=CHAR}, NOTE = #{note,jdbcType=VARCHAR}, YEAR = #{year,jdbcType=DECIMAL}, ENDDATE = #{enddate,jdbcType=DECIMAL}, SYSID = #{sysid,jdbcType=DECIMAL} where CODE = #{code,jdbcType=VARCHAR} </update> <select id="listSelective" parameterType="com.jishen.libsystem.entity.LibAcqCollectcata" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_ACQ_COLLECTCATA where 1=1 <if test="libcode != null"> and LIBCODE = #{libcode,jdbcType=VARCHAR} </if> <if test="sysid != null"> and SYSID = #{sysid,jdbcType=DECIMAL} </if> <if test="bookseller != null"> and BOOKSELLER = #{bookseller,jdbcType=VARCHAR} </if> <if test="status != null"> and STATUS = #{status,jdbcType=CHAR} </if> <if test="code != null"> and CODE = #{code,jdbcType=VARCHAR} </if> </select> <select id="listWithCondition" parameterType="com.jishen.common.SrchLimitEntity" resultMap="BaseResultMap"> select <include refid="Base_Column_List" /> from LIB_ACQ_COLLECTCATA 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