|
@@ -0,0 +1,337 @@
|
|
|
+<?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.InstitutionMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.hz.employmentsite.model.InstitutionRecord">
|
|
|
+ <id column="szkey" jdbcType="VARCHAR" property="szkey" />
|
|
|
+ <result column="szcompanycode" jdbcType="VARCHAR" property="szcompanycode" />
|
|
|
+ <result column="szcompanyname" jdbcType="VARCHAR" property="szcompanyname" />
|
|
|
+ <result column="szcomaddress" jdbcType="VARCHAR" property="szcomaddress" />
|
|
|
+ <result column="szdetail" jdbcType="VARCHAR" property="szdetail" />
|
|
|
+ <result column="szcomusername" jdbcType="VARCHAR" property="szcomusername" />
|
|
|
+ <result column="szcomusermobile" jdbcType="VARCHAR" property="szcomusermobile" />
|
|
|
+ <result column="szfrname" jdbcType="VARCHAR" property="szfrname" />
|
|
|
+ <result column="szfmobile" jdbcType="VARCHAR" property="szfmobile" />
|
|
|
+ <result column="szsaveuser" jdbcType="VARCHAR" property="szsaveuser" />
|
|
|
+ <result column="szsavetime" jdbcType="VARCHAR" property="szsavetime" />
|
|
|
+ <result column="szupdateuser" jdbcType="VARCHAR" property="szupdateuser" />
|
|
|
+ <result column="szupdatetime" jdbcType="VARCHAR" property="szupdatetime" />
|
|
|
+ </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">
|
|
|
+ szkey,szcompanycode,szcompanyname,szcomaddress,szdetail,szcomusername,szcomusermobile,
|
|
|
+ szfrname,szfmobile,szsaveuser,szsavetime,szupdateuser,szupdatetime
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExample" parameterType="com.hz.employmentsite.model.InstitutionRecord" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from pc_institution
|
|
|
+ <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 pc_institution
|
|
|
+ where szkey = #{szkey,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
+ delete from pc_institution
|
|
|
+ where szkey = #{szkey,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.hz.employmentsite.model.InstitutionRecord">
|
|
|
+ delete from pc_institution
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.hz.employmentsite.model.InstitutionRecord">
|
|
|
+ insert into pc_institution (szkey,szcompanycode,szcompanyname,szcomaddress,szdetail,szcomusername,szcomusermobile,
|
|
|
+ szfrname,szfmobile,szsaveuser,szsavetime,szupdateuser,szupdatetime)
|
|
|
+ values ( #{szkey,jdbcType=VARCHAR}, #{szcompanycode,jdbcType=VARCHAR},#{szcompanyname,jdbcType=VARCHAR},
|
|
|
+ #{szcomaddress,jdbcType=VARCHAR},#{szdetial,jdbcType=VARCHAR},#{szcomusername,jdbcType=VARCHAR},#{szcomusermobile,jdbcType=VARCHAR},
|
|
|
+ #{szfrname,jdbcType=VARCHAR}, #{szfmobile,jdbcType=VARCHAR},#{szsaveuser,jdbcType=VARCHAR},
|
|
|
+ #{szsavetime,jdbcType=VARCHAR},#{szupdateuser,jdbcType=VARCHAR},#{szupdatetime,jdbcType=VARCHAR})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.hz.employmentsite.model.InstitutionRecord">
|
|
|
+ insert into pc_institution
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="szkey != null">
|
|
|
+ szkey,
|
|
|
+ </if>
|
|
|
+ <if test="szcompanycode != null">
|
|
|
+ szcompanycode,
|
|
|
+ </if>
|
|
|
+ <if test="szcompanyname != null">
|
|
|
+ szcompanyname,
|
|
|
+ </if>
|
|
|
+ <if test="szcomaddress != null">
|
|
|
+ szcomaddress,
|
|
|
+ </if>
|
|
|
+ <if test="szdetail != null">
|
|
|
+ szdetail,
|
|
|
+ </if>
|
|
|
+ <if test="szcomusername != null">
|
|
|
+ szcomusername,
|
|
|
+ </if>
|
|
|
+ <if test="szcomusermobile != null">
|
|
|
+ szcomusermobile,
|
|
|
+ </if>
|
|
|
+ <if test="szfrname != null">
|
|
|
+ szfrname,
|
|
|
+ </if>
|
|
|
+ <if test="szfmobile != null">
|
|
|
+ szfmobile,
|
|
|
+ </if>
|
|
|
+ <if test="szsaveuser != null">
|
|
|
+ szsaveuser,
|
|
|
+ </if>
|
|
|
+ <if test="szsavetime != null">
|
|
|
+ szsavetime,
|
|
|
+ </if>
|
|
|
+ <if test="szupdateuser != null">
|
|
|
+ szupdateuser,
|
|
|
+ </if>
|
|
|
+ <if test="szupdatetime != null">
|
|
|
+ szupdatetime,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="szkey != null">
|
|
|
+ #{szkey,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="szcompanycode != null">
|
|
|
+ #{szcompanycode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="szcompanyname != null">
|
|
|
+ #{szcompanyname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="szcomaddress != null">
|
|
|
+ #{szcomaddress,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="szdetail != null">
|
|
|
+ #{szdetail,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="szcomusername != null">
|
|
|
+ #{szcomusername,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="szcomusermobile != null">
|
|
|
+ #{szcomusermobile,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="szfrname != null">
|
|
|
+ #{szfrname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="szfmobile != null">
|
|
|
+ #{szfmobile,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="szsaveuser != null">
|
|
|
+ #{szsaveuser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="szsavetime != null">
|
|
|
+ #{szsavetime,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="szupdateuser != null">
|
|
|
+ #{szupdateuser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="szupdatetime != null">
|
|
|
+ #{szupdatetime,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.hz.employmentsite.model.InstitutionRecord" resultType="java.lang.Long">
|
|
|
+ select count(*) from pc_institution
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <update id="updateByExampleSelective" parameterType="map">
|
|
|
+ update pc_institution
|
|
|
+ <set>
|
|
|
+ <if test="row.szkey != null">
|
|
|
+ szkey = #{row.szkey,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.szcompanyname != null">
|
|
|
+ szcompanyname = #{row.szcompanyname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.szcompanycode != null">
|
|
|
+ szcompanycode = #{row.szcompanycode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.szcomaddress != null">
|
|
|
+ szcomaddress = #{row.szcomaddress,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.szcomusername != null">
|
|
|
+ szcomusername = #{row.szcomusername,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.szcomusermobile != null">
|
|
|
+ szcomusermobile = #{row.szcomusermobile,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.szfrname != null">
|
|
|
+ szfrname = #{row.szfrname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.szfrmobile != null">
|
|
|
+ szfrmobile = #{row.szfrmobile,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.szdetail != null">
|
|
|
+ szdetail = #{row.szdetail,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.szsaveuser != null">
|
|
|
+ szsaveuser = #{row.szsaveuser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.szsavetime != null">
|
|
|
+ szsavetime = #{row.szsavetime,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.szupdateuser != null">
|
|
|
+ szupdateuser = #{row.szupdateuser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.szupdatetime != null">
|
|
|
+ szupdatetime = #{row.szupdatetime,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ <if test="example != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByExample" parameterType="map">
|
|
|
+ update pc_institution
|
|
|
+ set szkey = #{row.szkey,jdbcType=VARCHAR},
|
|
|
+ szcompanyname = #{row.szcompanyname,jdbcType=VARCHAR},
|
|
|
+ szcompanycode = #{row.szcompanycode,jdbcType=VARCHAR},
|
|
|
+ szcomaddress = #{row.szcomaddress,jdbcType=VARCHAR},
|
|
|
+ szcomusername = #{row.szcomusername,jdbcType=VARCHAR},
|
|
|
+ szcomusermobile = #{row.szcomusermobile,jdbcType=VARCHAR},
|
|
|
+ szfrname = #{row.szfrname,jdbcType=VARCHAR},
|
|
|
+ szfrmobile = #{row.szfrmobile,jdbcType=VARCHAR},
|
|
|
+ szdetail = #{row.szdetail,jdbcType=VARCHAR},
|
|
|
+ szsaveuser = #{row.szsaveuser,jdbcType=VARCHAR},
|
|
|
+ szsavetime = #{row.szsavetime,jdbcType=VARCHAR},
|
|
|
+ szupdateuser = #{row.szupdateuser,jdbcType=VARCHAR},
|
|
|
+ szupdatetime = #{row.szupdatetime,jdbcType=VARCHAR}
|
|
|
+ <if test="example != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.hz.employmentsite.model.InstitutionRecord">
|
|
|
+ update pc_institution
|
|
|
+ <set>
|
|
|
+ <if test="szkey != null">
|
|
|
+ szkey = #{szkey,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="szcompanyname != null">
|
|
|
+ szcompanyname = #{szcompanyname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="szcompanycode != null">
|
|
|
+ szcompanycode = #{szcompanycode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="szcomaddress != null">
|
|
|
+ szcomaddress = #{szcomaddress,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="szcomusername != null">
|
|
|
+ szcomusername = #{szcomusername,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="szcomusermobile != null">
|
|
|
+ szcomusermobile = #{szcomusermobile,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="szfrname != null">
|
|
|
+ szfrname = #{szfrname,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="szfrmobile != null">
|
|
|
+ szfrmobile = #{szfrmobile,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="szdetail != null">
|
|
|
+ szdetail = #{szdetail,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="szsaveuser != null">
|
|
|
+ szsaveuser = #{szsaveuser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="szsavetime != null">
|
|
|
+ szsavetime = #{szsavetime,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="szupdateuser != null">
|
|
|
+ szupdateuser = #{szupdateuser,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="szupdatetime != null">
|
|
|
+ szupdatetime = #{szupdatetime,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where szkey = #{szkey,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.hz.employmentsite.model.InstitutionRecord">
|
|
|
+ update pc_institution
|
|
|
+ set szcompanyname = #{szcompanyname,jdbcType=VARCHAR},
|
|
|
+ szcompanycode = #{szcompanycode,jdbcType=VARCHAR},
|
|
|
+ szcomaddress = #{szcomaddress,jdbcType=VARCHAR},
|
|
|
+ szcomusername = #{szcomusername,jdbcType=VARCHAR},
|
|
|
+ szcomusermobile = #{szcomusermobile,jdbcType=VARCHAR},
|
|
|
+ szfrname = #{szfrname,jdbcType=VARCHAR},
|
|
|
+ szfrmobile = #{szfrmobile,jdbcType=VARCHAR},
|
|
|
+ szdetail = #{szdetail,jdbcType=VARCHAR},
|
|
|
+ szsaveuser = #{szsaveuser,jdbcType=VARCHAR},
|
|
|
+ szsavetime = #{szsavetime,jdbcType=VARCHAR},
|
|
|
+ szupdateuser = #{szupdateuser,jdbcType=VARCHAR},
|
|
|
+ szupdatetime = #{szupdatetime,jdbcType=VARCHAR}
|
|
|
+ where szkey = #{szkey,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+</mapper>
|