修复 Department.getName() 为 getDeptName()

This commit is contained in:
Your Name 2026-01-16 15:03:48 +08:00
parent 7c618fd3a4
commit ba0d70cab2

View File

@ -2040,7 +2040,7 @@ public class AnalyticsService {
// 获取所有部门
List<Department> departments = departmentMapper.selectList(null);
Map<Long, String> deptNames = departments.stream()
.collect(Collectors.toMap(d -> d.getId(), d -> d.getName(), (a, b) -> a));
.collect(Collectors.toMap(d -> d.getId(), d -> d.getDeptName(), (a, b) -> a));
for (Map.Entry<Long, List<Task>> entry : tasksByDept.entrySet()) {
Long deptId = entry.getKey();
@ -2128,7 +2128,7 @@ public class AnalyticsService {
// 获取所有部门
List<Department> departments = departmentMapper.selectList(null);
Map<Long, String> deptNames = departments.stream()
.collect(Collectors.toMap(d -> d.getId(), d -> d.getName(), (a, b) -> a));
.collect(Collectors.toMap(d -> d.getId(), d -> d.getDeptName(), (a, b) -> a));
for (Map.Entry<Long, List<Task>> entry : tasksByDept.entrySet()) {
Long deptId = entry.getKey();