|
@@ -441,7 +441,11 @@ public class StudentManageController extends BaseController {
|
|
|
@GetMapping("/organStudentOverView")
|
|
|
@PreAuthorize("@pcs.hasPermissions('studentManage/organStudentOverView')")
|
|
|
public HttpResponseResult<List<EduOrganStudentDataDto>> organStudentOverView() throws Exception {
|
|
|
- List<Organization> organizations = organizationService.queryEmployeeOrgan();
|
|
|
+ SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
+ if (sysUser == null) {
|
|
|
+ return failed("用户信息获取失败");
|
|
|
+ }
|
|
|
+ List<Organization> organizations = organizationService.queryEmployeeOrgan(sysUser.getId());
|
|
|
if(CollectionUtils.isEmpty(organizations)){
|
|
|
return succeed(Collections.emptyList());
|
|
|
}
|