|
|
@ -196,7 +196,7 @@ public class AssessUserServiceImpl implements AssessUserService { |
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
|
|
|
//考试时长
|
|
|
|
//考试时长
|
|
|
|
long duration = sdf.parse(sdf.format(now)).getTime() - sdf.parse(sdf.format(startTime)).getTime(); |
|
|
|
long duration = sdf.parse(sdf.format(now)).getTime() - sdf.parse(sdf.format(startTime)).getTime(); |
|
|
|
assessUser.setDuration(Math.toIntExact(duration)); |
|
|
|
assessUser.setDuration(duration); |
|
|
|
if (assessUser.getUserType() == 0 && assessUser.getAchieveMentType() == 0) { |
|
|
|
if (assessUser.getUserType() == 0 && assessUser.getAchieveMentType() == 0) { |
|
|
|
YyyfStudentAnswerDto yyyfStudentAnswerDto = new YyyfStudentAnswerDto(); |
|
|
|
YyyfStudentAnswerDto yyyfStudentAnswerDto = new YyyfStudentAnswerDto(); |
|
|
|
BeanUtils.copyProperties(assessUser, yyyfStudentAnswerDto); |
|
|
|
BeanUtils.copyProperties(assessUser, yyyfStudentAnswerDto); |
|
|
@ -247,7 +247,7 @@ public class AssessUserServiceImpl implements AssessUserService { |
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
|
|
|
//考试时长
|
|
|
|
//考试时长
|
|
|
|
long duration = sdf.parse(sdf.format(now)).getTime() - sdf.parse(sdf.format(startTime)).getTime(); |
|
|
|
long duration = sdf.parse(sdf.format(now)).getTime() - sdf.parse(sdf.format(startTime)).getTime(); |
|
|
|
assessUserDto.setDuration(Math.toIntExact(duration)); |
|
|
|
assessUserDto.setDuration(duration); |
|
|
|
updateAssessUserDtoList.add(assessUserDto); |
|
|
|
updateAssessUserDtoList.add(assessUserDto); |
|
|
|
//指标库更新
|
|
|
|
//指标库更新
|
|
|
|
|
|
|
|
|
|
|
|