Преглед изворни кода

Merge remote-tracking branch 'origin/master'

lideyin пре 5 година
родитељ
комит
9302ba3f56

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

@@ -54,7 +54,7 @@ public class ExamRecordDataCloudServiceProvider extends ControllerSupport implem
     private ExamRecordQuestionTempRepo examRecordQuestionTempRepo;
 
     @Override
-    @ApiOperation(value = "批量获取考试记录ID")
+    @ApiOperation(value = "批量获取未同步的考试记录ID")
     @PostMapping("/getExamRecordDataIds")
     public GetExamRecordDataIdsResp getExamRecordDataIds(@RequestBody GetExamRecordDataIdsReq req) {
         GetExamRecordDataIdsResp res = new GetExamRecordDataIdsResp();

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

@@ -18,7 +18,7 @@ import cn.com.qmth.examcloud.core.oe.student.dao.entity.ExamRecordDataEntity;
  */
 @Repository
 public interface ExamRecordDataRepo extends JpaRepository<ExamRecordDataEntity, Long>, JpaSpecificationExecutor<ExamRecordDataEntity> {
-    @Query(value = "select *  from ec_oes_exam_record_data where (batch_num is null or batch_num!=?1) and id>?2 order by id limit ?3",nativeQuery = true)
+    @Query(value = "select *  from ec_oes_exam_record_data where (batch_num is null or batch_num!=?1) and id>?2 and sync_status='UNSYNC' order by id limit ?3",nativeQuery = true)
     List<ExamRecordDataEntity> getLimitExamRecordDataList(Long batchNum, Long startId, Integer size);
     
     @Modifying