From 90cbce5fcd50043a8a042bf1d11d5c238b2e90d1 Mon Sep 17 00:00:00 2001 From: xusd Date: Sat, 11 May 2024 16:37:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E6=A0=B8=E8=AF=84=E4=BC=B0-=E6=88=91?= =?UTF-8?q?=E7=9A=84=E8=80=83=E8=AF=95=20=E8=80=83=E8=AF=95=E6=9C=AA?= =?UTF-8?q?=E9=80=9A=E8=BF=87=E5=8F=AF=E9=87=8D=E5=A4=8D=E8=80=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/inspur/examine/service/impl/MyExamineServiceImpl.java | 3 --- .../src/main/resources/mapper/MyExamineMapper.xml | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/inspur-service/inspur-examine/src/main/java/com/inspur/examine/service/impl/MyExamineServiceImpl.java b/inspur-service/inspur-examine/src/main/java/com/inspur/examine/service/impl/MyExamineServiceImpl.java index 9f7db8d..2d2b96b 100644 --- a/inspur-service/inspur-examine/src/main/java/com/inspur/examine/service/impl/MyExamineServiceImpl.java +++ b/inspur-service/inspur-examine/src/main/java/com/inspur/examine/service/impl/MyExamineServiceImpl.java @@ -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("未查询到考试信息"); diff --git a/inspur-service/inspur-examine/src/main/resources/mapper/MyExamineMapper.xml b/inspur-service/inspur-examine/src/main/resources/mapper/MyExamineMapper.xml index 2e15aaf..b0ce55f 100644 --- a/inspur-service/inspur-examine/src/main/resources/mapper/MyExamineMapper.xml +++ b/inspur-service/inspur-examine/src/main/resources/mapper/MyExamineMapper.xml @@ -80,7 +80,7 @@ exam_info AS ei LEFT JOIN exam_attestation AS ea ON ei.attestation_id = ea.id - 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') and ei.exam_name like concat('%', #{examName}, '%') and ei.exam_level = #{examLevel} and ei.exam_type = #{examType} @@ -181,7 +181,6 @@ LEFT JOIN exam_attestation AS ea ON ei.attestation_id = ea.id WHERE epi.id = #{id} - AND epi.`status` = '0'