调试修复课程状态

This commit is contained in:
670788339
2024-04-24 18:28:56 +08:00
parent 57a6bf6fa4
commit 52adf9d3fb

View File

@@ -115,18 +115,22 @@ public class StudyExamServiceImpl implements IStudyExamService{
List<StudyExam> list = null;
try {
list = dao.getAllStudyExamByStudyId();
log.info("list.size = " + list.size() + ",0 = " + list.get(0));
log.info("------------list.size = " + list.size() + ",0 = " + list.get(0));
} catch (Exception exception) {
exception.printStackTrace();
}
QueryBuilder builder = QueryBuilder.from(StudyExam.class);
builder.addGroupBy("studyId");
List<StudyExam> list1 = dao.findList(builder.builder());
try {
QueryBuilder builder = QueryBuilder.from(StudyExam.class);
builder.addGroupBy("studyId");
List<StudyExam> list1 = dao.findList(builder.builder());
log.info("------------QueryBuilder list1.size = " + list1.size() + ",0 = " + list1.get(0));
} catch (Exception exception) {
exception.printStackTrace();
}
log.info("QueryBuilder list1.size = " + list1.size() + ",0 = " + list1.get(0));
for(StudyExam item : list){
log.info("CourseId = " + item.getCourseId() + " , StudyId = " + item.getStudyId() + " , StudentId = " + item.getStudentId());
log.info("-----------------CourseId = " + item.getCourseId() + " , StudyId = " + item.getStudyId() + " , StudentId = " + item.getStudentId());
int totalContent = courseContentDao.getCount(item.getCourseId());
scDao.finishCheck(item.getStudyId(),item.getCourseId(),totalContent);
}