he2802 преди 2 години
родител
ревизия
3281c42cae
променени са 1 файла, в които са добавени 0 реда и са изтрити 3 реда
  1. 0 3
      zhongzheng-system/src/main/java/com/zhongzheng/modules/user/service/impl/UserCertificateServiceImpl.java

+ 0 - 3
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/service/impl/UserCertificateServiceImpl.java

@@ -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;
     }