|
|
@@ -16,6 +16,7 @@ import com.zhongzheng.modules.bank.vo.ExamVo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseChapterSectionListAddBo;
|
|
|
import com.zhongzheng.modules.course.domain.CourseChapterSection;
|
|
|
import com.zhongzheng.modules.course.service.ICourseChapterBusinessService;
|
|
|
+import com.zhongzheng.modules.user.domain.User;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
@@ -96,7 +97,7 @@ public class ExamServiceImpl extends ServiceImpl<ExamMapper, Exam> implements IE
|
|
|
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public Boolean insertByAddBo(ExamAddBo bo) {
|
|
|
+ public ExamVo insertByAddBo(ExamAddBo bo) {
|
|
|
Exam add = BeanUtil.toBean(bo, Exam.class);
|
|
|
add.setCode(ServletUtils.getEncoded("SJ"));
|
|
|
validEntityBeforeSave(add);
|
|
|
@@ -127,7 +128,9 @@ public class ExamServiceImpl extends ServiceImpl<ExamMapper, Exam> implements IE
|
|
|
}
|
|
|
iQuestionBusinessService.saveBatch(coll);
|
|
|
}
|
|
|
- return result;
|
|
|
+ ExamVo examVo = BeanUtil.toBean(this.getOne(new LambdaQueryWrapper<Exam>()
|
|
|
+ .eq(Exam::getExamId, add.getExamId()).last("limit 1")), ExamVo.class);
|
|
|
+ return examVo;
|
|
|
}
|
|
|
|
|
|
@Override
|