|
@@ -1021,6 +1021,7 @@ public class ClassGradeServiceImpl extends ServiceImpl<ClassGradeMapper, ClassGr
|
|
|
}
|
|
|
//查找班级学员
|
|
|
List<ClassGradeStudentVo> classGradeStudentVos = baseMapper.listGradeAll(bo);
|
|
|
+ List<ClassGradeStudentAllExportVo> eList = new ArrayList<>();
|
|
|
//得到每个学员的课程学习记录
|
|
|
for (ClassGradeStudentVo classGradeStudentVo : classGradeStudentVos) {
|
|
|
Long secLong = 0L;
|
|
@@ -1062,8 +1063,42 @@ public class ClassGradeServiceImpl extends ServiceImpl<ClassGradeMapper, ClassGr
|
|
|
classGradeStudentVo.setTenantName(tenant.getTenantName());
|
|
|
}
|
|
|
}
|
|
|
+ ClassGradeStudentAllExportVo exportVo = BeanUtil.toBean(classGradeStudentVo,ClassGradeStudentAllExportVo.class);
|
|
|
+ exportVo.setHourStr((classGradeStudentVo.getRecordNum()+classGradeStudentVo.getStuAllNum())+"/"+(classGradeStudentVo.getExamNum()+classGradeStudentVo.getSecAllNum()));
|
|
|
+ exportVo.setServiceTimeStr(DateUtils.timestampToDateFormat(classGradeStudentVo.getServiceStartTime(),DateUtils.YYYY_MM_DD_HH_MM_SS)+"至"+DateUtils.timestampToDateFormat(classGradeStudentVo.getServiceEndTime(),DateUtils.YYYY_MM_DD_HH_MM_SS));
|
|
|
+ exportVo.setVideoStr(classGradeStudentVo.getStuAllNum()+"/"+classGradeStudentVo.getSecAllNum());
|
|
|
+ exportVo.setExamStr(classGradeStudentVo.getRecordNum()+"/"+classGradeStudentVo.getExamNum());
|
|
|
+ exportVo.setStudyStartStr(DateUtils.timestampToDateFormat(classGradeStudentVo.getStartTime(),DateUtils.YYYY_MM_DD_HH_MM_SS));
|
|
|
+ exportVo.setStudyEndStr(DateUtils.timestampToDateFormat(classGradeStudentVo.getEndTime(),DateUtils.YYYY_MM_DD_HH_MM_SS));
|
|
|
+ if(classGradeStudentVo.getPeriodStatus()==-1||classGradeStudentVo.getPeriodStatus()==0){
|
|
|
+ exportVo.setStudyStatusStr("未学完");
|
|
|
+ }else{
|
|
|
+ exportVo.setStudyStatusStr("已完成");
|
|
|
+ }
|
|
|
+ exportVo.setTotalStudyCount(classGradeStudentVo.getUseStudyCount()+classGradeStudentVo.getStudyCount().intValue());
|
|
|
+ if(classGradeStudentVo.getUserStatus()==1){
|
|
|
+ exportVo.setUserStatus("变更");
|
|
|
+ }else{
|
|
|
+ exportVo.setUserStatus("未变更");
|
|
|
+ }
|
|
|
+ if(classGradeStudentVo.getOfficialStatus()==1){
|
|
|
+ exportVo.setOfficialStatus("是");
|
|
|
+ }else{
|
|
|
+ exportVo.setOfficialStatus("否");
|
|
|
+ }
|
|
|
+ if(classGradeStudentVo.getPeriodStatus()==1){
|
|
|
+ exportVo.setPeriodStatus("通过");
|
|
|
+ }else{
|
|
|
+ exportVo.setPeriodStatus("未通过");
|
|
|
+ }
|
|
|
+ if(classGradeStudentVo.getPeriodPlush()==1){
|
|
|
+ exportVo.setPeriodPlush("是");
|
|
|
+ }else{
|
|
|
+ exportVo.setPeriodPlush("否");
|
|
|
+ }
|
|
|
+ eList.add(exportVo);
|
|
|
}
|
|
|
- return null;
|
|
|
+ return eList;
|
|
|
}
|
|
|
|
|
|
@Override
|