From a3d63a4a7199d346e63039a8fd6490b12387fa4e Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: Thu, 07 May 2026 13:42:38 +0800
Subject: [PATCH] 增加查询条件
---
multi-system/src/main/java/com/gkhy/exam/system/service/impl/ExCourseChapterPeriodServiceImpl.java | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/multi-system/src/main/java/com/gkhy/exam/system/service/impl/ExCourseChapterPeriodServiceImpl.java b/multi-system/src/main/java/com/gkhy/exam/system/service/impl/ExCourseChapterPeriodServiceImpl.java
index b70b3fe..0ea2b17 100644
--- a/multi-system/src/main/java/com/gkhy/exam/system/service/impl/ExCourseChapterPeriodServiceImpl.java
+++ b/multi-system/src/main/java/com/gkhy/exam/system/service/impl/ExCourseChapterPeriodServiceImpl.java
@@ -104,13 +104,13 @@
if(courseChapterPeriod.getCompanyId()!=null&&!currentUser.getCompanyId().equals(courseChapterPeriod.getCompanyId())){
throw new ApiException("没有权限操作其他企业课程");
}
- int state=courseMapper.selectCourseState(courseChapterPeriod.getCourseId());
- if(state== ApproveStatusEnum.APPROVED.getCode()){
- throw new ApiException("已审批的课程不能再操作");
- }
- if(state== ApproveStatusEnum.APPROVING.getCode()){
- throw new ApiException("待审批的课程不能再操作");
- }
+// int state=courseMapper.selectCourseState(courseChapterPeriod.getCourseId());
+// if(state== ApproveStatusEnum.APPROVED.getCode()){
+// throw new ApiException("已审批的课程不能再操作");
+// }
+// if(state== ApproveStatusEnum.APPROVING.getCode()){
+// throw new ApiException("待审批的课程不能再操作");
+// }
}
}
--
Gitblit v1.9.2