From 8853292babb2ad94de4a3207966f1e83b767cd2d Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Sun, 17 Sep 2023 16:38:34 +0800
Subject: [PATCH] 新增流程节点进程查询接口

---
 src/main/java/org/springblade/modules/simulateexam/service/SimulateExamRecordService.java |   36 ++++++++++++++++++++++++++++++++++++
 1 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/src/main/java/org/springblade/modules/simulateexam/service/SimulateExamRecordService.java b/src/main/java/org/springblade/modules/simulateexam/service/SimulateExamRecordService.java
index 3f2265e..b02cb08 100644
--- a/src/main/java/org/springblade/modules/simulateexam/service/SimulateExamRecordService.java
+++ b/src/main/java/org/springblade/modules/simulateexam/service/SimulateExamRecordService.java
@@ -5,6 +5,7 @@
 import com.baomidou.mybatisplus.extension.service.IService;
 import org.springblade.modules.simulateexam.entity.SimulateExamRecord;
 import org.springblade.modules.simulateexam.vo.SimulateExamRecordVO;
+import org.springblade.modules.simulateexam.vo.SimulateExamScoreVO;
 
 /**
  *  模拟考试记录服务类
@@ -23,4 +24,39 @@
 	 */
 	IPage<SimulateExamRecordVO> selectSimulateExamRecordPage(IPage<SimulateExamRecordVO> page, SimulateExamRecordVO simulateExamRecordVO);
 
+	/**
+	 * 首次点击开始考试,创建模拟考试
+	 * @param simulateExamRecord 模拟考试记录对象信息
+	 * @return
+	 */
+	Object insertSimulateExamRecord(SimulateExamRecord simulateExamRecord);
+
+	/**
+	 * 暂停模拟考试
+	 * @param simulateExamRecord
+	 * @return
+	 */
+	Object pauseExam(SimulateExamRecord simulateExamRecord);
+
+	/**
+	 * 模拟考试开始页面,查询是否有暂停中的模拟考试
+	 * @param simulateExamRecord 模拟考试记录对象信息
+	 * @return
+	 */
+	Object getSimulateExamRecordInfo(SimulateExamRecord simulateExamRecord);
+
+	/**
+	 * 考试暂停后继续,1查询所有的答题信息,2查询所有的已答信息  3其他信息
+	 * @param simulateExamRecord 必须包含 模拟考试id, type 1: 继续考试  2: 放弃之前的考试,重新生成题目考试
+	 * @return
+	 */
+	Object getSimulateExamRefreshInfo(SimulateExamRecordVO simulateExamRecord);
+
+	/**
+	 * 提交考试
+	 *
+	 * @param simulateExamScore 模拟考试成绩信息对象
+	 * @return
+	 */
+    Object saveSimulateExam(SimulateExamScoreVO simulateExamScore);
 }

--
Gitblit v1.9.3