123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291 |
- <?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.hz.employmentsite.mapper.CfFileMapper">
- <resultMap id="BaseResultMap" type="com.hz.employmentsite.model.CfFile">
- <id column="fileId" jdbcType="VARCHAR" property="fileId" />
- <result column="fileName" jdbcType="VARCHAR" property="fileName" />
- <result column="fileSuffix" jdbcType="VARCHAR" property="fileSuffix" />
- <result column="fileUrl" jdbcType="VARCHAR" property="fileUrl" />
- <result column="fileType" jdbcType="INTEGER" property="fileType" />
- <result column="fileNote" jdbcType="VARCHAR" property="fileNote" />
- <result column="sFileId" jdbcType="VARCHAR" property="sFileId" />
- <result column="userID" jdbcType="VARCHAR" property="userID" />
- <result column="fileRefID" jdbcType="VARCHAR" property="fileRefID" />
- <result column="createTime" jdbcType="TIMESTAMP" property="createTime" />
- </resultMap>
- <sql id="Example_Where_Clause">
- <where>
- <foreach collection="oredCriteria" item="criteria" separator="or">
- <if test="criteria.valid">
- <trim prefix="(" prefixOverrides="and" suffix=")">
- <foreach collection="criteria.criteria" item="criterion">
- <choose>
- <when test="criterion.noValue">
- and ${criterion.condition}
- </when>
- <when test="criterion.singleValue">
- and ${criterion.condition} #{criterion.value}
- </when>
- <when test="criterion.betweenValue">
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
- </when>
- <when test="criterion.listValue">
- and ${criterion.condition}
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Update_By_Example_Where_Clause">
- <where>
- <foreach collection="example.oredCriteria" item="criteria" separator="or">
- <if test="criteria.valid">
- <trim prefix="(" prefixOverrides="and" suffix=")">
- <foreach collection="criteria.criteria" item="criterion">
- <choose>
- <when test="criterion.noValue">
- and ${criterion.condition}
- </when>
- <when test="criterion.singleValue">
- and ${criterion.condition} #{criterion.value}
- </when>
- <when test="criterion.betweenValue">
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
- </when>
- <when test="criterion.listValue">
- and ${criterion.condition}
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Base_Column_List">
- fileId, fileName, fileSuffix, fileUrl, fileType, fileNote, sFileId, userID, fileRefID,
- createTime
- </sql>
- <select id="selectByExample" parameterType="com.hz.employmentsite.model.CfFileExample" resultMap="BaseResultMap">
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from cf_file
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- <if test="orderByClause != null">
- order by ${orderByClause}
- </if>
- </select>
- <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from cf_file
- where fileId = #{fileId,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- delete from cf_file
- where fileId = #{fileId,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByExample" parameterType="com.hz.employmentsite.model.CfFileExample">
- delete from cf_file
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.hz.employmentsite.model.CfFile">
- insert into cf_file (fileId, fileName, fileSuffix,
- fileUrl, fileType, fileNote,
- sFileId, userID, fileRefID,
- createTime)
- values (#{fileId,jdbcType=VARCHAR}, #{fileName,jdbcType=VARCHAR}, #{fileSuffix,jdbcType=VARCHAR},
- #{fileUrl,jdbcType=VARCHAR}, #{fileType,jdbcType=INTEGER}, #{fileNote,jdbcType=VARCHAR},
- #{sFileId,jdbcType=VARCHAR}, #{userID,jdbcType=VARCHAR}, #{fileRefID,jdbcType=VARCHAR},
- #{createTime,jdbcType=TIMESTAMP})
- </insert>
- <insert id="insertSelective" parameterType="com.hz.employmentsite.model.CfFile">
- insert into cf_file
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="fileId != null">
- fileId,
- </if>
- <if test="fileName != null">
- fileName,
- </if>
- <if test="fileSuffix != null">
- fileSuffix,
- </if>
- <if test="fileUrl != null">
- fileUrl,
- </if>
- <if test="fileType != null">
- fileType,
- </if>
- <if test="fileNote != null">
- fileNote,
- </if>
- <if test="sFileId != null">
- sFileId,
- </if>
- <if test="userID != null">
- userID,
- </if>
- <if test="fileRefID != null">
- fileRefID,
- </if>
- <if test="createTime != null">
- createTime,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="fileId != null">
- #{fileId,jdbcType=VARCHAR},
- </if>
- <if test="fileName != null">
- #{fileName,jdbcType=VARCHAR},
- </if>
- <if test="fileSuffix != null">
- #{fileSuffix,jdbcType=VARCHAR},
- </if>
- <if test="fileUrl != null">
- #{fileUrl,jdbcType=VARCHAR},
- </if>
- <if test="fileType != null">
- #{fileType,jdbcType=INTEGER},
- </if>
- <if test="fileNote != null">
- #{fileNote,jdbcType=VARCHAR},
- </if>
- <if test="sFileId != null">
- #{sFileId,jdbcType=VARCHAR},
- </if>
- <if test="userID != null">
- #{userID,jdbcType=VARCHAR},
- </if>
- <if test="fileRefID != null">
- #{fileRefID,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null">
- #{createTime,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.hz.employmentsite.model.CfFileExample" resultType="java.lang.Long">
- select count(*) from cf_file
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- update cf_file
- <set>
- <if test="row.fileId != null">
- fileId = #{row.fileId,jdbcType=VARCHAR},
- </if>
- <if test="row.fileName != null">
- fileName = #{row.fileName,jdbcType=VARCHAR},
- </if>
- <if test="row.fileSuffix != null">
- fileSuffix = #{row.fileSuffix,jdbcType=VARCHAR},
- </if>
- <if test="row.fileUrl != null">
- fileUrl = #{row.fileUrl,jdbcType=VARCHAR},
- </if>
- <if test="row.fileType != null">
- fileType = #{row.fileType,jdbcType=INTEGER},
- </if>
- <if test="row.fileNote != null">
- fileNote = #{row.fileNote,jdbcType=VARCHAR},
- </if>
- <if test="row.sFileId != null">
- sFileId = #{row.sFileId,jdbcType=VARCHAR},
- </if>
- <if test="row.userID != null">
- userID = #{row.userID,jdbcType=VARCHAR},
- </if>
- <if test="row.fileRefID != null">
- fileRefID = #{row.fileRefID,jdbcType=VARCHAR},
- </if>
- <if test="row.createTime != null">
- createTime = #{row.createTime,jdbcType=TIMESTAMP},
- </if>
- </set>
- <if test="example != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- update cf_file
- set fileId = #{row.fileId,jdbcType=VARCHAR},
- fileName = #{row.fileName,jdbcType=VARCHAR},
- fileSuffix = #{row.fileSuffix,jdbcType=VARCHAR},
- fileUrl = #{row.fileUrl,jdbcType=VARCHAR},
- fileType = #{row.fileType,jdbcType=INTEGER},
- fileNote = #{row.fileNote,jdbcType=VARCHAR},
- sFileId = #{row.sFileId,jdbcType=VARCHAR},
- userID = #{row.userID,jdbcType=VARCHAR},
- fileRefID = #{row.fileRefID,jdbcType=VARCHAR},
- createTime = #{row.createTime,jdbcType=TIMESTAMP}
- <if test="example != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.hz.employmentsite.model.CfFile">
- update cf_file
- <set>
- <if test="fileName != null">
- fileName = #{fileName,jdbcType=VARCHAR},
- </if>
- <if test="fileSuffix != null">
- fileSuffix = #{fileSuffix,jdbcType=VARCHAR},
- </if>
- <if test="fileUrl != null">
- fileUrl = #{fileUrl,jdbcType=VARCHAR},
- </if>
- <if test="fileType != null">
- fileType = #{fileType,jdbcType=INTEGER},
- </if>
- <if test="fileNote != null">
- fileNote = #{fileNote,jdbcType=VARCHAR},
- </if>
- <if test="sFileId != null">
- sFileId = #{sFileId,jdbcType=VARCHAR},
- </if>
- <if test="userID != null">
- userID = #{userID,jdbcType=VARCHAR},
- </if>
- <if test="fileRefID != null">
- fileRefID = #{fileRefID,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null">
- createTime = #{createTime,jdbcType=TIMESTAMP},
- </if>
- </set>
- where fileId = #{fileId,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.hz.employmentsite.model.CfFile">
- update cf_file
- set fileName = #{fileName,jdbcType=VARCHAR},
- fileSuffix = #{fileSuffix,jdbcType=VARCHAR},
- fileUrl = #{fileUrl,jdbcType=VARCHAR},
- fileType = #{fileType,jdbcType=INTEGER},
- fileNote = #{fileNote,jdbcType=VARCHAR},
- sFileId = #{sFileId,jdbcType=VARCHAR},
- userID = #{userID,jdbcType=VARCHAR},
- fileRefID = #{fileRefID,jdbcType=VARCHAR},
- createTime = #{createTime,jdbcType=TIMESTAMP}
- where fileId = #{fileId,jdbcType=VARCHAR}
- </update>
- </mapper>
|