From c89a3707c556f97c4531f556e6c832cb6b5d2b43 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期四, 31 十月 2024 17:53:19 +0800 Subject: [PATCH] 新建/修改考试时,校验试卷是否能成功生成 --- src/main/java/com/ycl/jxkg/service/ExamService.java | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 105 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/ycl/jxkg/service/ExamService.java b/src/main/java/com/ycl/jxkg/service/ExamService.java index bf476cd..b07b8b2 100644 --- a/src/main/java/com/ycl/jxkg/service/ExamService.java +++ b/src/main/java/com/ycl/jxkg/service/ExamService.java @@ -3,8 +3,14 @@ import com.ycl.jxkg.domain.entity.Exam; import com.baomidou.mybatisplus.extension.service.IService; import com.ycl.jxkg.base.Result; +import com.ycl.jxkg.domain.form.AddTimeForm; import com.ycl.jxkg.domain.form.ExamForm; +import com.ycl.jxkg.domain.form.ForceSubmitForm; import com.ycl.jxkg.domain.query.ExamQuery; +import com.ycl.jxkg.domain.vo.ExamSubmitVO; +import com.ycl.jxkg.domain.vo.admin.exam.ExamPaperMarkVO; +import com.ycl.jxkg.domain.vo.StartExamVO; + import java.util.List; /** @@ -62,4 +68,103 @@ * @return */ Result all(); + + /** + * 涓诲姩鎻愪氦璇曞嵎 + * + * @param submitData + * @return + */ + Result examSubmit(StartExamVO submitData); + + /** + * 瀹氭椂淇濆瓨璇曞嵎锛岄槻姝㈣�冭瘯宕╂簝 + * + * @param submitData + * @return + */ + Result timingSubmit(StartExamVO submitData); + + /** + * 鑾峰彇闃呭嵎淇℃伅 + * + * @param id + * @return + */ + Result getMarkResultInfo(Integer id); + + /** + * 瀛︾敓绔垎椤� + * + * @param query + * @return + */ + Result studentPage(ExamQuery query); + + /** + * 瀛︾敓绔紑濮嬭�冭瘯 + * + * @param id + * @return + */ + Result start(Integer id); + + /** + * 鑾峰彇鏌愪釜浜虹殑绛斿嵎 + * + * @param examId + * @param userId + * @return + */ + Result getMarkPaperInfo(Integer examId, Integer userId); + + /** + * 鎻愪氦闃呭嵎 + * + * @param examPaperMark + * @return + */ + Result submitMarkPaper(ExamPaperMarkVO examPaperMark); + + /** + * 鏍规嵁鑰冭瘯id鑾峰彇鐩戞帶鍒楄〃 + * @param query 鑰冭瘯id + * @return 鐩戞帶鍒楄〃 + */ + Result monitorList(ExamQuery query); + + /** + * 娣诲姞鑰冭瘯鏃堕棿 + * + * @param form + * @return + */ + Result addTime(AddTimeForm form); + + /** + * 寮哄埗鎻愪氦璇曞嵎 + * + * @param form + * @return + */ + Result forceSubmit(ForceSubmitForm form); + + + /** + * 浣滃簾 + * + * @param id + * @return {@link Result } + * @author + */ + Result cancel(Integer id); + + /** + * 鎭㈠ + * + * @param id + * @return {@link Result } + * @author + */ + Result recover(Integer id); } -- Gitblit v1.8.0