Selaa lähdekoodia

线上数据丢失,及重启加载数据过多相关bug修复

lideyin 5 vuotta sitten
vanhempi
commit
683ec40a24

+ 9 - 0
examcloud-core-oe-student-api-provider/src/main/java/cn/com/qmth/examcloud/core/oe/student/api/provider/ExamRecordDataCloudServiceProvider.java

@@ -291,4 +291,13 @@ public class ExamRecordDataCloudServiceProvider extends ControllerSupport implem
 
         return resp;
     }
+
+    @ApiOperation(value = "修改部分考试记录")
+    @PostMapping("/updatePartialExamRecord")
+    @Override
+    public UpdatePartialExamRecordResp updatePartialExamRecord(@RequestBody UpdatePartialExamRecordReq req) {
+        examRecordDataService.updatePartialExamRecord(req);
+        UpdatePartialExamRecordResp res = new UpdatePartialExamRecordResp();
+        return res;
+    }
 }

+ 5 - 1
examcloud-core-oe-student-dao/src/main/java/cn/com/qmth/examcloud/core/oe/student/dao/ExamRecordDataRepo.java

@@ -30,4 +30,8 @@ public interface ExamRecordDataRepo extends JpaRepository<ExamRecordDataEntity,
     @Modifying
     @Query(value = "update ec_oes_exam_record_data set exam_record_status=?1 where id=?2", nativeQuery = true)
     int updateExamRecordStatusById(String examRecordStatus, Long id);
-}
+
+    @Modifying
+    @Query(value = "update ec_oes_exam_record_data set sync_status=?1 where id=?2", nativeQuery = true)
+    int updateExamRecordSyncStatusById(String syncStatus, Long id);
+}

+ 6 - 0
examcloud-core-oe-student-service/src/main/java/cn/com/qmth/examcloud/core/oe/student/service/ExamRecordDataService.java

@@ -68,4 +68,10 @@ public interface ExamRecordDataService {
     CalcFaceBiopsyResultResp calcFaceBiopsyResult(CalcFaceBiopsyResultReq req);
 
     CalcExamScoreResp calcExamScore(CalcExamScoreReq req);
+
+    /**
+     * 更新部分考试记录数据
+     * @param req
+     */
+    void updatePartialExamRecord(UpdatePartialExamRecordReq req);
 }