|
|
@@ -51,8 +51,13 @@
|
|
|
,u.photo,u.account_status,u.freeze_status,u.status,a.dept_name deptName,u.id_number as idNumber,u.sex
|
|
|
from t_pt_userAccount u
|
|
|
join t_sys_dept a on u.dept_id = a.dept_id
|
|
|
+ <!-- 过滤临聘人员部门下的退休人员,不发补贴 -->
|
|
|
+ left join (
|
|
|
+ select distinct user_numb from t_pt_userAccount
|
|
|
+ where dept_id = '193' and user_state = 'retire'
|
|
|
+ ) b on u.user_numb = b.user_numb
|
|
|
<where>
|
|
|
- u.del_flag = 0 and a.del_flag = 0
|
|
|
+ u.del_flag = 0 and a.del_flag = 0 and b.user_numb is null
|
|
|
<if test="bo.category != null and bo.category != ''">
|
|
|
and u.category = #{bo.category}
|
|
|
</if>
|