|
|
@@ -382,7 +382,7 @@ public class StudentReportRecordController {
|
|
|
@SaCheckPermission("studentreportrecord:detail")
|
|
|
public RT<PageOutput<StudentReportRecordPlanPageVo>> planPage(@Valid StudentReportRecordPageDto dto){
|
|
|
List<String> roleList = StpUtil.getRoleList();
|
|
|
- if(roleList.size() == 2 && roleList.contains(RoleCodeEnum.TEACHER.getCode()) && roleList.contains(RoleCodeEnum.CLASSTE.getCode())){
|
|
|
+ if(roleList.contains(RoleCodeEnum.TEACHER.getCode()) && roleList.contains(RoleCodeEnum.CLASSTE.getCode())){
|
|
|
Long classId = classService.getIdByTeacherId(StpUtil.getLoginIdAsLong());
|
|
|
if(ObjectUtil.isNull(classId) && dto.getClassId() == null){
|
|
|
return RT.ok(new PageOutput<>());
|