考核评估-我的考试 考试未通过可重复考试

This commit is contained in:
xusd 2024-05-11 16:37:45 +08:00
parent e215955bfa
commit 90cbce5fcd
2 changed files with 1 additions and 6 deletions

View File

@ -305,9 +305,6 @@ public class MyExamineServiceImpl implements IMyExamineService {
if (Objects.isNull(paperInfo)){
throw new ServiceException("未查询到考生考试信息");
}
if (!"0".equals(paperInfo.getStatus())){
throw new ServiceException("已参与过考试,请勿重复参加");
}
ExamInfo examInfo = examInfoService.selectExamInfoById(paperInfo.getExamId());
if (Objects.isNull(examInfo)){
throw new ServiceException("未查询到考试信息");

View File

@ -80,7 +80,7 @@
exam_info AS ei
LEFT JOIN exam_attestation AS ea ON ei.attestation_id = ea.id
<where>
and ei.id not in (SELECT exam_id from exam_paper_info where examine_id = #{userId})
and ei.id not in (SELECT exam_id from exam_paper_info where examine_id = #{userId} and status = '2')
<if test="examName != null and examName != ''"> and ei.exam_name like concat('%', #{examName}, '%')</if>
<if test="examLevel != null and examLevel != ''"> and ei.exam_level = #{examLevel}</if>
<if test="examType != null and examType != ''"> and ei.exam_type = #{examType}</if>
@ -181,7 +181,6 @@
LEFT JOIN exam_attestation AS ea ON ei.attestation_id = ea.id
WHERE
epi.id = #{id}
AND epi.`status` = '0'
</select>
<select id="selectPaperQuestionNoAnswerListByPaperId" resultType="com.inspur.examine.vo.MyExamPaperQuestionVO">
@ -228,7 +227,6 @@
LEFT JOIN exam_attestation AS ea ON ei.attestation_id = ea.id
WHERE
epi.id = #{id}
AND (epi.`status` = '1' or epi.`status` = '2')
</select>
<select id="selectHistoryPaperQuestionNoAnswerListByPaperId"
resultType="com.inspur.examine.vo.MyExamPaperQuestionVO">