parent
368fb1f49b
commit
c494111a4e
|
|
@ -184,8 +184,10 @@ public class AttendanceDetailsController extends BaseController {
|
|||
//管理员与人资角色可以看到所有
|
||||
if (roleId != null && !roleId.isEmpty()) {
|
||||
if (Collections.frequency(roleId, "1") == 0 && Collections.frequency(roleId, "16") == 0) {
|
||||
// 根据用户id查询是否是考勤员
|
||||
if (Collections.frequency(roleId, "14") == 1) {
|
||||
//判断是否是普通人员
|
||||
if (Collections.frequency(roleId, "15") == 0) {
|
||||
// 根据用户id查询是否是管理员
|
||||
if (Collections.frequency(roleId, "14") == 0) {
|
||||
Long userId = SecurityUtils.getUserId();
|
||||
List<MapVo> orgList = sysOrgDao.getOrgIdListAdministrators(userId);
|
||||
if (!orgList.isEmpty()) {
|
||||
|
|
@ -202,7 +204,7 @@ public class AttendanceDetailsController extends BaseController {
|
|||
List<String> uniqueIds = new ArrayList<>(idsSet);
|
||||
bean.setOrgList(uniqueIds);
|
||||
}
|
||||
} else if (Collections.frequency(roleId, "14") == 1) {
|
||||
} else {
|
||||
//部门负责人
|
||||
Long userId = SecurityUtils.getUserId();
|
||||
List<MapVo> orgList = sysOrgDao.getOrgIdListManager(userId);
|
||||
|
|
@ -220,6 +222,7 @@ public class AttendanceDetailsController extends BaseController {
|
|||
List<String> uniqueIds = new ArrayList<>(idsSet);
|
||||
bean.setOrgList(uniqueIds);
|
||||
}
|
||||
}
|
||||
}else {
|
||||
Long userId = SecurityUtils.getUserId();
|
||||
bean.setUserId(userId);
|
||||
|
|
|
|||
Loading…
Reference in New Issue