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