mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-11 20:06:51 +08:00
调试修复课程状态
This commit is contained in:
@@ -116,6 +116,12 @@ public class StudyExamServiceImpl implements IStudyExamService{
|
|||||||
try {
|
try {
|
||||||
list = dao.getAllStudyExamByStudyId();
|
list = dao.getAllStudyExamByStudyId();
|
||||||
log.info("------------list.size = " + list.size() + ",0 = " + list.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());
|
||||||
|
scDao.finishCheck(item.getStudyId(),item.getCourseId(),totalContent);
|
||||||
|
}
|
||||||
} catch (Exception exception) {
|
} catch (Exception exception) {
|
||||||
exception.printStackTrace();
|
exception.printStackTrace();
|
||||||
}
|
}
|
||||||
@@ -125,15 +131,17 @@ public class StudyExamServiceImpl implements IStudyExamService{
|
|||||||
builder.addGroupBy("studyId");
|
builder.addGroupBy("studyId");
|
||||||
List<StudyExam> list1 = dao.findList(builder.builder());
|
List<StudyExam> list1 = dao.findList(builder.builder());
|
||||||
log.info("------------QueryBuilder list1.size = " + list1.size() + ",0 = " + list1.get(0));
|
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) {
|
} catch (Exception exception) {
|
||||||
exception.printStackTrace();
|
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user