修复 Department.getName() 为 getDeptName()
This commit is contained in:
parent
7c618fd3a4
commit
ba0d70cab2
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user