|
@@ -23,6 +23,7 @@
|
|
|
<result column="postal_code_" property="postalCode" />
|
|
|
<result column="role_name_" property="roleName" />
|
|
|
<result column="del_flag_" property="delFlag" />
|
|
|
+ <result column="tenant_id_" property="tenantId" />
|
|
|
<association property="sysUser" javaType="com.keao.edu.auth.api.entity.SysUser">
|
|
|
<result column="id_" property="id"/>
|
|
|
<result column="username_" property="username"/>
|
|
@@ -46,6 +47,7 @@
|
|
|
<result column="id_card_no_" property="idCardNo"/>
|
|
|
<result column="wechat_id_" property="wechatId"/>
|
|
|
<result column="is_super_admin_" property="isSuperAdmin"/>
|
|
|
+ <result column="tenant_id_" property="tenantId"/>
|
|
|
</association>
|
|
|
</resultMap>
|
|
|
|
|
@@ -66,9 +68,9 @@
|
|
|
<!-- 向数据库增加一条记录 -->
|
|
|
<insert id="insert" parameterType="com.keao.edu.user.entity.Employee" useGeneratedKeys="true" keyColumn="id" keyProperty="id">
|
|
|
INSERT INTO employee (user_id_,job_nature_,education_background_,graduate_school_,technical_titles_,entry_date_,
|
|
|
- certificate_type_,certificate_num_,update_time_,create_time_,introduction_,demission_date_,contact_address_,postal_code_)
|
|
|
+ certificate_type_,certificate_num_,update_time_,create_time_,introduction_,demission_date_,contact_address_,postal_code_,tenant_id_)
|
|
|
VALUES(#{userId},#{jobNature},#{educationBackground},#{graduateSchool},#{technicalTitles},#{entryDate},#{certificateType},
|
|
|
- #{certificateNum},#{updateTime},#{createTime},#{introduction},#{demissionDate},#{contactAddress},#{postalCode})
|
|
|
+ #{certificateNum},#{updateTime},#{createTime},#{introduction},#{demissionDate},#{contactAddress},#{postalCode},#{tenantId})
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -116,6 +118,9 @@
|
|
|
<if test="demissionDate != null">
|
|
|
demission_date_ = #{demissionDate},
|
|
|
</if>
|
|
|
+ <if test="tenantId != null">
|
|
|
+ tenant_id_=#{tenantId}
|
|
|
+ </if>
|
|
|
</set> WHERE user_id_ = #{userId}
|
|
|
</update>
|
|
|
<insert id="batchAddEmployeeRole">
|