diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 00000000..8cd68d97
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
new file mode 100644
index 00000000..2afb9df7
--- /dev/null
+++ b/.idea/encodings.xml
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
new file mode 100644
index 00000000..7ea10eee
--- /dev/null
+++ b/.idea/jarRepositories.xml
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 07115cdf..82dbec8a 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,5 +1,13 @@
+
+
+
+
diff --git a/.idea/modules.xml b/.idea/modules.xml
deleted file mode 100644
index ebb872e9..00000000
--- a/.idea/modules.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/controller/admin/vo/ExamPageReqVO.java b/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/controller/admin/vo/ExamPageReqVO.java
deleted file mode 100644
index 60535a02..00000000
--- a/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/controller/admin/vo/ExamPageReqVO.java
+++ /dev/null
@@ -1,43 +0,0 @@
-package pc.exam.pp.module.exam.controller.admin.vo;
-
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import lombok.ToString;
-import pc.exam.pp.framework.common.pojo.PageParam;
-import org.springframework.format.annotation.DateTimeFormat;
-import java.time.LocalDateTime;
-
-import static pc.exam.pp.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
-
-/**
- * 考试分页查询 Request VO
- *
- * @author pengchen
- */
-@Data
-@EqualsAndHashCode(callSuper = true)
-@ToString(callSuper = true)
-public class ExamPageReqVO extends PageParam {
-
- /**
- * 考试名称
- */
- private String name;
-
- /**
- * 考试状态
- */
- private Integer status;
-
- /**
- * 考试类型
- */
- private Integer type;
-
- /**
- * 创建时间
- */
- @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
- private LocalDateTime[] createTime;
-
-}
diff --git a/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/dal/dataobject/ExamDO.java b/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/dal/dataobject/ExamDO.java
deleted file mode 100644
index c8993913..00000000
--- a/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/dal/dataobject/ExamDO.java
+++ /dev/null
@@ -1,72 +0,0 @@
-package pc.exam.pp.module.exam.dal.dataobject;
-
-import com.baomidou.mybatisplus.annotation.KeySequence;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import lombok.ToString;
-import pc.exam.pp.framework.mybatis.core.dataobject.BaseDO;
-
-import java.time.LocalDateTime;
-
-/**
- * 考试信息 DO
- *
- * @author pengchen
- */
-@TableName("exam")
-@KeySequence("exam_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
-@Data
-@EqualsAndHashCode(callSuper = true)
-@ToString(callSuper = true)
-public class ExamDO extends BaseDO {
-
- /**
- * 编号
- */
- @TableId
- private Long id;
- /**
- * 考试名称
- */
- private String name;
- /**
- * 考试描述
- */
- private String description;
- /**
- * 开始时间
- */
- private LocalDateTime startTime;
- /**
- * 结束时间
- */
- private LocalDateTime endTime;
- /**
- * 考试时长,单位分钟
- */
- private Integer duration;
- /**
- * 考试状态
- *
- * 枚举 {@link ExamStatusEnum}
- */
- private Integer status;
- /**
- * 总分
- */
- private Integer totalScore;
- /**
- * 及格分数
- */
- private Integer passingScore;
- /**
- * 创建者
- */
- private String creator;
- /**
- * 考试类型
- */
- private Integer type;
-}
diff --git a/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/dal/dataobject/ExamStatusEnum.java b/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/dal/dataobject/ExamStatusEnum.java
deleted file mode 100644
index bced1d0e..00000000
--- a/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/dal/dataobject/ExamStatusEnum.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package pc.exam.pp.module.exam.dal.dataobject;
-
-import lombok.AllArgsConstructor;
-import lombok.Getter;
-
-/**
- * 考试状态枚举
- *
- * @author pengchen
- */
-@Getter
-@AllArgsConstructor
-public enum ExamStatusEnum {
-
- DRAFT(0, "草稿"),
- PUBLISHED(1, "已发布"),
- IN_PROGRESS(2, "进行中"),
- FINISHED(3, "已结束"),
- CANCELLED(4, "已取消");
-
- /**
- * 状态值
- */
- private final Integer status;
- /**
- * 状态名
- */
- private final String name;
-}
diff --git a/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/dal/mysql/ExamMapper.java b/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/dal/mysql/ExamMapper.java
deleted file mode 100644
index b7f63c53..00000000
--- a/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/dal/mysql/ExamMapper.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package pc.exam.pp.module.exam.dal.mysql;
-
-import pc.exam.pp.framework.common.pojo.PageResult;
-import pc.exam.pp.framework.mybatis.core.mapper.BaseMapperX;
-import pc.exam.pp.framework.mybatis.core.query.LambdaQueryWrapperX;
-import pc.exam.pp.module.exam.controller.admin.vo.ExamPageReqVO;
-import pc.exam.pp.module.exam.dal.dataobject.ExamDO;
-import org.apache.ibatis.annotations.Mapper;
-
-/**
- * 考试信息 Mapper
- *
- * @author pengchen
- */
-@Mapper
-public interface ExamMapper extends BaseMapperX {
-
- default PageResult selectPage(ExamPageReqVO reqVO) {
- return selectPage(reqVO, new LambdaQueryWrapperX()
- .likeIfPresent(ExamDO::getName, reqVO.getName())
- .eqIfPresent(ExamDO::getStatus, reqVO.getStatus())
- .eqIfPresent(ExamDO::getType, reqVO.getType())
- .betweenIfPresent(ExamDO::getCreateTime, reqVO.getCreateTime())
- .orderByDesc(ExamDO::getId));
- }
-
-}
diff --git a/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/service/ExamService.java b/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/service/ExamService.java
deleted file mode 100644
index db21874b..00000000
--- a/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/service/ExamService.java
+++ /dev/null
@@ -1,64 +0,0 @@
-package pc.exam.pp.module.exam.service;
-
-import pc.exam.pp.framework.common.pojo.PageResult;
-import pc.exam.pp.module.exam.controller.admin.vo.ExamPageReqVO;
-import pc.exam.pp.module.exam.dal.dataobject.ExamDO;
-
-import javax.validation.Valid;
-import java.util.Collection;
-import java.util.List;
-
-/**
- * 考试信息 Service 接口
- *
- * @author pengchen
- */
-public interface ExamService {
-
- /**
- * 创建考试
- *
- * @param createReqVO 创建信息
- * @return 编号
- */
- Long createExam(@Valid ExamDO createReqVO);
-
- /**
- * 更新考试
- *
- * @param updateReqVO 更新信息
- */
- void updateExam(@Valid ExamDO updateReqVO);
-
- /**
- * 删除考试
- *
- * @param id 编号
- */
- void deleteExam(Long id);
-
- /**
- * 获得考试
- *
- * @param id 编号
- * @return 考试
- */
- ExamDO getExam(Long id);
-
- /**
- * 获得考试列表
- *
- * @param ids 编号
- * @return 考试列表
- */
- List getExamList(Collection ids);
-
- /**
- * 获得考试分页
- *
- * @param pageReqVO 分页查询
- * @return 考试分页
- */
- PageResult getExamPage(ExamPageReqVO pageReqVO);
-
-}
diff --git a/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/service/impl/ExamServiceImpl.java b/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/service/impl/ExamServiceImpl.java
deleted file mode 100644
index a6a91442..00000000
--- a/exam-module-exam/exam-module-exam-biz/src/main/java/pc/exam/pp/module/exam/service/impl/ExamServiceImpl.java
+++ /dev/null
@@ -1,72 +0,0 @@
-package pc.exam.pp.module.exam.service.impl;
-
-import org.springframework.stereotype.Service;
-import org.springframework.validation.annotation.Validated;
-import pc.exam.pp.framework.common.pojo.PageResult;
-import pc.exam.pp.module.exam.controller.admin.vo.ExamPageReqVO;
-import pc.exam.pp.module.exam.dal.dataobject.ExamDO;
-import pc.exam.pp.module.exam.dal.mysql.ExamMapper;
-import pc.exam.pp.module.exam.service.ExamService;
-
-import javax.annotation.Resource;
-import java.util.Collection;
-import java.util.List;
-
-/**
- * 考试信息 Service 实现类
- *
- * @author pengchen
- */
-@Service
-@Validated
-public class ExamServiceImpl implements ExamService {
-
- @Resource
- private ExamMapper examMapper;
-
- @Override
- public Long createExam(ExamDO createReqVO) {
- // 插入
- examMapper.insert(createReqVO);
- // 返回
- return createReqVO.getId();
- }
-
- @Override
- public void updateExam(ExamDO updateReqVO) {
- // 校验存在
- validateExamExists(updateReqVO.getId());
- // 更新
- examMapper.updateById(updateReqVO);
- }
-
- @Override
- public void deleteExam(Long id) {
- // 校验存在
- validateExamExists(id);
- // 删除
- examMapper.deleteById(id);
- }
-
- private void validateExamExists(Long id) {
- if (examMapper.selectById(id) == null) {
- throw new RuntimeException("考试不存在");
- }
- }
-
- @Override
- public ExamDO getExam(Long id) {
- return examMapper.selectById(id);
- }
-
- @Override
- public List getExamList(Collection ids) {
- return examMapper.selectBatchIds(ids);
- }
-
- @Override
- public PageResult getExamPage(ExamPageReqVO pageReqVO) {
- return examMapper.selectPage(pageReqVO);
- }
-
-}
diff --git a/exam-module-exam/exam-module-exam-biz/src/main/resources/mapper/ExamMapper.xml b/exam-module-exam/exam-module-exam-biz/src/main/resources/mapper/ExamMapper.xml
deleted file mode 100644
index fc660f20..00000000
--- a/exam-module-exam/exam-module-exam-biz/src/main/resources/mapper/ExamMapper.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/controller/admin/JudgementController.java b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/controller/admin/JudgementController.java
deleted file mode 100644
index 53f40711..00000000
--- a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/controller/admin/JudgementController.java
+++ /dev/null
@@ -1,100 +0,0 @@
-package pc.exam.pp.module.judgement.controller.admin;
-
-import org.springframework.web.bind.annotation.*;
-import javax.annotation.Resource;
-import javax.validation.Valid;
-
-import pc.exam.pp.framework.common.pojo.CommonResult;
-import pc.exam.pp.framework.common.pojo.PageResult;
-import pc.exam.pp.module.judgement.controller.admin.vo.JudgementPageReqVO;
-import pc.exam.pp.module.judgement.dal.dataobject.JudgementDO;
-import pc.exam.pp.module.judgement.service.JudgementService;
-
-import java.util.List;
-
-import static pc.exam.pp.framework.common.pojo.CommonResult.success;
-
-/**
- * 管理后台 - 判题信息
- *
- * @author pengchen
- */
-@RestController
-@RequestMapping("/judgement")
-public class JudgementController {
-
- @Resource
- private JudgementService judgementService;
-
- /**
- * 创建判题
- *
- * @param createReqVO 创建信息
- * @return 判题编号
- */
- @PostMapping("/create")
- public CommonResult createJudgement(@Valid @RequestBody JudgementDO createReqVO) {
- return success(judgementService.createJudgement(createReqVO));
- }
-
- /**
- * 更新判题
- *
- * @param updateReqVO 更新信息
- * @return 成功状态
- */
- @PutMapping("/update")
- public CommonResult updateJudgement(@Valid @RequestBody JudgementDO updateReqVO) {
- judgementService.updateJudgement(updateReqVO);
- return success(true);
- }
-
- /**
- * 删除判题
- *
- * @param id 编号
- * @return 成功状态
- */
- @DeleteMapping("/delete")
- public CommonResult deleteJudgement(@RequestParam("id") Long id) {
- judgementService.deleteJudgement(id);
- return success(true);
- }
-
- /**
- * 获得判题
- *
- * @param id 编号
- * @return 判题
- */
- @GetMapping("/get")
- public CommonResult getJudgement(@RequestParam("id") Long id) {
- return success(judgementService.getJudgement(id));
- }
-
- /**
- * 获得判题分页
- *
- * @param pageVO 分页查询
- * @return 判题分页
- */
- @GetMapping("/page")
- public CommonResult> getJudgementPage(@Valid JudgementPageReqVO pageVO) {
- return success(judgementService.getJudgementPage(pageVO));
- }
-
- /**
- * 获取用户在某次考试的所有判题结果
- *
- * @param examId 考试ID
- * @param userId 用户ID
- * @return 判题列表
- */
- @GetMapping("/list-by-exam-and-user")
- public CommonResult> getJudgementListByExamAndUser(
- @RequestParam("examId") Long examId,
- @RequestParam("userId") Long userId) {
- return success(judgementService.getJudgementListByExamAndUser(examId, userId));
- }
-
-}
diff --git a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/controller/admin/vo/JudgementPageReqVO.java b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/controller/admin/vo/JudgementPageReqVO.java
deleted file mode 100644
index 6d1e0770..00000000
--- a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/controller/admin/vo/JudgementPageReqVO.java
+++ /dev/null
@@ -1,48 +0,0 @@
-package pc.exam.pp.module.judgement.controller.admin.vo;
-
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import lombok.ToString;
-import pc.exam.pp.framework.common.pojo.PageParam;
-import org.springframework.format.annotation.DateTimeFormat;
-import java.time.LocalDateTime;
-
-import static pc.exam.pp.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
-
-/**
- * 判题分页查询 Request VO
- *
- * @author pengchen
- */
-@Data
-@EqualsAndHashCode(callSuper = true)
-@ToString(callSuper = true)
-public class JudgementPageReqVO extends PageParam {
-
- /**
- * 考试ID
- */
- private Long examId;
-
- /**
- * 用户ID
- */
- private Long userId;
-
- /**
- * 题目ID
- */
- private Long questionId;
-
- /**
- * 判题结果
- */
- private Integer result;
-
- /**
- * 创建时间
- */
- @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
- private LocalDateTime[] createTime;
-
-}
diff --git a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/dal/dataobject/JudgementDO.java b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/dal/dataobject/JudgementDO.java
deleted file mode 100644
index 8d4ceb67..00000000
--- a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/dal/dataobject/JudgementDO.java
+++ /dev/null
@@ -1,68 +0,0 @@
-package pc.exam.pp.module.judgement.dal.dataobject;
-
-import com.baomidou.mybatisplus.annotation.KeySequence;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableName;
-import lombok.Data;
-import lombok.EqualsAndHashCode;
-import lombok.ToString;
-import pc.exam.pp.framework.mybatis.core.dataobject.BaseDO;
-
-import java.time.LocalDateTime;
-
-/**
- * 判题信息 DO
- *
- * @author pengchen
- */
-@TableName("judgement")
-@KeySequence("judgement_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
-@Data
-@EqualsAndHashCode(callSuper = true)
-@ToString(callSuper = true)
-public class JudgementDO extends BaseDO {
-
- /**
- * 编号
- */
- @TableId
- private Long id;
- /**
- * 考试ID
- */
- private Long examId;
- /**
- * 用户ID
- */
- private Long userId;
- /**
- * 题目ID
- */
- private Long questionId;
- /**
- * 用户答案
- */
- private String userAnswer;
- /**
- * 判题结果
- *
- * 枚举 {@link JudgementResultEnum}
- */
- private Integer result;
- /**
- * 得分
- */
- private Integer score;
- /**
- * 判题时间
- */
- private LocalDateTime judgementTime;
- /**
- * 判题详情
- */
- private String detail;
- /**
- * 判题类型
- */
- private Integer type;
-}
diff --git a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/dal/dataobject/JudgementResultEnum.java b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/dal/dataobject/JudgementResultEnum.java
deleted file mode 100644
index 845dca5a..00000000
--- a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/dal/dataobject/JudgementResultEnum.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package pc.exam.pp.module.judgement.dal.dataobject;
-
-import lombok.AllArgsConstructor;
-import lombok.Getter;
-
-/**
- * 判题结果枚举
- *
- * @author pengchen
- */
-@Getter
-@AllArgsConstructor
-public enum JudgementResultEnum {
-
- PENDING(0, "待判题"),
- CORRECT(1, "正确"),
- PARTIALLY_CORRECT(2, "部分正确"),
- INCORRECT(3, "错误"),
- ERROR(4, "判题出错");
-
- /**
- * 结果值
- */
- private final Integer result;
- /**
- * 结果名
- */
- private final String name;
-}
diff --git a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/dal/mysql/JudgementMapper.java b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/dal/mysql/JudgementMapper.java
deleted file mode 100644
index bf8333f0..00000000
--- a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/dal/mysql/JudgementMapper.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package pc.exam.pp.module.judgement.dal.mysql;
-
-import pc.exam.pp.framework.common.pojo.PageResult;
-import pc.exam.pp.framework.mybatis.core.mapper.BaseMapperX;
-import pc.exam.pp.framework.mybatis.core.query.LambdaQueryWrapperX;
-import pc.exam.pp.module.judgement.controller.admin.vo.JudgementPageReqVO;
-import pc.exam.pp.module.judgement.dal.dataobject.JudgementDO;
-import org.apache.ibatis.annotations.Mapper;
-
-import java.util.List;
-
-/**
- * 判题信息 Mapper
- *
- * @author pengchen
- */
-@Mapper
-public interface JudgementMapper extends BaseMapperX {
-
- default PageResult selectPage(JudgementPageReqVO reqVO) {
- return selectPage(reqVO, new LambdaQueryWrapperX()
- .eqIfPresent(JudgementDO::getExamId, reqVO.getExamId())
- .eqIfPresent(JudgementDO::getUserId, reqVO.getUserId())
- .eqIfPresent(JudgementDO::getQuestionId, reqVO.getQuestionId())
- .eqIfPresent(JudgementDO::getResult, reqVO.getResult())
- .betweenIfPresent(JudgementDO::getCreateTime, reqVO.getCreateTime())
- .orderByDesc(JudgementDO::getId));
- }
-
- default List selectListByExamIdAndUserId(Long examId, Long userId) {
- return selectList(new LambdaQueryWrapperX()
- .eq(JudgementDO::getExamId, examId)
- .eq(JudgementDO::getUserId, userId));
- }
-
-}
diff --git a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/service/JudgementService.java b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/service/JudgementService.java
deleted file mode 100644
index d4901fd0..00000000
--- a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/service/JudgementService.java
+++ /dev/null
@@ -1,73 +0,0 @@
-package pc.exam.pp.module.judgement.service;
-
-import pc.exam.pp.framework.common.pojo.PageResult;
-import pc.exam.pp.module.judgement.controller.admin.vo.JudgementPageReqVO;
-import pc.exam.pp.module.judgement.dal.dataobject.JudgementDO;
-
-import javax.validation.Valid;
-import java.util.Collection;
-import java.util.List;
-
-/**
- * 判题信息 Service 接口
- *
- * @author pengchen
- */
-public interface JudgementService {
-
- /**
- * 创建判题
- *
- * @param createReqVO 创建信息
- * @return 编号
- */
- Long createJudgement(@Valid JudgementDO createReqVO);
-
- /**
- * 更新判题
- *
- * @param updateReqVO 更新信息
- */
- void updateJudgement(@Valid JudgementDO updateReqVO);
-
- /**
- * 删除判题
- *
- * @param id 编号
- */
- void deleteJudgement(Long id);
-
- /**
- * 获得判题
- *
- * @param id 编号
- * @return 判题
- */
- JudgementDO getJudgement(Long id);
-
- /**
- * 获得判题列表
- *
- * @param ids 编号
- * @return 判题列表
- */
- List getJudgementList(Collection ids);
-
- /**
- * 获得判题分页
- *
- * @param pageReqVO 分页查询
- * @return 判题分页
- */
- PageResult getJudgementPage(JudgementPageReqVO pageReqVO);
-
- /**
- * 获取用户在某次考试的所有判题结果
- *
- * @param examId 考试ID
- * @param userId 用户ID
- * @return 判题列表
- */
- List getJudgementListByExamAndUser(Long examId, Long userId);
-
-}
diff --git a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/service/impl/JudgementServiceImpl.java b/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/service/impl/JudgementServiceImpl.java
deleted file mode 100644
index c69a1b41..00000000
--- a/exam-module-judgement/exam-module-judgement-biz/src/main/java/pc/exam/pp/module/judgement/service/impl/JudgementServiceImpl.java
+++ /dev/null
@@ -1,77 +0,0 @@
-package pc.exam.pp.module.judgement.service.impl;
-
-import org.springframework.stereotype.Service;
-import org.springframework.validation.annotation.Validated;
-import pc.exam.pp.framework.common.pojo.PageResult;
-import pc.exam.pp.module.judgement.controller.admin.vo.JudgementPageReqVO;
-import pc.exam.pp.module.judgement.dal.dataobject.JudgementDO;
-import pc.exam.pp.module.judgement.dal.mysql.JudgementMapper;
-import pc.exam.pp.module.judgement.service.JudgementService;
-
-import javax.annotation.Resource;
-import java.util.Collection;
-import java.util.List;
-
-/**
- * 判题信息 Service 实现类
- *
- * @author pengchen
- */
-@Service
-@Validated
-public class JudgementServiceImpl implements JudgementService {
-
- @Resource
- private JudgementMapper judgementMapper;
-
- @Override
- public Long createJudgement(JudgementDO createReqVO) {
- // 插入
- judgementMapper.insert(createReqVO);
- // 返回
- return createReqVO.getId();
- }
-
- @Override
- public void updateJudgement(JudgementDO updateReqVO) {
- // 校验存在
- validateJudgementExists(updateReqVO.getId());
- // 更新
- judgementMapper.updateById(updateReqVO);
- }
-
- @Override
- public void deleteJudgement(Long id) {
- // 校验存在
- validateJudgementExists(id);
- // 删除
- judgementMapper.deleteById(id);
- }
-
- private void validateJudgementExists(Long id) {
- if (judgementMapper.selectById(id) == null) {
- throw new RuntimeException("判题不存在");
- }
- }
-
- @Override
- public JudgementDO getJudgement(Long id) {
- return judgementMapper.selectById(id);
- }
-
- @Override
- public List getJudgementList(Collection ids) {
- return judgementMapper.selectBatchIds(ids);
- }
-
- @Override
- public PageResult getJudgementPage(JudgementPageReqVO pageReqVO) {
- return judgementMapper.selectPage(pageReqVO);
- }
-
- @Override
- public List getJudgementListByExamAndUser(Long examId, Long userId) {
- return judgementMapper.selectListByExamIdAndUserId(examId, userId);
- }
-
-}
diff --git a/exam-module-judgement/exam-module-judgement-biz/src/main/resources/mapper/JudgementMapper.xml b/exam-module-judgement/exam-module-judgement-biz/src/main/resources/mapper/JudgementMapper.xml
deleted file mode 100644
index 834c1362..00000000
--- a/exam-module-judgement/exam-module-judgement-biz/src/main/resources/mapper/JudgementMapper.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-