Explorar o código

add:删除教学学生新增校验

caozixuan hai 1 ano
pai
achega
d04c25c9b1

+ 0 - 3
distributed-print-business/src/main/java/com/qmth/distributed/print/business/service/impl/TeachStudentServiceImpl.java

@@ -156,9 +156,6 @@ public class TeachStudentServiceImpl extends ServiceImpl<TeachStudentMapper, Tea
         if (Objects.isNull(teachClazz)) {
             throw ExceptionResultEnum.ERROR.exception("教学班级不存在");
         }
-        if (!Objects.equals(teachClazz.getUserId(), requestUser.getId())) {
-            throw ExceptionResultEnum.ERROR.exception("用户信息异常");
-        }
 
         List<TeachStudent> teachStudentList = new ArrayList<>();
         if (CollectionUtils.isNotEmpty(basicExamStudentList)) {