debug: 添加日志查看部门ID列表
This commit is contained in:
parent
6d530f8c30
commit
49d4fc57ff
@ -105,9 +105,11 @@ public class TaskItemController {
|
||||
if (leadingDeptIds.contains(deptId)) {
|
||||
// 获取指定部门及其所有子部门
|
||||
List<Long> deptAndChildIds = getDeptAndChildIds(deptId);
|
||||
log.info("部门负责人查询进行中任务,指定部门ID: {}, 部门及子部门ID列表: {}", deptId, deptAndChildIds);
|
||||
items = taskItemService.getInProgressItemsByDeptIds(page, pageSize, deptAndChildIds, keyword);
|
||||
} else {
|
||||
// 无权查看该部门
|
||||
log.warn("用户 {} 无权查看部门 {}", userId, deptId);
|
||||
items = new com.baomidou.mybatisplus.extension.plugins.pagination.Page<>();
|
||||
}
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user