修复编译错误:matchedDeptId变量引用

This commit is contained in:
Your Name 2026-01-02 14:30:19 +08:00
parent 9dc5b1d9ee
commit a6ebea2438

View File

@ -679,7 +679,7 @@ public class UserService {
setUserDepartments(user.getId(), matchedDeptIds, primaryDeptId);
}
log.info("钉钉用户创建成功: userId={}, username={}, needSelectDept={}",
user.getId(), user.getUsername(), matchedDeptId == null);
user.getId(), user.getUsername(), user.getDeptId() == null);
// 如果需要选择部门(系统无任何可用部门的情况),抛出特殊异常
if (user.getDeptId() == null) {