|
@@ -1022,9 +1022,11 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
//为模块搜索下面的章 和节 并搜索学时记录
|
|
//为模块搜索下面的章 和节 并搜索学时记录
|
|
if (classPeriodVo.getType() == 1){
|
|
if (classPeriodVo.getType() == 1){
|
|
List<ClassPeriodChapterVo> classPeriodChapterVos = baseMapper.listperiodChapter(classPeriodVo.getId(), bo.getGoodsId(),classPeriodVo.getCourseId(), bo.getUserId(),bo.getGradeId());
|
|
List<ClassPeriodChapterVo> classPeriodChapterVos = baseMapper.listperiodChapter(classPeriodVo.getId(), bo.getGoodsId(),classPeriodVo.getCourseId(), bo.getUserId(),bo.getGradeId());
|
|
|
|
+ Collections.sort(classPeriodChapterVos);
|
|
for (ClassPeriodChapterVo classPeriodChapterVo : classPeriodChapterVos) {
|
|
for (ClassPeriodChapterVo classPeriodChapterVo : classPeriodChapterVos) {
|
|
if (classPeriodChapterVo.getType() == 2) {
|
|
if (classPeriodChapterVo.getType() == 2) {
|
|
List<ClassPeriodSectionVo> classPeriodSectionVos = baseMapper.listPeriodSection(classPeriodChapterVo.getId(), bo.getGoodsId(), classPeriodVo.getCourseId(), bo.getUserId());
|
|
List<ClassPeriodSectionVo> classPeriodSectionVos = baseMapper.listPeriodSection(classPeriodChapterVo.getId(), bo.getGoodsId(), classPeriodVo.getCourseId(), bo.getUserId());
|
|
|
|
+ Collections.sort(classPeriodSectionVos);
|
|
classPeriodSectionVos.addAll(baseMapper.listperiodExam(classPeriodChapterVo.getId(), bo.getGoodsId(),classPeriodVo.getCourseId(), bo.getUserId(),classPeriodVo.getId()));
|
|
classPeriodSectionVos.addAll(baseMapper.listperiodExam(classPeriodChapterVo.getId(), bo.getGoodsId(),classPeriodVo.getCourseId(), bo.getUserId(),classPeriodVo.getId()));
|
|
for (ClassPeriodSectionVo classPeriodSectionVo : classPeriodSectionVos) {
|
|
for (ClassPeriodSectionVo classPeriodSectionVo : classPeriodSectionVos) {
|
|
if (classPeriodSectionVo.getType() == 3) {
|
|
if (classPeriodSectionVo.getType() == 3) {
|
|
@@ -1102,6 +1104,7 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
//为章搜索节记录和学时记录
|
|
//为章搜索节记录和学时记录
|
|
if (classPeriodVo.getType() == 2){
|
|
if (classPeriodVo.getType() == 2){
|
|
List<ClassPeriodSectionVo> classPeriodSectionVos = baseMapper.listPeriodSection(classPeriodVo.getId(), bo.getGoodsId(), classPeriodVo.getCourseId(), bo.getUserId());
|
|
List<ClassPeriodSectionVo> classPeriodSectionVos = baseMapper.listPeriodSection(classPeriodVo.getId(), bo.getGoodsId(), classPeriodVo.getCourseId(), bo.getUserId());
|
|
|
|
+ Collections.sort(classPeriodSectionVos);
|
|
for (ClassPeriodSectionVo classPeriodSectionVo : classPeriodSectionVos) {
|
|
for (ClassPeriodSectionVo classPeriodSectionVo : classPeriodSectionVos) {
|
|
UserPeriodQueryBo userPeriodQueryBo = new UserPeriodQueryBo();
|
|
UserPeriodQueryBo userPeriodQueryBo = new UserPeriodQueryBo();
|
|
userPeriodQueryBo.setSectionId(classPeriodSectionVo.getId());
|
|
userPeriodQueryBo.setSectionId(classPeriodSectionVo.getId());
|