mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-07 09:56:47 +08:00
调试修复课程状态
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user