|
@@ -205,6 +205,7 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
bo.setPageSize(null);
|
|
bo.setPageSize(null);
|
|
|
bo.setPageNum(null);
|
|
bo.setPageNum(null);
|
|
|
GoodsVo goodsVo = iGoodsService.selectDetail(bo.getGoodsId());
|
|
GoodsVo goodsVo = iGoodsService.selectDetail(bo.getGoodsId());
|
|
|
|
|
+ goodsVo.setSelfClassHours(goodsVo.getClassHours());
|
|
|
//获取培训开始时间
|
|
//获取培训开始时间
|
|
|
UserStudyRecordQueryBo studyRecordQueryBo = new UserStudyRecordQueryBo();
|
|
UserStudyRecordQueryBo studyRecordQueryBo = new UserStudyRecordQueryBo();
|
|
|
studyRecordQueryBo.setUserId(bo.getUserId());
|
|
studyRecordQueryBo.setUserId(bo.getUserId());
|
|
@@ -371,8 +372,8 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
for(CourseChapterVo chapterVo : chapterList){
|
|
for(CourseChapterVo chapterVo : chapterList){
|
|
|
totalHour+=chapterVo.getSectionNum();
|
|
totalHour+=chapterVo.getSectionNum();
|
|
|
}
|
|
}
|
|
|
- goodsVo.setClassHours(new BigDecimal(totalHour));
|
|
|
|
|
- vo.setClassHours(totalHour+"");
|
|
|
|
|
|
|
+ goodsVo.setClassHours(goodsVo.getSelfClassHours());
|
|
|
|
|
+ vo.setClassHours(goodsVo.getSelfClassHours()+"");
|
|
|
vo.setDateY(nowDate.substring(0, 4));
|
|
vo.setDateY(nowDate.substring(0, 4));
|
|
|
vo.setDateM(nowDate.substring(5, 7));
|
|
vo.setDateM(nowDate.substring(5, 7));
|
|
|
vo.setDateD(nowDate.substring(8, 10));
|
|
vo.setDateD(nowDate.substring(8, 10));
|
|
@@ -406,8 +407,8 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
for(CourseChapterVo chapterVo : chapterList){
|
|
for(CourseChapterVo chapterVo : chapterList){
|
|
|
totalHour+=chapterVo.getSectionNum();
|
|
totalHour+=chapterVo.getSectionNum();
|
|
|
}
|
|
}
|
|
|
- goodsVo.setClassHours(new BigDecimal(totalHour));
|
|
|
|
|
- vo.setClassHours(totalHour+"");
|
|
|
|
|
|
|
+ goodsVo.setClassHours(goodsVo.getSelfClassHours());
|
|
|
|
|
+ vo.setClassHours(goodsVo.getSelfClassHours()+"");
|
|
|
vo.setDateY(nowDate.substring(0, 4));
|
|
vo.setDateY(nowDate.substring(0, 4));
|
|
|
vo.setDateM(nowDate.substring(5, 7));
|
|
vo.setDateM(nowDate.substring(5, 7));
|
|
|
vo.setDateD(nowDate.substring(8, 10));
|
|
vo.setDateD(nowDate.substring(8, 10));
|
|
@@ -441,8 +442,8 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
for(CourseChapterVo chapterVo : chapterList){
|
|
for(CourseChapterVo chapterVo : chapterList){
|
|
|
totalHour+=chapterVo.getSectionNum();
|
|
totalHour+=chapterVo.getSectionNum();
|
|
|
}
|
|
}
|
|
|
- goodsVo.setClassHours(new BigDecimal(totalHour));
|
|
|
|
|
- vo.setClassHours(totalHour+"");
|
|
|
|
|
|
|
+ goodsVo.setClassHours(goodsVo.getSelfClassHours());
|
|
|
|
|
+ vo.setClassHours(goodsVo.getSelfClassHours()+"");
|
|
|
vo.setDateY(nowDate.substring(0, 4));
|
|
vo.setDateY(nowDate.substring(0, 4));
|
|
|
vo.setDateM(nowDate.substring(5, 7));
|
|
vo.setDateM(nowDate.substring(5, 7));
|
|
|
vo.setDateD(nowDate.substring(8, 10));
|
|
vo.setDateD(nowDate.substring(8, 10));
|
|
@@ -476,8 +477,8 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
for(CourseChapterVo chapterVo : chapterList){
|
|
for(CourseChapterVo chapterVo : chapterList){
|
|
|
totalHour+=chapterVo.getSectionNum();
|
|
totalHour+=chapterVo.getSectionNum();
|
|
|
}
|
|
}
|
|
|
- goodsVo.setClassHours(new BigDecimal(totalHour));
|
|
|
|
|
- vo.setClassHours(totalHour+"");
|
|
|
|
|
|
|
+ goodsVo.setClassHours(goodsVo.getSelfClassHours());
|
|
|
|
|
+ vo.setClassHours(goodsVo.getSelfClassHours()+"");
|
|
|
vo.setDateY(nowDate.substring(0, 4));
|
|
vo.setDateY(nowDate.substring(0, 4));
|
|
|
vo.setDateM(nowDate.substring(5, 7));
|
|
vo.setDateM(nowDate.substring(5, 7));
|
|
|
vo.setDateD(nowDate.substring(8, 10));
|
|
vo.setDateD(nowDate.substring(8, 10));
|
|
@@ -511,8 +512,8 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
for(CourseChapterVo chapterVo : chapterList){
|
|
for(CourseChapterVo chapterVo : chapterList){
|
|
|
totalHour+=chapterVo.getSectionNum();
|
|
totalHour+=chapterVo.getSectionNum();
|
|
|
}
|
|
}
|
|
|
- goodsVo.setClassHours(new BigDecimal(totalHour));
|
|
|
|
|
- vo.setClassHours(totalHour+"");
|
|
|
|
|
|
|
+ goodsVo.setClassHours(goodsVo.getSelfClassHours());
|
|
|
|
|
+ vo.setClassHours(goodsVo.getSelfClassHours()+"");
|
|
|
vo.setDateY(nowDate.substring(0, 4));
|
|
vo.setDateY(nowDate.substring(0, 4));
|
|
|
vo.setDateM(nowDate.substring(5, 7));
|
|
vo.setDateM(nowDate.substring(5, 7));
|
|
|
vo.setDateD(nowDate.substring(8, 10));
|
|
vo.setDateD(nowDate.substring(8, 10));
|
|
@@ -546,8 +547,8 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
for(CourseChapterVo chapterVo : chapterList){
|
|
for(CourseChapterVo chapterVo : chapterList){
|
|
|
totalHour+=chapterVo.getSectionNum();
|
|
totalHour+=chapterVo.getSectionNum();
|
|
|
}
|
|
}
|
|
|
- goodsVo.setClassHours(new BigDecimal(totalHour));
|
|
|
|
|
- vo.setClassHours(totalHour+"");
|
|
|
|
|
|
|
+ goodsVo.setClassHours(goodsVo.getSelfClassHours());
|
|
|
|
|
+ vo.setClassHours(goodsVo.getSelfClassHours()+"");
|
|
|
// vo.setClassHours(goodsVo.getClassHours().setScale( 0, BigDecimal.ROUND_HALF_UP )+"");
|
|
// vo.setClassHours(goodsVo.getClassHours().setScale( 0, BigDecimal.ROUND_HALF_UP )+"");
|
|
|
vo.setDateY(nowDate.substring(0, 4));
|
|
vo.setDateY(nowDate.substring(0, 4));
|
|
|
vo.setDateM(nowDate.substring(5, 7));
|
|
vo.setDateM(nowDate.substring(5, 7));
|