he2802 před 1 rokem
rodič
revize
ed3089d12a

+ 4 - 3
zhongzheng-system/src/main/java/com/zhongzheng/modules/grade/service/impl/ClassGradeUserServiceImpl.java

@@ -4395,11 +4395,12 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
             for(CourseChapterVo chapterVo : chapterList){
                 DangAnCertificateItemExportVo itemExportVo = BeanUtil.toBean(vo, DangAnCertificateItemExportVo.class);
                 if(Validator.isEmpty(chapterVo.getCommonSign())||chapterVo.getCommonSign()==0){
-                    totalTime=totalTime.add(new BigDecimal(courseMenuMapper.countChapterTotalTime(chapterVo.getChapterId())));
+                    totalTime=new BigDecimal(courseMenuMapper.countChapterTotalTime(chapterVo.getChapterId()));
+                    itemExportVo.setChapterName(chapterVo.getName()+"(学时:"+totalTime.divide(new BigDecimal(45*60),BigDecimal.ROUND_HALF_UP)+")");
                 }else if(chapterVo.getCommonSign()==1){
-                    publicTotalTime=publicTotalTime.add(new BigDecimal(courseMenuMapper.countChapterTotalTime(chapterVo.getChapterId())));
+                    publicTotalTime=new BigDecimal(courseMenuMapper.countChapterTotalTime(chapterVo.getChapterId()));
+                    itemExportVo.setChapterName(chapterVo.getName()+"(学时:"+publicTotalTime.divide(new BigDecimal(45*60),BigDecimal.ROUND_HALF_UP)+")");
                 }
-                itemExportVo.setChapterName(chapterVo.getName()+"(学时:"+totalTime.divide(new BigDecimal(45*60),BigDecimal.ROUND_HALF_UP)+")");
                 exportItemList.add(itemExportVo);
             }
             ExcelUtil<DangAnCertificateItemExportVo> util = new ExcelUtil<DangAnCertificateItemExportVo>(DangAnCertificateItemExportVo.class);

+ 0 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/grade/vo/DangAnLiveListExportVo.java

@@ -54,6 +54,5 @@ public class DangAnLiveListExportVo {
 	@Excel(name = "总进度(节)")
 	private String process;
 
-	@Excel(name = "视频总进度")
 	private String videoProcess;
 }