From bed5a7aa697401693095047dd41b7a2e45dd6381 Mon Sep 17 00:00:00 2001 From: xzb <223@qq.com> Date: Tue, 30 Aug 2022 14:31:20 +0800 Subject: [PATCH] =?UTF-8?q?Training2DraftService=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../joylink/rtss/services/training2/Training2DraftService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/club/joylink/rtss/services/training2/Training2DraftService.java b/src/main/java/club/joylink/rtss/services/training2/Training2DraftService.java index 44911586b..4967e731f 100644 --- a/src/main/java/club/joylink/rtss/services/training2/Training2DraftService.java +++ b/src/main/java/club/joylink/rtss/services/training2/Training2DraftService.java @@ -125,6 +125,7 @@ public class Training2DraftService { /** * 重置用户实训草稿的初始背景 */ + @Transactional(rollbackFor = Exception.class) public void resetTrainingBackground(ResetTraining2BackgroudReqVo req, Long userId) { DraftTraining2Example example = new DraftTraining2Example(); example.createCriteria().andCreatorIdEqualTo(userId).andIdEqualTo(req.getId());