|
|
@ -88,6 +88,16 @@ public class ProjectRecordServiceImpl extends ServiceImpl<ProjectRecordDao, Proj |
|
|
|
|
|
|
|
|
|
|
|
Integer isdel = Constant.IsDel.NOT_DEL.getType(); |
|
|
|
Integer isdel = Constant.IsDel.NOT_DEL.getType(); |
|
|
|
ProjectRecordVo projectRecordVo = this.baseMapper.getByUserScore(userId, isdel); |
|
|
|
ProjectRecordVo projectRecordVo = this.baseMapper.getByUserScore(userId, isdel); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//练习统计
|
|
|
|
|
|
|
|
List<GetByUserRecordResp> sumByPracticeNum = this.baseMapper.sumByPracticeNum(userId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//考核统计
|
|
|
|
|
|
|
|
List<ProjectRecordVo> sumByAssessmentNum = this.baseMapper.sumByAssessmentNum(userId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Integer numer = sumByPracticeNum.size() + sumByAssessmentNum.size(); |
|
|
|
|
|
|
|
projectRecordVo.setExperimentNumber(numer); |
|
|
|
|
|
|
|
|
|
|
|
Double totalTime = projectRecordVo.getTotalTime(); |
|
|
|
Double totalTime = projectRecordVo.getTotalTime(); |
|
|
|
if (totalTime != null) { |
|
|
|
if (totalTime != null) { |
|
|
|
DecimalFormat df = new DecimalFormat("0.00"); |
|
|
|
DecimalFormat df = new DecimalFormat("0.00"); |
|
|
@ -183,4 +193,6 @@ public class ProjectRecordServiceImpl extends ServiceImpl<ProjectRecordDao, Proj |
|
|
|
public void updateScore(ProjectRecordEntity vo) { |
|
|
|
public void updateScore(ProjectRecordEntity vo) { |
|
|
|
this.baseMapper.updateScore(vo); |
|
|
|
this.baseMapper.updateScore(vo); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |