Training2DraftService优化

This commit is contained in:
xzb 2022-08-30 14:21:35 +08:00
parent 9e42a4ce68
commit a2d5c6b007
2 changed files with 4 additions and 4 deletions

View File

@ -66,7 +66,7 @@ public class TrainingDraftV2Controller {
*/
@PostMapping("/update/content/background")
public void updateTrainingBackground(@RequestBody UpdateTraining2BackgroudReqVo req, @RequestAttribute AccountVO user) {
this.training2DraftService.updateTrainingBackgroud(req, user.getId());
this.training2DraftService.updateTrainingBackground(req, user.getId());
}
/**
@ -74,7 +74,7 @@ public class TrainingDraftV2Controller {
*/
@PostMapping("/reset/content/background")
public void resetTrainingBackground(@RequestBody ResetTraining2BackgroudReqVo req, @RequestAttribute AccountVO user) {
this.training2DraftService.resetTrainingBackgroud(req, user.getId());
this.training2DraftService.resetTrainingBackground(req, user.getId());
}
/**

View File

@ -104,7 +104,7 @@ public class Training2DraftService {
* 更新用户实训草稿的初始背景
*/
@Transactional(rollbackFor = Exception.class)
public void updateTrainingBackgroud(UpdateTraining2BackgroudReqVo req, Long userId) {
public void updateTrainingBackground(UpdateTraining2BackgroudReqVo req, Long userId) {
DraftTraining2Example example = new DraftTraining2Example();
example.createCriteria().andCreatorIdEqualTo(userId).andIdEqualTo(req.getId());
List<DraftTraining2> find = this.trainingDao.selectByExample(example);
@ -125,7 +125,7 @@ public class Training2DraftService {
/**
* 重置用户实训草稿的初始背景
*/
public void resetTrainingBackgroud(ResetTraining2BackgroudReqVo req, Long userId) {
public void resetTrainingBackground(ResetTraining2BackgroudReqVo req, Long userId) {
DraftTraining2Example example = new DraftTraining2Example();
example.createCriteria().andCreatorIdEqualTo(userId).andIdEqualTo(req.getId());
List<DraftTraining2> find = this.trainingDao.selectByExample(example);