|
@@ -34,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="sex" column="sex" />
|
|
|
<result property="phonenumber" column="phonenumber" />
|
|
|
<result property="ethnic" column="ethnic" />
|
|
|
+ <result property="staffId" column="staff_id" />
|
|
|
<collection property="roles" javaType="java.util.List" resultMap="RoleResult" />
|
|
|
<collection property="posts" javaType="java.util.List" resultMap="PostResult" />
|
|
|
</resultMap>
|
|
@@ -56,7 +57,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTBranchMemberVo">
|
|
|
- select u.member_id, u.user_id, u.ethnic, u.member_type, u.birthday, u.education_level, u.work_join_time, u.work_entry_time, u.party_entry_time, u.labour_entry_time, u.labour_leave_time, u.entry_time, u.leave_time, u.is_league, u.apply_time, u.form_create_time, u.current_mentor, u.plan_develop_duration, u.is_trained, u.remarks, u.del_flag, u.create_by, u.create_time, u.update_by, u.update_time, u.dept_id,
|
|
|
+ select u.member_id, u.user_id, u.staff_id, u.ethnic, u.member_type, u.birthday, u.education_level, u.work_join_time, u.work_entry_time, u.party_entry_time, u.labour_entry_time, u.labour_leave_time, u.entry_time, u.leave_time, u.is_league, u.apply_time, u.form_create_time, u.current_mentor, u.plan_develop_duration, u.is_trained, u.remarks, u.del_flag, u.create_by, u.create_time, u.update_by, u.update_time, u.dept_id,
|
|
|
us.NICK_NAME, us.SEX, us.PHONENUMBER,
|
|
|
r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status,
|
|
|
p.post_id, p.post_code, p.post_name, p.post_sort, p.status as post_status
|
|
@@ -76,6 +77,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="userId != null "> and u.user_id = #{userId}</if>
|
|
|
<if test="memberType != null and memberType != ''"> and u.member_type = #{memberType}</if>
|
|
|
<if test="ethnic != null and ethnic != ''"> and u.ethnic = #{ethnic}</if>
|
|
|
+ <if test="staffId != null and staffId != ''"> and u.staff_id = #{staffId}</if>
|
|
|
<if test="birthday != null "> and u.birthday = #{birthday}</if>
|
|
|
<if test="educationLevel != null and educationLevel != ''"> and u.education_level = #{educationLevel}</if>
|
|
|
<if test="workJoinTime != null "> and u.work_join_time = #{workJoinTime}</if>
|
|
@@ -115,6 +117,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="userId != null">user_id,</if>
|
|
|
<if test="memberType != null">member_type,</if>
|
|
|
<if test="ethnic != null">ethnic,</if>
|
|
|
+ <if test="staffId != null">staff_id,</if>
|
|
|
<if test="birthday != null">birthday,</if>
|
|
|
<if test="educationLevel != null">education_level,</if>
|
|
|
<if test="workJoinTime != null">work_join_time,</if>
|
|
@@ -143,6 +146,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
<if test="memberType != null">#{memberType},</if>
|
|
|
<if test="ethnic != null">#{ethnic},</if>
|
|
|
+ <if test="staffId != null">#{staffId},</if>
|
|
|
<if test="birthday != null">#{birthday},</if>
|
|
|
<if test="educationLevel != null">#{educationLevel},</if>
|
|
|
<if test="workJoinTime != null">#{workJoinTime},</if>
|
|
@@ -174,6 +178,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="userId != null">user_id = #{userId},</if>
|
|
|
<if test="memberType != null">member_type = #{memberType},</if>
|
|
|
<if test="ethnic != null">ethnic = #{ethnic},</if>
|
|
|
+ <if test="staffId != null">staff_id = #{staffId},</if>
|
|
|
<if test="birthday != null">birthday = #{birthday},</if>
|
|
|
<if test="educationLevel != null">education_level = #{educationLevel},</if>
|
|
|
<if test="workJoinTime != null">work_join_time = #{workJoinTime},</if>
|