|
@@ -2,7 +2,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.PcSiteUserMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.hz.employmentsite.model.PcSiteUser">
|
|
|
- <result column="SiteUserID" jdbcType="VARCHAR" property="siteUserID" />
|
|
|
+ <id column="SiteUserID" jdbcType="VARCHAR" property="siteUserID" />
|
|
|
+ <result column="SiteID" jdbcType="VARCHAR" property="siteID" />
|
|
|
<result column="Name" jdbcType="VARCHAR" property="name" />
|
|
|
<result column="Gender" jdbcType="INTEGER" property="gender" />
|
|
|
<result column="Mobile" jdbcType="VARCHAR" property="mobile" />
|
|
@@ -71,7 +72,8 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- SiteUserID, Name, Gender, Mobile, RoleID, CreateUserID, CreateTime, UpdateBy, UpdateTime
|
|
|
+ SiteUserID, SiteID, Name, Gender, Mobile, RoleID, CreateUserID, CreateTime, UpdateBy,
|
|
|
+ UpdateTime
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.hz.employmentsite.model.PcSiteUserExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -87,6 +89,16 @@
|
|
|
order by ${orderByClause}
|
|
|
</if>
|
|
|
</select>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from pc_site_user
|
|
|
+ where SiteUserID = #{siteUserID,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
+ delete from pc_site_user
|
|
|
+ where SiteUserID = #{siteUserID,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
<delete id="deleteByExample" parameterType="com.hz.employmentsite.model.PcSiteUserExample">
|
|
|
delete from pc_site_user
|
|
|
<if test="_parameter != null">
|
|
@@ -94,14 +106,14 @@
|
|
|
</if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.hz.employmentsite.model.PcSiteUser">
|
|
|
- insert into pc_site_user (SiteUserID, Name, Gender,
|
|
|
- Mobile, RoleID, CreateUserID,
|
|
|
- CreateTime, UpdateBy, UpdateTime
|
|
|
- )
|
|
|
- values (#{siteUserID,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{gender,jdbcType=INTEGER},
|
|
|
- #{mobile,jdbcType=VARCHAR}, #{roleID,jdbcType=INTEGER}, #{createUserID,jdbcType=VARCHAR},
|
|
|
- #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}
|
|
|
- )
|
|
|
+ insert into pc_site_user (SiteUserID, SiteID, Name,
|
|
|
+ Gender, Mobile, RoleID,
|
|
|
+ CreateUserID, CreateTime, UpdateBy,
|
|
|
+ UpdateTime)
|
|
|
+ values (#{siteUserID,jdbcType=VARCHAR}, #{siteID,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
|
|
|
+ #{gender,jdbcType=INTEGER}, #{mobile,jdbcType=VARCHAR}, #{roleID,jdbcType=INTEGER},
|
|
|
+ #{createUserID,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
|
|
|
+ #{updateTime,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.hz.employmentsite.model.PcSiteUser">
|
|
|
insert into pc_site_user
|
|
@@ -109,6 +121,9 @@
|
|
|
<if test="siteUserID != null">
|
|
|
SiteUserID,
|
|
|
</if>
|
|
|
+ <if test="siteID != null">
|
|
|
+ SiteID,
|
|
|
+ </if>
|
|
|
<if test="name != null">
|
|
|
Name,
|
|
|
</if>
|
|
@@ -138,6 +153,9 @@
|
|
|
<if test="siteUserID != null">
|
|
|
#{siteUserID,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="siteID != null">
|
|
|
+ #{siteID,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="name != null">
|
|
|
#{name,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -176,6 +194,9 @@
|
|
|
<if test="row.siteUserID != null">
|
|
|
SiteUserID = #{row.siteUserID,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="row.siteID != null">
|
|
|
+ SiteID = #{row.siteID,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="row.name != null">
|
|
|
Name = #{row.name,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -208,6 +229,7 @@
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
update pc_site_user
|
|
|
set SiteUserID = #{row.siteUserID,jdbcType=VARCHAR},
|
|
|
+ SiteID = #{row.siteID,jdbcType=VARCHAR},
|
|
|
Name = #{row.name,jdbcType=VARCHAR},
|
|
|
Gender = #{row.gender,jdbcType=INTEGER},
|
|
|
Mobile = #{row.mobile,jdbcType=VARCHAR},
|
|
@@ -220,4 +242,50 @@
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
</update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.hz.employmentsite.model.PcSiteUser">
|
|
|
+ update pc_site_user
|
|
|
+ <set>
|
|
|
+ <if test="siteID != null">
|
|
|
+ SiteID = #{siteID,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="name != null">
|
|
|
+ Name = #{name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="gender != null">
|
|
|
+ Gender = #{gender,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="mobile != null">
|
|
|
+ Mobile = #{mobile,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="roleID != null">
|
|
|
+ RoleID = #{roleID,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="createUserID != null">
|
|
|
+ CreateUserID = #{createUserID,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ CreateTime = #{createTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="updateBy != null">
|
|
|
+ UpdateBy = #{updateBy,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ UpdateTime = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where SiteUserID = #{siteUserID,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.hz.employmentsite.model.PcSiteUser">
|
|
|
+ update pc_site_user
|
|
|
+ set SiteID = #{siteID,jdbcType=VARCHAR},
|
|
|
+ Name = #{name,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}
|
|
|
+ where SiteUserID = #{siteUserID,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
</mapper>
|