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