he2802 2 years ago
parent
commit
3281c42cae

+ 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.setGoodsId(userCertificateVo.getGoodsId());
         queryBo.setGradeId(userCertificateVo.getGradeId());
         queryBo.setGradeId(userCertificateVo.getGradeId());
         List<CourseChapterVo> chapterList =  iClassGradeUserService.findChapterList(queryBo);
         List<CourseChapterVo> chapterList =  iClassGradeUserService.findChapterList(queryBo);
-        BigDecimal totalTime = new BigDecimal(0);
         for(CourseChapterVo chapterVo : chapterList){
         for(CourseChapterVo chapterVo : chapterList){
             Long secTotalTime = courseMenuMapper.countChapterTotalTime(chapterVo.getChapterId());
             Long secTotalTime = courseMenuMapper.countChapterTotalTime(chapterVo.getChapterId());
             chapterVo.setTotalTime(secTotalTime);
             chapterVo.setTotalTime(secTotalTime);
-            totalTime=totalTime.add(new BigDecimal(secTotalTime));
         }
         }
-   //     userCertificateVo.setClassHours(totalTime.divide(new BigDecimal(45*60),BigDecimal.ROUND_HALF_UP));
         userCertificateVo.setChapterList(chapterList);
         userCertificateVo.setChapterList(chapterList);
         return userCertificateVo;
         return userCertificateVo;
     }
     }