From 9b8264bd45b103476e2f9d662aa8c324a41f3357 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期三, 12 六月 2024 09:10:46 +0800 Subject: [PATCH] 试卷逻辑更改 --- src/main/java/com/ycl/jxkg/service/ExamPaperService.java | 33 ++++++++++++++++++++------------- 1 files changed, 20 insertions(+), 13 deletions(-) diff --git a/src/main/java/com/ycl/jxkg/service/ExamPaperService.java b/src/main/java/com/ycl/jxkg/service/ExamPaperService.java index e5e7158..caa6368 100644 --- a/src/main/java/com/ycl/jxkg/service/ExamPaperService.java +++ b/src/main/java/com/ycl/jxkg/service/ExamPaperService.java @@ -1,31 +1,38 @@ package com.ycl.jxkg.service; -import com.ycl.jxkg.domain.ExamPaper; -import com.ycl.jxkg.domain.User; -import com.ycl.jxkg.viewmodel.admin.exam.ExamPaperEditRequestVM; -import com.ycl.jxkg.viewmodel.admin.exam.ExamPaperPageRequestVM; -import com.ycl.jxkg.viewmodel.student.dashboard.PaperFilter; -import com.ycl.jxkg.viewmodel.student.dashboard.PaperInfo; -import com.ycl.jxkg.viewmodel.student.exam.ExamPaperPageVM; +import com.baomidou.mybatisplus.extension.service.IService; +import com.ycl.jxkg.domain.entity.ExamPaper; +import com.ycl.jxkg.domain.entity.User; +import com.ycl.jxkg.domain.form.ExamPaperForm; +import com.ycl.jxkg.domain.vo.admin.exam.ExamPaperEditRequestVO; +import com.ycl.jxkg.domain.vo.admin.exam.ExamPaperPageRequestVO; +import com.ycl.jxkg.domain.vo.admin.exam.ExamResponseVO; +import com.ycl.jxkg.domain.vo.student.dashboard.PaperFilter; +import com.ycl.jxkg.domain.vo.student.dashboard.PaperInfo; +import com.ycl.jxkg.domain.vo.student.exam.ExamPaperPageVO; import com.github.pagehelper.PageInfo; import java.util.List; -public interface ExamPaperService extends BaseService<ExamPaper> { +public interface ExamPaperService extends IService<ExamPaper> { - PageInfo<ExamPaper> page(ExamPaperPageRequestVM requestVM); + PageInfo<ExamResponseVO> page(ExamPaperPageRequestVO requestVM); - PageInfo<ExamPaper> taskExamPage(ExamPaperPageRequestVM requestVM); + PageInfo<ExamPaper> taskExamPage(ExamPaperPageRequestVO requestVM); - PageInfo<ExamPaper> studentPage(ExamPaperPageVM requestVM); + PageInfo<ExamPaper> studentPage(ExamPaperPageVO requestVM); - ExamPaper savePaperFromVM(ExamPaperEditRequestVM examPaperEditRequestVM, User user); + ExamPaper savePaperFromVM(ExamPaperEditRequestVO examPaperEditRequestVO, User user); - ExamPaperEditRequestVM examPaperToVM(Integer id); + ExamPaperEditRequestVO examPaperToVM(Integer id); List<PaperInfo> indexPaper(PaperFilter paperFilter); Integer selectAllCount(); List<Integer> selectMothCount(); + + void addPaper(ExamPaperForm form); + + void updateExamPaper(ExamPaperForm form); } -- Gitblit v1.8.0