|
@@ -109,16 +109,24 @@
|
|
|
</if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.hz.employmentsite.model.PcSiteUser">
|
|
|
- insert into pc_site_user (SiteUserID, SiteUserName, UserID,
|
|
|
- SiteID, Gender, Mobile,
|
|
|
- RoleID, CreateUserID, CreateTime,
|
|
|
- UpdateBy, UpdateTime, UserNo,
|
|
|
- IDCard)
|
|
|
- values (#{siteUserID,jdbcType=VARCHAR}, #{siteUserName,jdbcType=VARCHAR}, #{userID,jdbcType=VARCHAR},
|
|
|
- #{siteID,jdbcType=VARCHAR}, #{gender,jdbcType=INTEGER}, #{mobile,jdbcType=VARCHAR},
|
|
|
- #{roleID,jdbcType=INTEGER}, #{createUserID,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
- #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{userNo,jdbcType=VARCHAR},
|
|
|
- #{IDCard,jdbcType=VARCHAR})
|
|
|
+ insert into pc_site_user (SiteUserID, SiteUserName, UserID,
|
|
|
+ SiteID, Gender, Mobile,
|
|
|
+ RoleID, CreateUserID, CreateTime,
|
|
|
+ UpdateBy, UpdateTime, UserNo,
|
|
|
+ IDCard, SocialSecurityCard, Age,
|
|
|
+ Nation, PoliticsStatusID, CultureRank,
|
|
|
+ FinishSchool, Profession, IsFullTime,
|
|
|
+ OccupationalCategory, OccupationalLevel, NativePlace,
|
|
|
+ Email, Address)
|
|
|
+ values (#{siteUserID,jdbcType=VARCHAR}, #{siteUserName,jdbcType=VARCHAR}, #{userID,jdbcType=VARCHAR},
|
|
|
+ #{siteID,jdbcType=VARCHAR}, #{gender,jdbcType=INTEGER}, #{mobile,jdbcType=VARCHAR},
|
|
|
+ #{roleID,jdbcType=INTEGER}, #{createUserID,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{userNo,jdbcType=VARCHAR},
|
|
|
+ #{IDCard,jdbcType=VARCHAR}, #{SocialSecurityCard,jdbcType=VARCHAR}, #{Age,jdbcType=INTEGER},
|
|
|
+ #{Nation,jdbcType=INTEGER}, #{PoliticsStatusID,jdbcType=INTEGER}, #{CultureRank,jdbcType=INTEGER},
|
|
|
+ #{FinishSchool,jdbcType=VARCHAR}, #{Profession,jdbcType=VARCHAR}, #{IsFullTime,jdbcType=INTEGER},
|
|
|
+ #{OccupationalCategory,jdbcType=INTEGER}, #{OccupationalLevel,jdbcType=INTEGER},
|
|
|
+ #{NativePlace,jdbcType=VARCHAR}, #{Email,jdbcType=VARCHAR}, #{Address,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.hz.employmentsite.model.PcSiteUser">
|
|
|
insert into pc_site_user
|
|
@@ -162,6 +170,45 @@
|
|
|
<if test="IDCard != null">
|
|
|
IDCard,
|
|
|
</if>
|
|
|
+ <if test="SocialSecurityCard != null">
|
|
|
+ SocialSecurityCard,
|
|
|
+ </if>
|
|
|
+ <if test="Age != null">
|
|
|
+ Age,
|
|
|
+ </if>
|
|
|
+ <if test="Nation != null">
|
|
|
+ Nation,
|
|
|
+ </if>
|
|
|
+ <if test="PoliticsStatusID != null">
|
|
|
+ PoliticsStatusID,
|
|
|
+ </if>
|
|
|
+ <if test="CultureRank != null">
|
|
|
+ CultureRank,
|
|
|
+ </if>
|
|
|
+ <if test="FinishSchool != null">
|
|
|
+ FinishSchool,
|
|
|
+ </if>
|
|
|
+ <if test="Profession != null">
|
|
|
+ Profession,
|
|
|
+ </if>
|
|
|
+ <if test="IsFullTime != null">
|
|
|
+ IsFullTime,
|
|
|
+ </if>
|
|
|
+ <if test="OccupationalCategory != null">
|
|
|
+ OccupationalCategory,
|
|
|
+ </if>
|
|
|
+ <if test="OccupationalLevel != null">
|
|
|
+ OccupationalLevel,
|
|
|
+ </if>
|
|
|
+ <if test="NativePlace != null">
|
|
|
+ NativePlace,
|
|
|
+ </if>
|
|
|
+ <if test="Email != null">
|
|
|
+ Email,
|
|
|
+ </if>
|
|
|
+ <if test="Address != null">
|
|
|
+ Address,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="siteUserID != null">
|
|
@@ -203,6 +250,45 @@
|
|
|
<if test="IDCard != null">
|
|
|
#{IDCard,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="SocialSecurityCard != null">
|
|
|
+ #{SocialSecurityCard,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="Age != null">
|
|
|
+ #{Age,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="Nation != null">
|
|
|
+ #{Nation,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="PoliticsStatusID != null">
|
|
|
+ #{PoliticsStatusID,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="CultureRank != null">
|
|
|
+ #{CultureRank,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="FinishSchool != null">
|
|
|
+ #{FinishSchool,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="Profession != null">
|
|
|
+ #{Profession,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="IsFullTime != null">
|
|
|
+ #{IsFullTime,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="OccupationalCategory != null">
|
|
|
+ #{OccupationalCategory,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="OccupationalLevel != null">
|
|
|
+ #{OccupationalLevel,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="NativePlace != null">
|
|
|
+ #{NativePlace,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="Email != null">
|
|
|
+ #{Email,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="Address != null">
|
|
|
+ #{Address,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.hz.employmentsite.model.PcSiteUserExample" resultType="java.lang.Long">
|
|
@@ -253,6 +339,45 @@
|
|
|
<if test="row.IDCard != null">
|
|
|
IDCard = #{row.IDCard,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="row.SocialSecurityCard != null">
|
|
|
+ SocialSecurityCard = #{row.SocialSecurityCard,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.Age != null">
|
|
|
+ Age = #{row.Age,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="row.Nation != null">
|
|
|
+ Nation = #{row.Nation,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="row.PoliticsStatusID != null">
|
|
|
+ PoliticsStatusID = #{row.PoliticsStatusID,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="row.CultureRank != null">
|
|
|
+ CultureRank = #{row.CultureRank,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="row.FinishSchool != null">
|
|
|
+ FinishSchool = #{row.FinishSchool,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.Profession != null">
|
|
|
+ Profession = #{row.Profession,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.IsFullTime != null">
|
|
|
+ IsFullTime = #{row.IsFullTime,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="row.OccupationalCategory != null">
|
|
|
+ OccupationalCategory = #{row.OccupationalCategory,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="row.OccupationalLevel != null">
|
|
|
+ OccupationalLevel = #{row.OccupationalLevel,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="row.NativePlace != null">
|
|
|
+ NativePlace = #{row.NativePlace,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.Email != null">
|
|
|
+ Email = #{row.Email,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.Address != null">
|
|
|
+ Address = #{row.Address,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="example != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -261,18 +386,31 @@
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
update pc_site_user
|
|
|
set SiteUserID = #{row.siteUserID,jdbcType=VARCHAR},
|
|
|
- SiteUserName = #{row.siteUserName,jdbcType=VARCHAR},
|
|
|
- UserID = #{row.userID,jdbcType=VARCHAR},
|
|
|
- SiteID = #{row.siteID,jdbcType=VARCHAR},
|
|
|
- Gender = #{row.gender,jdbcType=INTEGER},
|
|
|
- Mobile = #{row.mobile,jdbcType=VARCHAR},
|
|
|
- RoleID = #{row.roleID,jdbcType=INTEGER},
|
|
|
- CreateUserID = #{row.createUserID,jdbcType=VARCHAR},
|
|
|
- CreateTime = #{row.createTime,jdbcType=TIMESTAMP},
|
|
|
- UpdateBy = #{row.updateBy,jdbcType=VARCHAR},
|
|
|
- UpdateTime = #{row.updateTime,jdbcType=TIMESTAMP},
|
|
|
- UserNo = #{row.userNo,jdbcType=VARCHAR},
|
|
|
- IDCard = #{row.IDCard,jdbcType=VARCHAR}
|
|
|
+ SiteUserName = #{row.siteUserName,jdbcType=VARCHAR},
|
|
|
+ UserID = #{row.userID,jdbcType=VARCHAR},
|
|
|
+ SiteID = #{row.siteID,jdbcType=VARCHAR},
|
|
|
+ Gender = #{row.gender,jdbcType=INTEGER},
|
|
|
+ Mobile = #{row.mobile,jdbcType=VARCHAR},
|
|
|
+ RoleID = #{row.roleID,jdbcType=INTEGER},
|
|
|
+ CreateUserID = #{row.createUserID,jdbcType=VARCHAR},
|
|
|
+ CreateTime = #{row.createTime,jdbcType=TIMESTAMP},
|
|
|
+ UpdateBy = #{row.updateBy,jdbcType=VARCHAR},
|
|
|
+ UpdateTime = #{row.updateTime,jdbcType=TIMESTAMP},
|
|
|
+ UserNo = #{row.userNo,jdbcType=VARCHAR},
|
|
|
+ IDCard = #{row.IDCard,jdbcType=VARCHAR},
|
|
|
+ SocialSecurityCard = #{row.SocialSecurityCard,jdbcType=VARCHAR},
|
|
|
+ Age = #{row.Age,jdbcType=INTEGER},
|
|
|
+ Nation = #{row.Nation,jdbcType=INTEGER},
|
|
|
+ PoliticsStatusID = #{row.PoliticsStatusID,jdbcType=INTEGER},
|
|
|
+ CultureRank = #{row.CultureRank,jdbcType=INTEGER},
|
|
|
+ FinishSchool = #{row.FinishSchool,jdbcType=VARCHAR},
|
|
|
+ Profession = #{row.Profession,jdbcType=VARCHAR},
|
|
|
+ IsFullTime = #{row.IsFullTime,jdbcType=VARCHAR},
|
|
|
+ OccupationalCategory = #{row.OccupationalCategory,jdbcType=INTEGER},
|
|
|
+ OccupationalLevel = #{row.OccupationalLevel,jdbcType=INTEGER},
|
|
|
+ NativePlace = #{row.NativePlace,jdbcType=VARCHAR},
|
|
|
+ Email = #{row.Email,jdbcType=VARCHAR},
|
|
|
+ Address = #{row.Address,jdbcType=VARCHAR}
|
|
|
<if test="example != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
@@ -316,23 +454,75 @@
|
|
|
<if test="IDCard != null">
|
|
|
IDCard = #{IDCard,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="row.SocialSecurityCard != null">
|
|
|
+ SocialSecurityCard = #{row.SocialSecurityCard,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.Age != null">
|
|
|
+ Age = #{row.Age,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="row.Nation != null">
|
|
|
+ Nation = #{row.Nation,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="row.PoliticsStatusID != null">
|
|
|
+ PoliticsStatusID = #{row.PoliticsStatusID,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="row.CultureRank != null">
|
|
|
+ CultureRank = #{row.CultureRank,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="row.FinishSchool != null">
|
|
|
+ FinishSchool = #{row.FinishSchool,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.Profession != null">
|
|
|
+ Profession = #{row.Profession,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.IsFullTime != null">
|
|
|
+ IsFullTime = #{row.IsFullTime,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="row.OccupationalCategory != null">
|
|
|
+ OccupationalCategory = #{row.OccupationalCategory,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="row.OccupationalLevel != null">
|
|
|
+ OccupationalLevel = #{row.OccupationalLevel,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="row.NativePlace != null">
|
|
|
+ NativePlace = #{row.NativePlace,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.Email != null">
|
|
|
+ Email = #{row.Email,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.Address != null">
|
|
|
+ Address = #{row.Address,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where SiteUserID = #{siteUserID,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.hz.employmentsite.model.PcSiteUser">
|
|
|
update pc_site_user
|
|
|
- set SiteUserName = #{siteUserName,jdbcType=VARCHAR},
|
|
|
- UserID = #{userID,jdbcType=VARCHAR},
|
|
|
- SiteID = #{siteID,jdbcType=VARCHAR},
|
|
|
- Gender = #{gender,jdbcType=INTEGER},
|
|
|
- Mobile = #{mobile,jdbcType=VARCHAR},
|
|
|
- RoleID = #{roleID,jdbcType=INTEGER},
|
|
|
- CreateUserID = #{createUserID,jdbcType=VARCHAR},
|
|
|
- CreateTime = #{createTime,jdbcType=TIMESTAMP},
|
|
|
- UpdateBy = #{updateBy,jdbcType=VARCHAR},
|
|
|
- UpdateTime = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
- UserNo = #{userNo,jdbcType=VARCHAR},
|
|
|
- IDCard = #{IDCard,jdbcType=VARCHAR}
|
|
|
+ set SiteUserName = #{siteUserName,jdbcType=VARCHAR},
|
|
|
+ UserID = #{userID,jdbcType=VARCHAR},
|
|
|
+ SiteID = #{siteID,jdbcType=VARCHAR},
|
|
|
+ Gender = #{gender,jdbcType=INTEGER},
|
|
|
+ Mobile = #{mobile,jdbcType=VARCHAR},
|
|
|
+ RoleID = #{roleID,jdbcType=INTEGER},
|
|
|
+ CreateUserID = #{createUserID,jdbcType=VARCHAR},
|
|
|
+ CreateTime = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ UpdateBy = #{updateBy,jdbcType=VARCHAR},
|
|
|
+ UpdateTime = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ UserNo = #{userNo,jdbcType=VARCHAR},
|
|
|
+ IDCard = #{IDCard,jdbcType=VARCHAR},
|
|
|
+ SocialSecurityCard = #{SocialSecurityCard,jdbcType=VARCHAR},
|
|
|
+ Age = #{Age,jdbcType=INTEGER},
|
|
|
+ Nation = #{Nation,jdbcType=INTEGER},
|
|
|
+ PoliticsStatusID = #{PoliticsStatusID,jdbcType=INTEGER},
|
|
|
+ CultureRank = #{CultureRank,jdbcType=INTEGER},
|
|
|
+ FinishSchool = #{FinishSchool,jdbcType=VARCHAR},
|
|
|
+ Profession = #{Profession,jdbcType=VARCHAR},
|
|
|
+ IsFullTime = #{IsFullTime,jdbcType=VARCHAR},
|
|
|
+ OccupationalCategory = #{OccupationalCategory,jdbcType=INTEGER},
|
|
|
+ OccupationalLevel = #{OccupationalLevel,jdbcType=INTEGER},
|
|
|
+ NativePlace = #{NativePlace,jdbcType=VARCHAR},
|
|
|
+ Email = #{Email,jdbcType=VARCHAR},
|
|
|
+ Address = #{Address,jdbcType=VARCHAR}
|
|
|
where SiteUserID = #{siteUserID,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|
|
@@ -353,4 +543,10 @@
|
|
|
from pc_site_user
|
|
|
where idCard = #{idCard,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="selectBySocialSecurityCard" resultType="String">
|
|
|
+ select SiteUserID
|
|
|
+ from pc_site_user
|
|
|
+ where SocialSecurityCard = #{socialSecurityCard,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
</mapper>
|