|
|
@@ -365,7 +365,11 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
sex = "女";
|
|
|
}
|
|
|
vo.setSex(sex);
|
|
|
- vo.setClassHours(goodsVo.getClassHours().setScale( 0, BigDecimal.ROUND_HALF_UP )+"");
|
|
|
+ Integer totalHour = 0;
|
|
|
+ for(CourseChapterVo chapterVo : chapterList){
|
|
|
+ totalHour+=chapterVo.getSectionNum();
|
|
|
+ }
|
|
|
+ vo.setClassHours(totalHour+"");
|
|
|
vo.setDateY(nowDate.substring(0, 4));
|
|
|
vo.setDateM(nowDate.substring(5, 7));
|
|
|
vo.setDateD(nowDate.substring(8, 10));
|
|
|
@@ -395,7 +399,11 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
sex = "女";
|
|
|
}
|
|
|
vo.setSex(sex);
|
|
|
- vo.setClassHours(goodsVo.getClassHours().setScale( 0, BigDecimal.ROUND_HALF_UP )+"");
|
|
|
+ Integer totalHour = 0;
|
|
|
+ for(CourseChapterVo chapterVo : chapterList){
|
|
|
+ totalHour+=chapterVo.getSectionNum();
|
|
|
+ }
|
|
|
+ vo.setClassHours(totalHour+"");
|
|
|
vo.setDateY(nowDate.substring(0, 4));
|
|
|
vo.setDateM(nowDate.substring(5, 7));
|
|
|
vo.setDateD(nowDate.substring(8, 10));
|
|
|
@@ -425,7 +433,11 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
sex = "女";
|
|
|
}
|
|
|
vo.setSex(sex);
|
|
|
- vo.setClassHours(goodsVo.getClassHours().setScale( 0, BigDecimal.ROUND_HALF_UP )+"");
|
|
|
+ Integer totalHour = 0;
|
|
|
+ for(CourseChapterVo chapterVo : chapterList){
|
|
|
+ totalHour+=chapterVo.getSectionNum();
|
|
|
+ }
|
|
|
+ vo.setClassHours(totalHour+"");
|
|
|
vo.setDateY(nowDate.substring(0, 4));
|
|
|
vo.setDateM(nowDate.substring(5, 7));
|
|
|
vo.setDateD(nowDate.substring(8, 10));
|
|
|
@@ -455,7 +467,11 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
sex = "女";
|
|
|
}
|
|
|
vo.setSex(sex);
|
|
|
- vo.setClassHours(goodsVo.getClassHours().setScale( 0, BigDecimal.ROUND_HALF_UP )+"");
|
|
|
+ Integer totalHour = 0;
|
|
|
+ for(CourseChapterVo chapterVo : chapterList){
|
|
|
+ totalHour+=chapterVo.getSectionNum();
|
|
|
+ }
|
|
|
+ vo.setClassHours(totalHour+"");
|
|
|
vo.setDateY(nowDate.substring(0, 4));
|
|
|
vo.setDateM(nowDate.substring(5, 7));
|
|
|
vo.setDateD(nowDate.substring(8, 10));
|
|
|
@@ -485,7 +501,11 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
sex = "女";
|
|
|
}
|
|
|
vo.setSex(sex);
|
|
|
- vo.setClassHours(goodsVo.getClassHours().setScale( 0, BigDecimal.ROUND_HALF_UP )+"");
|
|
|
+ Integer totalHour = 0;
|
|
|
+ for(CourseChapterVo chapterVo : chapterList){
|
|
|
+ totalHour+=chapterVo.getSectionNum();
|
|
|
+ }
|
|
|
+ vo.setClassHours(totalHour+"");
|
|
|
vo.setDateY(nowDate.substring(0, 4));
|
|
|
vo.setDateM(nowDate.substring(5, 7));
|
|
|
vo.setDateD(nowDate.substring(8, 10));
|
|
|
@@ -515,7 +535,12 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
sex = "女";
|
|
|
}
|
|
|
vo.setSex(sex);
|
|
|
- vo.setClassHours(goodsVo.getClassHours().setScale( 0, BigDecimal.ROUND_HALF_UP )+"");
|
|
|
+ Integer totalHour = 0;
|
|
|
+ for(CourseChapterVo chapterVo : chapterList){
|
|
|
+ totalHour+=chapterVo.getSectionNum();
|
|
|
+ }
|
|
|
+ vo.setClassHours(totalHour+"");
|
|
|
+ // vo.setClassHours(goodsVo.getClassHours().setScale( 0, BigDecimal.ROUND_HALF_UP )+"");
|
|
|
vo.setDateY(nowDate.substring(0, 4));
|
|
|
vo.setDateM(nowDate.substring(5, 7));
|
|
|
vo.setDateD(nowDate.substring(8, 10));
|