Training2DraftService优化

This commit is contained in:
xzb 2022-08-30 14:31:20 +08:00
parent 9a3cc981de
commit bed5a7aa69

View File

@ -125,6 +125,7 @@ public class Training2DraftService {
/** /**
* 重置用户实训草稿的初始背景 * 重置用户实训草稿的初始背景
*/ */
@Transactional(rollbackFor = Exception.class)
public void resetTrainingBackground(ResetTraining2BackgroudReqVo req, Long userId) { public void resetTrainingBackground(ResetTraining2BackgroudReqVo req, Long userId) {
DraftTraining2Example example = new DraftTraining2Example(); DraftTraining2Example example = new DraftTraining2Example();
example.createCriteria().andCreatorIdEqualTo(userId).andIdEqualTo(req.getId()); example.createCriteria().andCreatorIdEqualTo(userId).andIdEqualTo(req.getId());