|
@@ -177,6 +177,45 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
${params.dataScope}
|
|
${params.dataScope}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <select id="selectTBranchMemberListDymc" parameterType="TBranchMember" resultMap="TBranchMemberResult">
|
|
|
|
+ select u.member_id, u.new_dept_id, u.old_dept_id, u.ap_no, u.process_id, u.ap_status, 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, us.PHOTO
|
|
|
|
+ from t_branch_member u
|
|
|
|
+ left join sys_dept d on u.dept_id = d.dept_id
|
|
|
|
+ left join SYS_USER us on us.user_id = u.user_id
|
|
|
|
+ <where>
|
|
|
|
+ <if test="memberId != null "> and u.member_id = #{memberId}</if>
|
|
|
|
+ <if test="userId != null "> and u.user_id = #{userId}</if>
|
|
|
|
+ <if test="memberType != null and memberType != '' and memberType == 1"> and u.member_type = '1' </if>
|
|
|
|
+ <if test="memberType != null and memberType != '' and memberType == 2"> and u.member_type in ('2', '3', '5') </if>
|
|
|
|
+ <if test="memberType != null and memberType != '' and memberType == 3"> and u.member_type = '3' </if>
|
|
|
|
+ <if test="memberType != null and memberType != '' and memberType == 4"> and u.member_type = '4' </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>
|
|
|
|
+ <if test="workEntryTime != null "> and u.work_entry_time = #{workEntryTime}</if>
|
|
|
|
+ <if test="partyEntryTime != null "> and u.party_entry_time = #{partyEntryTime}</if>
|
|
|
|
+ <if test="labourEntryTime != null "> and u.labour_entry_time = #{labourEntryTime}</if>
|
|
|
|
+ <if test="labourLeaveTime != null "> and u.labour_leave_time = #{labourLeaveTime}</if>
|
|
|
|
+ <if test="entryTime != null "> and u.entry_time = #{entryTime}</if>
|
|
|
|
+ <if test="leaveTime != null "> and u.leave_time = #{leaveTime}</if>
|
|
|
|
+ <if test="isLeague != null and isLeague != ''"> and u.is_league = #{isLeague}</if>
|
|
|
|
+ <if test="applyTime != null "> and u.apply_time = #{applyTime}</if>
|
|
|
|
+ <if test="formCreateTime != null "> and u.form_create_time = #{formCreateTime}</if>
|
|
|
|
+ <if test="currentMentor != null and currentMentor != ''"> and u.current_mentor = #{currentMentor}</if>
|
|
|
|
+ <if test="planDevelopDuration != null and planDevelopDuration != ''"> and u.plan_develop_duration = #{planDevelopDuration}</if>
|
|
|
|
+ <if test="isTrained != null and isTrained != ''"> and u.is_trained = #{isTrained}</if>
|
|
|
|
+ <if test="remarks != null and remarks != ''"> and u.remarks like concat(concat('%', #{remarks}), '%')</if>
|
|
|
|
+ <if test="deptId != null "> and u.dept_id = #{deptId}</if>
|
|
|
|
+ <if test="nickName != null and nickName != ''"> and us.nick_name like concat(concat('%', #{nickName}), '%')</if>
|
|
|
|
+ and u.del_flag = 0
|
|
|
|
+ </where>
|
|
|
|
+ <!-- 数据范围过滤 -->
|
|
|
|
+ ${params.dataScope}
|
|
|
|
+ </select>
|
|
|
|
+
|
|
<select id="selectTBranchWyhVoList" parameterType="TBranchMember" resultMap="TBranchWyhResult">
|
|
<select id="selectTBranchWyhVoList" parameterType="TBranchMember" resultMap="TBranchWyhResult">
|
|
<include refid="selectTBranchMemberVo"/>
|
|
<include refid="selectTBranchMemberVo"/>
|
|
<where>
|
|
<where>
|