diff --git a/servers/boe-server-all/src/main/java/com/xboe/school/study/service/impl/StudyExamServiceImpl.java b/servers/boe-server-all/src/main/java/com/xboe/school/study/service/impl/StudyExamServiceImpl.java index 8d3bf4bd..4b991555 100644 --- a/servers/boe-server-all/src/main/java/com/xboe/school/study/service/impl/StudyExamServiceImpl.java +++ b/servers/boe-server-all/src/main/java/com/xboe/school/study/service/impl/StudyExamServiceImpl.java @@ -116,6 +116,12 @@ public class StudyExamServiceImpl implements IStudyExamService{ try { list = dao.getAllStudyExamByStudyId(); 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()); + scDao.finishCheck(item.getStudyId(),item.getCourseId(),totalContent); + } } catch (Exception exception) { exception.printStackTrace(); } @@ -125,15 +131,17 @@ public class StudyExamServiceImpl implements IStudyExamService{ builder.addGroupBy("studyId"); List list1 = dao.findList(builder.builder()); log.info("------------QueryBuilder list1.size = " + list1.size() + ",0 = " + list1.get(0)); + + for(StudyExam item : list1){ + log.info("-----------------CourseId = " + item.getCourseId() + " , StudyId = " + item.getStudyId() + " , StudentId = " + item.getStudentId()); + int totalContent = courseContentDao.getCount(item.getCourseId()); + scDao.finishCheck(item.getStudyId(),item.getCourseId(),totalContent); + } } catch (Exception exception) { exception.printStackTrace(); } - for(StudyExam item : list){ - log.info("-----------------CourseId = " + item.getCourseId() + " , StudyId = " + item.getStudyId() + " , StudentId = " + item.getStudentId()); - int totalContent = courseContentDao.getCount(item.getCourseId()); - scDao.finishCheck(item.getStudyId(),item.getCourseId(),totalContent); - } + }