mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-14 05:16:49 +08:00
调试修复课程状态
This commit is contained in:
@@ -112,7 +112,7 @@ public class StudyExamServiceImpl implements IStudyExamService{
|
||||
@Override
|
||||
public void correctStstus() {
|
||||
|
||||
List<StudyExam> list = null;
|
||||
/* List<StudyExam> list = null;
|
||||
try {
|
||||
list = dao.getAllStudyExamByStudyId();
|
||||
log.info("------------list.size = " + list.size() + ",0 = " + list.get(0));
|
||||
@@ -124,7 +124,7 @@ public class StudyExamServiceImpl implements IStudyExamService{
|
||||
}
|
||||
} catch (Exception exception) {
|
||||
exception.printStackTrace();
|
||||
}
|
||||
}*/
|
||||
|
||||
try {
|
||||
QueryBuilder builder = QueryBuilder.from(StudyExam.class);
|
||||
@@ -135,10 +135,13 @@ public class StudyExamServiceImpl implements IStudyExamService{
|
||||
for(StudyExam item : list1){
|
||||
log.info("-----------------CourseId = " + item.getCourseId() + " , StudyId = " + item.getStudyId() + " , StudentId = " + item.getStudentId());
|
||||
int totalContent = courseContentDao.getCount(item.getCourseId());
|
||||
log.info("----------准备判断进度-------totalContent = " + totalContent);
|
||||
scDao.finishCheck(item.getStudyId(),item.getCourseId(),totalContent);
|
||||
log.info("------判断进度完毕----------------------");
|
||||
}
|
||||
} catch (Exception exception) {
|
||||
exception.printStackTrace();
|
||||
log.info("------异常----------------------:" +exception.getMessage());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user