|
@@ -983,19 +983,21 @@ public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> impleme
|
|
|
continue;
|
|
continue;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- Long secLong = 0L;
|
|
|
|
|
- Long studyLong = 0L;
|
|
|
|
|
|
|
+// Long secLong = 0L;
|
|
|
|
|
+// Long studyLong = 0L;
|
|
|
SubjectStudyRecordQueryBo subjectStudyRecordQueryBo = new SubjectStudyRecordQueryBo();
|
|
SubjectStudyRecordQueryBo subjectStudyRecordQueryBo = new SubjectStudyRecordQueryBo();
|
|
|
subjectStudyRecordQueryBo.setGoodsId(goodsUserVo.getGoodsId());
|
|
subjectStudyRecordQueryBo.setGoodsId(goodsUserVo.getGoodsId());
|
|
|
subjectStudyRecordQueryBo.setUserId(bo.getUserId());
|
|
subjectStudyRecordQueryBo.setUserId(bo.getUserId());
|
|
|
subjectStudyRecordQueryBo.setGradeId(goodsUserVo.getGradeId());
|
|
subjectStudyRecordQueryBo.setGradeId(goodsUserVo.getGradeId());
|
|
|
subjectStudyRecordQueryBo.setOrderGoodsId(goodsUserVo.getOrderGoodsId());
|
|
subjectStudyRecordQueryBo.setOrderGoodsId(goodsUserVo.getOrderGoodsId());
|
|
|
- List<SubjectStudyRecordVo> subjectStudyRecordVos = iUserStudyRecordService.listDangAnSubject(subjectStudyRecordQueryBo);
|
|
|
|
|
- for (SubjectStudyRecordVo subjectStudyRecordVo : subjectStudyRecordVos) {
|
|
|
|
|
- secLong = new BigDecimal(secLong.toString()).add(new BigDecimal(subjectStudyRecordVo.getSectionNum().toString())).longValue();
|
|
|
|
|
- studyLong = new BigDecimal(studyLong.toString()).add(new BigDecimal(subjectStudyRecordVo.getRecordNum().toString())).longValue();
|
|
|
|
|
- }
|
|
|
|
|
- goodsUserVo.setSecAllNum(secLong);
|
|
|
|
|
|
|
+// List<SubjectStudyRecordVo> subjectStudyRecordVos = iUserStudyRecordService.listDangAnSubject(subjectStudyRecordQueryBo);
|
|
|
|
|
+// for (SubjectStudyRecordVo subjectStudyRecordVo : subjectStudyRecordVos) {
|
|
|
|
|
+// secLong = new BigDecimal(secLong.toString()).add(new BigDecimal(subjectStudyRecordVo.getSectionNum().toString())).longValue();
|
|
|
|
|
+// studyLong = new BigDecimal(studyLong.toString()).add(new BigDecimal(subjectStudyRecordVo.getRecordNum().toString())).longValue();
|
|
|
|
|
+// }
|
|
|
|
|
+ goodsUserVo.setSecAllNum(goodsUserVo.getCourseNum());
|
|
|
|
|
+ //已学节
|
|
|
|
|
+ Long studyLong = baseMapper.getStudyCourseNum(subjectStudyRecordQueryBo);
|
|
|
goodsUserVo.setStuAllNum(studyLong);
|
|
goodsUserVo.setStuAllNum(studyLong);
|
|
|
goodsUserVo.setExamNum(classGradeVo.getExamNum());
|
|
goodsUserVo.setExamNum(classGradeVo.getExamNum());
|
|
|
goodsUserVo.setRecordNum(classGradeVo.getRecordNum());
|
|
goodsUserVo.setRecordNum(classGradeVo.getRecordNum());
|