Commit 239c4d57 by 墨竹

Merge branch 'fixbug_0525' into developer

parents 96fff103 9de29aef
...@@ -275,7 +275,7 @@ ...@@ -275,7 +275,7 @@
<select id="pageStaff" resultMap="BaseResultMap"> <select id="pageStaff" resultMap="BaseResultMap">
select select
<include refid="Base_Column_List"/> a.*
from tab_haoban_staff a from tab_haoban_staff a
left join tab_haoban_staff_department_related b on a.staff_id = b.staff_id left join tab_haoban_staff_department_related b on a.staff_id = b.staff_id
where a.status_flag = 1 and a.wx_enterprise_id = #{wxEnterpriseId} where a.status_flag = 1 and a.wx_enterprise_id = #{wxEnterpriseId}
......
...@@ -146,8 +146,15 @@ public class StaffController extends WebBaseController { ...@@ -146,8 +146,15 @@ public class StaffController extends WebBaseController {
} }
WebLoginDTO login = AuthWebRequestUtil.getLoginUser(); WebLoginDTO login = AuthWebRequestUtil.getLoginUser();
String wxEnterpriseId = login.getWxEnterpriseId(); String wxEnterpriseId = login.getWxEnterpriseId();
// 部门 List<String> departmentIds = new ArrayList<>();
List<String> departmentIds = departmentApiService.listSonDeptIdsByDepartmentId(departmentId, wxEnterpriseId); DepartmentDTO departmentDTO = departmentApiService.selectById(departmentId);
if (departmentDTO != null) {
String parentDepartmentId = departmentDTO.getParentDepartmentId();
if (!"0".equals(parentDepartmentId)) {
// 部门
departmentIds = departmentApiService.listSonDeptIdsByDepartmentId(departmentId, wxEnterpriseId);
}
}
//员工 //员工
Page<StaffDTO> page = staffApiService.pageStaff(departmentIds, activeFlag, keyWord, pageInfo, relationFlag,wxEnterpriseId); Page<StaffDTO> page = staffApiService.pageStaff(departmentIds, activeFlag, keyWord, pageInfo, relationFlag,wxEnterpriseId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment