mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-26 04:39:26 +08:00
added: 首页主面板api
This commit is contained in:
@@ -223,6 +223,11 @@ public class DepartmentServiceImpl extends ServiceImpl<DepartmentMapper, Departm
|
||||
public Map<Integer, String> id2name() {
|
||||
return all().stream().collect(Collectors.toMap(Department::getId, Department::getName));
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long total() {
|
||||
return count();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user