he2802 2 anos atrás
pai
commit
b5aa6d585f

+ 1 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/base/service/impl/CertificateTpServiceImpl.java

@@ -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(",");