123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401 |
- <?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.PcInstitutionMapper">
- <resultMap id="BaseResultMap" type="com.hz.employmentsite.model.PcInstitution">
- <id column="InstitutionID" jdbcType="VARCHAR" property="institutionID"/>
- <result column="CompanyName" jdbcType="VARCHAR" property="companyName"/>
- <result column="CompanyAddress" jdbcType="VARCHAR" property="companyAddress"/>
- <result column="FzrName" jdbcType="VARCHAR" property="fzrName"/>
- <result column="FzrMobile" jdbcType="VARCHAR" property="fzrMobile"/>
- <result column="FrName" jdbcType="VARCHAR" property="frName"/>
- <result column="FrMobile" jdbcType="VARCHAR" property="frMobile"/>
- <result column="CompanyCode" jdbcType="VARCHAR" property="companyCode"/>
- <result column="CompanyDesc" jdbcType="VARCHAR" property="companyDesc"/>
- <result column="Remark" jdbcType="VARCHAR" property="remark"/>
- <result column="CreateUserID" jdbcType="VARCHAR" property="createUserID"/>
- <result column="CreateTime" jdbcType="TIMESTAMP" property="createTime"/>
- <result column="ModifyUserID" jdbcType="VARCHAR" property="modifyUserID"/>
- <result column="ModifyTime" jdbcType="TIMESTAMP" property="modifyTime"/>
- <result column="SignInPoliticalArea" jdbcType="VARCHAR" property="signInPoliticalArea"/>
- <result column="EconomicTypeID" jdbcType="TIMESTAMP" property="economicTypeID"/>
- <result column="ValidDate" jdbcType="INTEGER" property="validDate"/>
- </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">
- InstitutionID
- , CompanyName, CompanyAddress, FzrName, FzrMobile, FrName, FrMobile,
- CompanyCode, CompanyDesc, Remark, CreateUserID, CreateTime, ModifyUserID,
- ModifyTime,SignInPoliticalArea,EconomicTypeID,ValidDate
- </sql>
- <select id="selectByExample" parameterType="com.hz.employmentsite.model.PcInstitutionExample" 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 InstitutionID = #{institutionID,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- delete from pc_institution
- where InstitutionID = #{institutionID,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByExample" parameterType="com.hz.employmentsite.model.PcInstitutionExample">
- delete from pc_institution
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.hz.employmentsite.model.PcInstitution">
- insert into pc_institution (InstitutionID, CompanyName, CompanyAddress,
- FzrName, FzrMobile, FrName,
- FrMobile, CompanyCode, CompanyDesc,
- Remark, CreateUserID, CreateTime,
- ModifyUserID, ModifyTime, SignInPoliticalArea, EconomicTypeID, ValidDate)
- values (#{institutionID,jdbcType=VARCHAR}, #{companyName,jdbcType=VARCHAR}, #{companyAddress,jdbcType=VARCHAR},
- #{fzrName,jdbcType=VARCHAR}, #{fzrMobile,jdbcType=VARCHAR}, #{frName,jdbcType=VARCHAR},
- #{frMobile,jdbcType=VARCHAR}, #{companyCode,jdbcType=VARCHAR}, #{companyDesc,jdbcType=VARCHAR},
- #{remark,jdbcType=VARCHAR}, #{createUserID,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
- #{modifyUserID,jdbcType=VARCHAR}, #{modifyTime,jdbcType=TIMESTAMP}, #{signInPoliticalArea,jdbcType=VARCHAR},
- #{economicTypeID,jdbcType=INTEGER}, #{validDate,jdbcType=TIMESTAMP})
- </insert>
- <insert id="insertSelective" parameterType="com.hz.employmentsite.model.PcInstitution">
- insert into pc_institution
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="institutionID != null">
- InstitutionID,
- </if>
- <if test="companyName != null">
- CompanyName,
- </if>
- <if test="companyAddress != null">
- CompanyAddress,
- </if>
- <if test="fzrName != null">
- FzrName,
- </if>
- <if test="fzrMobile != null">
- FzrMobile,
- </if>
- <if test="frName != null">
- FrName,
- </if>
- <if test="frMobile != null">
- FrMobile,
- </if>
- <if test="companyCode != null">
- CompanyCode,
- </if>
- <if test="companyDesc != null">
- CompanyDesc,
- </if>
- <if test="remark != null">
- Remark,
- </if>
- <if test="createUserID != null">
- CreateUserID,
- </if>
- <if test="createTime != null">
- CreateTime,
- </if>
- <if test="modifyUserID != null">
- ModifyUserID,
- </if>
- <if test="modifyTime != null">
- ModifyTime,
- </if>
- <if test="signInPoliticalArea != null">
- SignInPoliticalArea,
- </if>
- <if test="validDate != null">
- ValidDate,
- </if>
- <if test="economicTypeID != null">
- EconomicTypeID,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="institutionID != null">
- #{institutionID,jdbcType=VARCHAR},
- </if>
- <if test="companyName != null">
- #{companyName,jdbcType=VARCHAR},
- </if>
- <if test="companyAddress != null">
- #{companyAddress,jdbcType=VARCHAR},
- </if>
- <if test="fzrName != null">
- #{fzrName,jdbcType=VARCHAR},
- </if>
- <if test="fzrMobile != null">
- #{fzrMobile,jdbcType=VARCHAR},
- </if>
- <if test="frName != null">
- #{frName,jdbcType=VARCHAR},
- </if>
- <if test="frMobile != null">
- #{frMobile,jdbcType=VARCHAR},
- </if>
- <if test="companyCode != null">
- #{companyCode,jdbcType=VARCHAR},
- </if>
- <if test="companyDesc != null">
- #{companyDesc,jdbcType=VARCHAR},
- </if>
- <if test="remark != null">
- #{remark,jdbcType=VARCHAR},
- </if>
- <if test="createUserID != null">
- #{createUserID,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null">
- #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="modifyUserID != null">
- #{modifyUserID,jdbcType=VARCHAR},
- </if>
- <if test="modifyTime != null">
- #{modifyTime,jdbcType=TIMESTAMP},
- </if>
- <if test="signInPoliticalArea != null">
- #{signInPoliticalArea,jdbcType=VARCHAR},
- </if>
- <if test="validDate != null">
- #{validDate,jdbcType=TIMESTAMP},
- </if>
- <if test="economicTypeID != null">
- #{economicTypeID,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.hz.employmentsite.model.PcInstitutionExample" 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.institutionID != null">
- InstitutionID = #{row.institutionID,jdbcType=VARCHAR},
- </if>
- <if test="row.companyName != null">
- CompanyName = #{row.companyName,jdbcType=VARCHAR},
- </if>
- <if test="row.companyAddress != null">
- CompanyAddress = #{row.companyAddress,jdbcType=VARCHAR},
- </if>
- <if test="row.fzrName != null">
- FzrName = #{row.fzrName,jdbcType=VARCHAR},
- </if>
- <if test="row.fzrMobile != null">
- FzrMobile = #{row.fzrMobile,jdbcType=VARCHAR},
- </if>
- <if test="row.frName != null">
- FrName = #{row.frName,jdbcType=VARCHAR},
- </if>
- <if test="row.frMobile != null">
- FrMobile = #{row.frMobile,jdbcType=VARCHAR},
- </if>
- <if test="row.companyCode != null">
- CompanyCode = #{row.companyCode,jdbcType=VARCHAR},
- </if>
- <if test="row.companyDesc != null">
- CompanyDesc = #{row.companyDesc,jdbcType=VARCHAR},
- </if>
- <if test="row.remark != null">
- Remark = #{row.remark,jdbcType=VARCHAR},
- </if>
- <if test="row.createUserID != null">
- CreateUserID = #{row.createUserID,jdbcType=VARCHAR},
- </if>
- <if test="row.createTime != null">
- CreateTime = #{row.createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="row.modifyUserID != null">
- ModifyUserID = #{row.modifyUserID,jdbcType=VARCHAR},
- </if>
- <if test="row.modifyTime != null">
- ModifyTime = #{row.modifyTime,jdbcType=TIMESTAMP},
- </if>
- <if test="row.signInPoliticalArea != null">
- SignInPoliticalArea = #{row.signInPoliticalArea,jdbcType=VARCHAR},
- </if>
- <if test="row.validDate != null">
- ValidDate = #{row.validDate,jdbcType=TIMESTAMP},
- </if>
- <if test="row.economicTypeID != null">
- EconomicTypeID = #{row.economicTypeID,jdbcType=INTEGER},
- </if>
- </set>
- <if test="example != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- update pc_institution
- set InstitutionID = #{row.institutionID,jdbcType=VARCHAR},
- CompanyName = #{row.companyName,jdbcType=VARCHAR},
- CompanyAddress = #{row.companyAddress,jdbcType=VARCHAR},
- FzrName = #{row.fzrName,jdbcType=VARCHAR},
- FzrMobile = #{row.fzrMobile,jdbcType=VARCHAR},
- FrName = #{row.frName,jdbcType=VARCHAR},
- FrMobile = #{row.frMobile,jdbcType=VARCHAR},
- CompanyCode = #{row.companyCode,jdbcType=VARCHAR},
- CompanyDesc = #{row.companyDesc,jdbcType=VARCHAR},
- Remark = #{row.remark,jdbcType=VARCHAR},
- CreateUserID = #{row.createUserID,jdbcType=VARCHAR},
- CreateTime = #{row.createTime,jdbcType=TIMESTAMP},
- ModifyUserID = #{row.modifyUserID,jdbcType=VARCHAR},
- ModifyTime = #{row.modifyTime,jdbcType=TIMESTAMP},
- SignInPoliticalArea = #{row.signInPoliticalArea,jdbcType=VARCHAR},
- ValidDate = #{row.validDate,jdbcType=TIMESTAMP},
- EconomicTypeID = #{row.economicTypeID,jdbcType=INTEGER}
- <if test="example != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.hz.employmentsite.model.PcInstitution">
- update pc_institution
- <set>
- <if test="companyName != null">
- CompanyName = #{companyName,jdbcType=VARCHAR},
- </if>
- <if test="companyAddress != null">
- CompanyAddress = #{companyAddress,jdbcType=VARCHAR},
- </if>
- <if test="fzrName != null">
- FzrName = #{fzrName,jdbcType=VARCHAR},
- </if>
- <if test="fzrMobile != null">
- FzrMobile = #{fzrMobile,jdbcType=VARCHAR},
- </if>
- <if test="frName != null">
- FrName = #{frName,jdbcType=VARCHAR},
- </if>
- <if test="frMobile != null">
- FrMobile = #{frMobile,jdbcType=VARCHAR},
- </if>
- <if test="companyCode != null">
- CompanyCode = #{companyCode,jdbcType=VARCHAR},
- </if>
- <if test="companyDesc != null">
- CompanyDesc = #{companyDesc,jdbcType=VARCHAR},
- </if>
- <if test="remark != null">
- Remark = #{remark,jdbcType=VARCHAR},
- </if>
- <if test="createUserID != null">
- CreateUserID = #{createUserID,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null">
- CreateTime = #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="modifyUserID != null">
- ModifyUserID = #{modifyUserID,jdbcType=VARCHAR},
- </if>
- <if test="modifyTime != null">
- ModifyTime = #{modifyTime,jdbcType=TIMESTAMP},
- </if>
- <if test="signInPoliticalArea != null">
- SignInPoliticalArea = #{signInPoliticalArea,jdbcType=VARCHAR},
- </if>
- <if test="validDate != null">
- ValidDate = #{validDate,jdbcType=TIMESTAMP},
- </if>
- <if test="economicTypeID != null">
- EconomicTypeID = #{economicTypeID,jdbcType=INTEGER},
- </if>
- </set>
- where InstitutionID = #{institutionID,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.hz.employmentsite.model.PcInstitution">
- update pc_institution
- set CompanyName = #{companyName,jdbcType=VARCHAR},
- CompanyAddress = #{companyAddress,jdbcType=VARCHAR},
- FzrName = #{fzrName,jdbcType=VARCHAR},
- FzrMobile = #{fzrMobile,jdbcType=VARCHAR},
- FrName = #{frName,jdbcType=VARCHAR},
- FrMobile = #{frMobile,jdbcType=VARCHAR},
- CompanyCode = #{companyCode,jdbcType=VARCHAR},
- CompanyDesc = #{companyDesc,jdbcType=VARCHAR},
- Remark = #{remark,jdbcType=VARCHAR},
- CreateUserID = #{createUserID,jdbcType=VARCHAR},
- CreateTime = #{createTime,jdbcType=TIMESTAMP},
- ModifyUserID = #{modifyUserID,jdbcType=VARCHAR},
- ModifyTime = #{modifyTime,jdbcType=TIMESTAMP},
- signInPoliticalArea = #{signInPoliticalArea,jdbcType=VARCHAR},
- validDate = #{validDate,jdbcType=TIMESTAMP},
- economicTypeID = #{economicTypeID,jdbcType=INTEGER}
- where InstitutionID = #{institutionID,jdbcType=VARCHAR}
- </update>
- </mapper>
|