|
@@ -177,7 +177,7 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
for(CourseChapterVo chapterVo : chapterList){
|
|
|
totalTime=totalTime.add(new BigDecimal(courseMenuMapper.countChapterTotalTime(chapterVo.getChapterId())));
|
|
|
}
|
|
|
- goodsVo.setClassHours(totalTime.divide(new BigDecimal(45*60)));
|
|
|
+ goodsVo.setClassHours(totalTime.divide(new BigDecimal(45*60),BigDecimal.ROUND_HALF_UP));
|
|
|
UserVo userVo = iUserService.queryById(bo.getUserId());
|
|
|
if(Validator.isNotEmpty(goodsVo.getCertificateTpId())){
|
|
|
// String[] s = goodsVo.getCertificateIds().split(",");
|