|
@@ -85,13 +85,10 @@ public class UserCertificateServiceImpl extends ServiceImpl<UserCertificateMappe
|
|
|
queryBo.setGoodsId(userCertificateVo.getGoodsId());
|
|
|
queryBo.setGradeId(userCertificateVo.getGradeId());
|
|
|
List<CourseChapterVo> chapterList = iClassGradeUserService.findChapterList(queryBo);
|
|
|
- BigDecimal totalTime = new BigDecimal(0);
|
|
|
for(CourseChapterVo chapterVo : chapterList){
|
|
|
Long secTotalTime = courseMenuMapper.countChapterTotalTime(chapterVo.getChapterId());
|
|
|
chapterVo.setTotalTime(secTotalTime);
|
|
|
- totalTime=totalTime.add(new BigDecimal(secTotalTime));
|
|
|
}
|
|
|
- // userCertificateVo.setClassHours(totalTime.divide(new BigDecimal(45*60),BigDecimal.ROUND_HALF_UP));
|
|
|
userCertificateVo.setChapterList(chapterList);
|
|
|
return userCertificateVo;
|
|
|
}
|