Browse Source

feat:教务端学员云教练数据统计

Joburgess 3 years ago
parent
commit
03a1b15acd

+ 5 - 1
mec-web/src/main/java/com/ym/mec/web/controller/StudentManageController.java

@@ -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());
         }