|
@@ -53,7 +53,7 @@ public class UserPracticeServiceImpl extends ServiceImpl<UserPracticeMapper, Use
|
|
|
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public void submitPractice(UserPracticeDTO dto) {
|
|
|
+ public String submitPractice(UserPracticeDTO dto) {
|
|
|
if (CollectionUtils.isEmpty(dto.getQuestionList())) {
|
|
|
throw new JeecgBootException("练习题目为空");
|
|
|
}
|
|
@@ -107,5 +107,6 @@ public class UserPracticeServiceImpl extends ServiceImpl<UserPracticeMapper, Use
|
|
|
if (!CollectionUtils.isEmpty(userPracticeQuestionList)) {
|
|
|
userPracticeQuestionService.saveBatch(userPracticeQuestionList);
|
|
|
}
|
|
|
+ return userPracticeId;
|
|
|
}
|
|
|
}
|