“djh”
4 days ago 55f7e6cdbd00b0ab4a98fb8edde83e16a423baaa
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("待审批的课程不能再操作");
//        }
    }
}