|
@@ -7,6 +7,7 @@ import com.zhongzheng.modules.grade.bo.UserPeriodQueryBo;
|
|
import com.zhongzheng.modules.grade.service.IUserPeriodStatusService;
|
|
import com.zhongzheng.modules.grade.service.IUserPeriodStatusService;
|
|
import com.zhongzheng.modules.grade.vo.*;
|
|
import com.zhongzheng.modules.grade.vo.*;
|
|
import com.zhongzheng.modules.user.bo.SubjectStudyRecordQueryBo;
|
|
import com.zhongzheng.modules.user.bo.SubjectStudyRecordQueryBo;
|
|
|
|
+import com.zhongzheng.modules.user.domain.User;
|
|
import com.zhongzheng.modules.user.service.IUserStudyRecordService;
|
|
import com.zhongzheng.modules.user.service.IUserStudyRecordService;
|
|
import com.zhongzheng.modules.user.vo.SubjectStudyRecordVo;
|
|
import com.zhongzheng.modules.user.vo.SubjectStudyRecordVo;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -183,20 +184,10 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
public List<ClassPeriodVo> listPeriodAudit(ClassGradeUserQueryBo bo) {
|
|
public List<ClassPeriodVo> listPeriodAudit(ClassGradeUserQueryBo bo) {
|
|
List<ClassPeriodVo> classPeriodVos = baseMapper.listPeriodAudit(bo);
|
|
List<ClassPeriodVo> classPeriodVos = baseMapper.listPeriodAudit(bo);
|
|
classPeriodVos.addAll(baseMapper.listPeriodAuditSection(bo));
|
|
classPeriodVos.addAll(baseMapper.listPeriodAuditSection(bo));
|
|
- classPeriodVos.addAll(baseMapper.listPeriodAuditExam(bo));
|
|
|
|
for (ClassPeriodVo classPeriodVo : classPeriodVos) {
|
|
for (ClassPeriodVo classPeriodVo : classPeriodVos) {
|
|
if (classPeriodVo.getType() == 1){
|
|
if (classPeriodVo.getType() == 1){
|
|
List<ClassPeriodChapterVo> classPeriodChapterVos = baseMapper.listperiodChapter(classPeriodVo.getId(), bo.getGoodsId(),classPeriodVo.getCourseId(), bo.getUserId());
|
|
List<ClassPeriodChapterVo> classPeriodChapterVos = baseMapper.listperiodChapter(classPeriodVo.getId(), bo.getGoodsId(),classPeriodVo.getCourseId(), bo.getUserId());
|
|
- classPeriodChapterVos.addAll(baseMapper.listperiodExam(classPeriodVo.getId(), bo.getGoodsId(),classPeriodVo.getCourseId(), bo.getUserId()));
|
|
|
|
for (ClassPeriodChapterVo classPeriodChapterVo : classPeriodChapterVos) {
|
|
for (ClassPeriodChapterVo classPeriodChapterVo : classPeriodChapterVos) {
|
|
- if (classPeriodChapterVo.getType() == 4){
|
|
|
|
- UserPeriodQueryBo userPeriodQueryBo = new UserPeriodQueryBo();
|
|
|
|
- userPeriodQueryBo.setExamId(classPeriodChapterVo.getId());
|
|
|
|
- userPeriodQueryBo.setCourseId(classPeriodChapterVo.getCourseId());
|
|
|
|
- userPeriodQueryBo.setGoodsId(bo.getGoodsId());
|
|
|
|
- userPeriodQueryBo.setUserId(classPeriodChapterVo.getUserId());
|
|
|
|
- classPeriodChapterVo.setUserPeriodStatusVos(userPeriodStatusService.selectPeriodStatus(userPeriodQueryBo));
|
|
|
|
- }
|
|
|
|
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());
|
|
for (ClassPeriodSectionVo classPeriodSectionVo : classPeriodSectionVos) {
|
|
for (ClassPeriodSectionVo classPeriodSectionVo : classPeriodSectionVos) {
|
|
@@ -209,6 +200,7 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
userPeriodQueryBo.setModuleId(classPeriodVo.getId());
|
|
userPeriodQueryBo.setModuleId(classPeriodVo.getId());
|
|
classPeriodSectionVo.setUserPeriodStatusVos(userPeriodStatusService.selectPeriodStatus(userPeriodQueryBo));
|
|
classPeriodSectionVo.setUserPeriodStatusVos(userPeriodStatusService.selectPeriodStatus(userPeriodQueryBo));
|
|
}
|
|
}
|
|
|
|
+ classPeriodSectionVos.addAll(baseMapper.listperiodExam(classPeriodVo.getId(), bo.getGoodsId(),classPeriodVo.getCourseId(), bo.getUserId()));
|
|
classPeriodChapterVo.setClassPeriodSectionList(classPeriodSectionVos);
|
|
classPeriodChapterVo.setClassPeriodSectionList(classPeriodSectionVos);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -247,14 +239,6 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
classPeriodVo.setUserPeriodStatusVos(userPeriodStatusService.selectPeriodStatus(userPeriodQueryBo));
|
|
classPeriodVo.setUserPeriodStatusVos(userPeriodStatusService.selectPeriodStatus(userPeriodQueryBo));
|
|
}
|
|
}
|
|
|
|
|
|
- if (classPeriodVo.getType() == 4){
|
|
|
|
- UserPeriodQueryBo userPeriodQueryBo = new UserPeriodQueryBo();
|
|
|
|
- userPeriodQueryBo.setExamId(classPeriodVo.getId());
|
|
|
|
- userPeriodQueryBo.setCourseId(classPeriodVo.getCourseId());
|
|
|
|
- userPeriodQueryBo.setGoodsId(bo.getGoodsId());
|
|
|
|
- userPeriodQueryBo.setUserId(classPeriodVo.getUserId());
|
|
|
|
- classPeriodVo.setUserPeriodStatusVos(userPeriodStatusService.selectPeriodStatus(userPeriodQueryBo));
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
return classPeriodVos;
|
|
return classPeriodVos;
|
|
}
|
|
}
|