调试修复课程状态

This commit is contained in:
670788339
2024-04-24 18:01:45 +08:00
parent dcecd846d6
commit 57a6bf6fa4

View File

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