浏览代码

代码优化

lideyin 5 年之前
父节点
当前提交
999b33f493

+ 1 - 1
examcloud-core-oe-student-service/src/main/java/cn/com/qmth/examcloud/core/oe/student/service/impl/ExamScoreServiceImpl.java

@@ -228,6 +228,7 @@ public class ExamScoreServiceImpl implements ExamScoreService {
             objectiveScoreInfo.setExamRecordDataId(examRecordDataEntity.getId());
             objectiveScoreInfo.setExamOrder(examRecordDataEntity.getExamOrder());
             objectiveScoreInfo.setStartTime(examRecordDataEntity.getStartTime());
+            objectiveScoreInfo.setEndTime(examRecordDataEntity.getEndTime());
 
             //如果考试没有结束,则只能返回部分数据
             if (!examRecordDataService.isExamRecordEnded(examRecordDataEntity)) {
@@ -238,7 +239,6 @@ public class ExamScoreServiceImpl implements ExamScoreService {
                 objectiveScoreInfo.setIsExamEnded(true);
             }
 
-            objectiveScoreInfo.setEndTime(examRecordDataEntity.getEndTime());
             if (!examRecordDataEntity.getIsIllegality()) {
                 if (examRecordDataEntity.getIsWarn() && !examRecordDataEntity.getIsAudit()) {
                     objectiveScoreInfo.setIsAuditing(true);