fixed: 学员部门返回空bug

This commit is contained in:
none 2023-06-12 14:26:53 +08:00
parent 83756fb4e1
commit b7249d154c

View File

@ -69,7 +69,7 @@ public class UserController {
List<Department> departments = new ArrayList<>();
List<Integer> depIds = userService.getDepIdsByUserId(user.getId());
if (depIds != null && depIds.size() > 0) {
departmentService.listByIds(depIds);
departments = departmentService.listByIds(depIds);
}
user.setIdCard(PrivacyUtil.hideIDCard(user.getIdCard()));