|
|
@@ -222,7 +222,7 @@ public class StudentReportRecordController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- Long planId = planService.getEffectivePlanId(dto.getTeacherId());
|
|
|
+ Long planId = planService.getEffectivePlanId(dto.getTeacherId(), dto.getClassId());
|
|
|
dto.setStudentReportPlanId(planId);
|
|
|
|
|
|
StudentReportRecordStatisticsVo statisticsVo = studentReportRecordService.getClassStatistics(dto);
|
|
|
@@ -350,11 +350,13 @@ public class StudentReportRecordController {
|
|
|
List<String> roleList = StpUtil.getRoleList();
|
|
|
if(roleList.size() == 2 && roleList.contains(RoleCodeEnum.TEACHER.getCode()) && roleList.contains(RoleCodeEnum.CLASSTE.getCode())){
|
|
|
Long classId = classService.getIdByTeacherId(StpUtil.getLoginIdAsLong());
|
|
|
- if(ObjectUtil.isNull(classId)){
|
|
|
+ if(ObjectUtil.isNull(classId) && dto.getClassId() == null){
|
|
|
return RT.ok(new PageOutput<>());
|
|
|
}
|
|
|
- dto.setClassId(classId);
|
|
|
- Long planId = planService.getEffectivePlanId(dto.getTeacherId());
|
|
|
+ if(dto.getClassId() == null){
|
|
|
+ dto.setClassId(classId);
|
|
|
+ }
|
|
|
+ Long planId = planService.getEffectivePlanId(dto.getTeacherId(), dto.getClassId());
|
|
|
dto.setStudentReportPlanId(planId);
|
|
|
}
|
|
|
Page<StudentReportRecordPlanPageVo> planPage = studentReportRecordService.getPlanPage(new Page<>(dto.getLimit(), dto.getSize()), dto);
|