From e0c23c1e2c62a08ea75d8ccc44224a548d89c7b9 Mon Sep 17 00:00:00 2001 From: DU Date: Tue, 12 Jan 2021 13:34:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E8=80=83=E8=AF=95=E4=BB=A3?= =?UTF-8?q?=E7=A0=81bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/club/joylink/rtss/services/ExamService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/club/joylink/rtss/services/ExamService.java b/src/main/java/club/joylink/rtss/services/ExamService.java index 8cd4919bc..c7af4c61a 100644 --- a/src/main/java/club/joylink/rtss/services/ExamService.java +++ b/src/main/java/club/joylink/rtss/services/ExamService.java @@ -410,7 +410,7 @@ public class ExamService implements IExamService{ //判断是否已有用户参与考试,如果有,不能删除考试定义 UserExamExample userExamExample = new UserExamExample(); userExamExample.createCriteria().andExamIdEqualTo(Long.parseLong(id)); - BusinessExceptionAssertEnum.OPERATION_NOT_SUPPORTED.assertTrue(userExamMapper.countByExample(userExamExample) < 0, + BusinessExceptionAssertEnum.OPERATION_NOT_SUPPORTED.assertNotTrue(userExamMapper.countByExample(userExamExample) > 0, String.format("试卷[%s]已被使用", id)); //删除考试信息和规则信息