Bladeren bron

班级树

大数据与最优化研究所 4 maanden geleden
bovenliggende
commit
1161948699

+ 1 - 1
src/main/java/com/xjrsoft/module/student/controller/StudentManagerController.java

@@ -212,7 +212,7 @@ public class StudentManagerController {
     @ApiOperation(value = "学生部门专业年级班级树")
     @SaCheckPermission("studentmanager:detail")
     public RT<List<BaseDepMajorGradeClassStudenTreeVo>> tree2() {
-        return RT.ok(studentManagerService.tree2());
+        return RT.ok(studentManagerService.deptMajorGradeClassTree());
     }
 
 

+ 2 - 1
src/main/java/com/xjrsoft/module/student/service/IStudentManagerService.java

@@ -65,5 +65,6 @@ public interface IStudentManagerService extends MPJBaseService<BaseStudentUser>
 
     Boolean uploadImage(Long userId, MultipartFile file) throws IOException;
 
-    List<BaseDepMajorGradeClassStudenTreeVo> tree2();
+     List<BaseDepMajorGradeClassStudenTreeVo> deptMajorGradeClassTree();
+
 }

+ 3 - 2
src/main/java/com/xjrsoft/module/student/service/impl/StudentManagerServiceImpl.java

@@ -990,7 +990,7 @@ public class StudentManagerServiceImpl extends MPJBaseServiceImpl<BaseStudentUse
     }
 
     @Override
-    public List<BaseDepMajorGradeClassStudenTreeVo> tree2() {
+    public List<BaseDepMajorGradeClassStudenTreeVo> deptMajorGradeClassTree() {
         List<BaseDepMajorGradeClassStudenTreeVo> voList = new ArrayList<>();
         MPJLambdaWrapper<BaseClass> baseClassMPJLambdaWrapper = new MPJLambdaWrapper<>();
         baseClassMPJLambdaWrapper
@@ -1048,7 +1048,8 @@ public class StudentManagerServiceImpl extends MPJBaseServiceImpl<BaseStudentUse
             }});
         });
 
-        return TreeUtil.build(voList);
+        List<BaseDepMajorGradeClassStudenTreeVo> treeVoList = TreeUtil.build(voList);
+        return treeVoList;
     }
 
     /**