|
|
@@ -1,6 +1,7 @@
|
|
|
package com.xjrsoft.module.student.controller;
|
|
|
|
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
+import cn.dev33.satoken.stp.StpUtil;
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
@@ -17,6 +18,7 @@ import com.xjrsoft.common.utils.VoToColumnUtil;
|
|
|
import com.xjrsoft.module.base.entity.BaseClass;
|
|
|
import com.xjrsoft.module.base.entity.BaseGrade;
|
|
|
import com.xjrsoft.module.base.entity.BaseMajorSet;
|
|
|
+import com.xjrsoft.module.base.mapper.BaseClassMapper;
|
|
|
import com.xjrsoft.module.organization.entity.Department;
|
|
|
import com.xjrsoft.module.student.dto.AddBaseStudentCadreDto;
|
|
|
import com.xjrsoft.module.student.dto.BaseStudentCadrePageDto;
|
|
|
@@ -63,6 +65,21 @@ public class BaseStudentCadreController {
|
|
|
|
|
|
private final IBaseStudentCadreService baseStudentCadreService;
|
|
|
private final BaseStudentSchoolRollMapper baseStudentSchoolRollMapper;
|
|
|
+ private final BaseClassMapper baseClassMapper;
|
|
|
+
|
|
|
+ @GetMapping(value = "/classList")
|
|
|
+ @ApiOperation(value="获取班主任管理的班级")
|
|
|
+ @SaCheckPermission("basestudentcadre:detail")
|
|
|
+ public RT<List<BaseClass>> classList(){
|
|
|
+ List<BaseClass> pageOutput = baseClassMapper.selectJoinList(BaseClass.class, new MPJLambdaWrapper<BaseClass>()
|
|
|
+ .disableSubLogicDel()
|
|
|
+ .eq(BaseClass::getTeacherId, StpUtil.getLoginIdAsLong())
|
|
|
+ );
|
|
|
+
|
|
|
+ return RT.ok(pageOutput);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
@GetMapping(value = "/page")
|
|
|
@ApiOperation(value="学生干部管理列表(分页)")
|