|
@@ -5,6 +5,7 @@ import com.ym.mec.auth.api.entity.SysUser;
|
|
import com.ym.mec.biz.dal.dao.ClassGroupStudentMapperDao;
|
|
import com.ym.mec.biz.dal.dao.ClassGroupStudentMapperDao;
|
|
import com.ym.mec.biz.dal.dao.StudentDao;
|
|
import com.ym.mec.biz.dal.dao.StudentDao;
|
|
import com.ym.mec.biz.dal.dao.StudentRegistrationDao;
|
|
import com.ym.mec.biz.dal.dao.StudentRegistrationDao;
|
|
|
|
+import com.ym.mec.biz.dal.dao.SubjectDao;
|
|
import com.ym.mec.biz.dal.dto.BasicUserDto;
|
|
import com.ym.mec.biz.dal.dto.BasicUserDto;
|
|
import com.ym.mec.biz.dal.dto.CourseHomeworkWrapper;
|
|
import com.ym.mec.biz.dal.dto.CourseHomeworkWrapper;
|
|
import com.ym.mec.biz.dal.dto.StudentExercisesSituationDto;
|
|
import com.ym.mec.biz.dal.dto.StudentExercisesSituationDto;
|
|
@@ -57,6 +58,9 @@ public class ExtracurricularExercisesController extends BaseController {
|
|
@Autowired
|
|
@Autowired
|
|
private StudentDao studentDao;
|
|
private StudentDao studentDao;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private SubjectDao subjectDao;
|
|
|
|
+
|
|
@ApiOperation(value = "获取教师有服务指标的课程列表")
|
|
@ApiOperation(value = "获取教师有服务指标的课程列表")
|
|
@GetMapping("/queryTeacherServeHomeworkDetail")
|
|
@GetMapping("/queryTeacherServeHomeworkDetail")
|
|
public HttpResponseResult queryTeacherServeHomeworkDetail(TeacherServeHomeworkQueryInfo queryInfo) {
|
|
public HttpResponseResult queryTeacherServeHomeworkDetail(TeacherServeHomeworkQueryInfo queryInfo) {
|
|
@@ -222,7 +226,10 @@ public class ExtracurricularExercisesController extends BaseController {
|
|
List<ClassGroup> classGroups = classGroupStudentMapperDao.getStudentClassGroupWithTeacher(studentIds, sysUser.getId(), musicGroupId);
|
|
List<ClassGroup> classGroups = classGroupStudentMapperDao.getStudentClassGroupWithTeacher(studentIds, sysUser.getId(), musicGroupId);
|
|
result.put("classGroups", classGroups);
|
|
result.put("classGroups", classGroups);
|
|
|
|
|
|
- List<Subject> studentSubjects = studentDao.getStudentSubjects(studentIds);
|
|
|
|
|
|
+// List<Subject> studentSubjects = studentDao.getStudentSubjects(studentIds);
|
|
|
|
+// result.put("subjects", studentSubjects);
|
|
|
|
+ List<Integer> subjectIds = dontServeStudents.stream().map(BasicUserDto::getSubjectId).collect(Collectors.toList());
|
|
|
|
+ List<Subject> studentSubjects = subjectDao.findBySubjectIds(subjectIds);
|
|
result.put("subjects", studentSubjects);
|
|
result.put("subjects", studentSubjects);
|
|
return succeed(result);
|
|
return succeed(result);
|
|
}
|
|
}
|