浏览代码

新生报到功能

dzx 6 月之前
父节点
当前提交
f7f0593816
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/xjrsoft/module/student/controller/BaseNewStudentController.java

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

@@ -95,7 +95,7 @@ public class BaseNewStudentController {
     @SaCheckPermission("basenewstudent:detail")
     public RT<PageOutput<BaseNewStudentPageVo>> reportPage(@Valid BaseNewStudentPageDto dto){
         List<String> roleList = StpUtil.getRoleList();
-        if(roleList.size() == 2 && roleList.contains("CLASSTE") && roleList.contains("TEACHER") && dto.getTeacherId() == null){
+        if(roleList.contains("CLASSTE") && roleList.contains("TEACHER") && dto.getTeacherId() == null){
             dto.setTeacherId(StpUtil.getLoginIdAsLong());
         }
         Page<BaseNewStudentPageVo> page = baseNewStudentService.getPage(new Page<>(dto.getLimit(), dto.getSize()), dto);