소스 검색

3.3.1 update

xiaofei 1 년 전
부모
커밋
bb215c6a22
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      teachcloud-mark/src/main/java/com/qmth/teachcloud/mark/service/impl/MarkUserGroupServiceImpl.java

+ 2 - 1
teachcloud-mark/src/main/java/com/qmth/teachcloud/mark/service/impl/MarkUserGroupServiceImpl.java

@@ -169,8 +169,9 @@ public class MarkUserGroupServiceImpl extends ServiceImpl<MarkUserGroupMapper, M
         if (count > 0) {
             throw ExceptionResultEnum.ERROR.exception("删除评卷员失败,该评卷员已开始评卷");
         } else {
-            this.removeById(markUserGroupId);
+            // 先回收,再删除
             releaseMarker(Arrays.asList(markUserGroupId));
+            this.removeById(markUserGroupId);
         }
     }