fix: 使用departmentService获取部门信息

This commit is contained in:
Your Name 2026-01-08 09:44:25 +08:00
parent e716803cbb
commit df4f6442c1

View File

@ -701,7 +701,7 @@ public class TaskService {
// 获取用户所属部门类型
String deptType = null;
if (user.getDeptId() != null) {
Department dept = departmentMapper.selectById(user.getDeptId());
Department dept = departmentService.getDepartmentById(user.getDeptId());
if (dept != null) {
deptType = dept.getDeptType();
}