|
@@ -420,11 +420,15 @@ public class StudentManageController extends BaseController {
|
|
|
@GetMapping("/getCloudStudyStudentOverView")
|
|
|
@PreAuthorize("@pcs.hasPermissions('studentManage/getCloudStudyStudentOverView')")
|
|
|
public HttpResponseResult<CloudStudyStudentDataDto> getCloudStudyStudentOverView(String organIds) throws Exception {
|
|
|
+ SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
+ if (sysUser == null) {
|
|
|
+ return failed("用户信息获取失败");
|
|
|
+ }
|
|
|
List<Integer> organIdsList = new ArrayList<>();
|
|
|
if(StringUtils.isNotBlank(organIds)){
|
|
|
organIdsList = Arrays.stream(organIds.split(",")).map(id->Integer.valueOf(id)).collect(Collectors.toList());
|
|
|
}else{
|
|
|
- List<Organization> organizations = organizationService.queryEmployeeOrgan();
|
|
|
+ List<Organization> organizations = organizationService.queryEmployeeOrgan(sysUser.getId());
|
|
|
if(CollectionUtils.isEmpty(organizations)){
|
|
|
return succeed();
|
|
|
}
|