|
@@ -2,20 +2,23 @@
|
|
|
<!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" />
|
|
|
+ <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>
|
|
@@ -76,8 +79,10 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- InstitutionID, CompanyName, CompanyAddress, FzrName, FzrMobile, FrName, FrMobile,
|
|
|
- CompanyCode, CompanyDesc, Remark, CreateUserID, CreateTime, ModifyUserID, ModifyTime
|
|
|
+ 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
|
|
@@ -110,16 +115,17 @@
|
|
|
</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)
|
|
|
- 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})
|
|
|
+ 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
|
|
@@ -166,6 +172,15 @@
|
|
|
<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">
|
|
@@ -210,6 +225,15 @@
|
|
|
<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">
|
|
@@ -263,6 +287,15 @@
|
|
|
<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" />
|
|
@@ -271,19 +304,22 @@
|
|
|
<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}
|
|
|
+ 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>
|
|
@@ -330,24 +366,36 @@
|
|
|
<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}
|
|
|
+ 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>
|