mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-09 10:56:50 +08:00
调试修复课程状态
This commit is contained in:
@@ -115,18 +115,22 @@ public class StudyExamServiceImpl implements IStudyExamService{
|
|||||||
List<StudyExam> list = null;
|
List<StudyExam> list = null;
|
||||||
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));
|
||||||
} catch (Exception exception) {
|
} catch (Exception exception) {
|
||||||
exception.printStackTrace();
|
exception.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
QueryBuilder builder = QueryBuilder.from(StudyExam.class);
|
try {
|
||||||
builder.addGroupBy("studyId");
|
QueryBuilder builder = QueryBuilder.from(StudyExam.class);
|
||||||
List<StudyExam> list1 = dao.findList(builder.builder());
|
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){
|
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());
|
int totalContent = courseContentDao.getCount(item.getCourseId());
|
||||||
scDao.finishCheck(item.getStudyId(),item.getCourseId(),totalContent);
|
scDao.finishCheck(item.getStudyId(),item.getCourseId(),totalContent);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user