|
@@ -8,8 +8,11 @@ import com.zhongzheng.modules.bank.bo.QuestionChapterExamEditBo;
|
|
import com.zhongzheng.modules.bank.bo.QuestionChapterExamQueryBo;
|
|
import com.zhongzheng.modules.bank.bo.QuestionChapterExamQueryBo;
|
|
import com.zhongzheng.modules.bank.domain.QuestionChapterExam;
|
|
import com.zhongzheng.modules.bank.domain.QuestionChapterExam;
|
|
import com.zhongzheng.modules.bank.mapper.QuestionChapterExamMapper;
|
|
import com.zhongzheng.modules.bank.mapper.QuestionChapterExamMapper;
|
|
|
|
+import com.zhongzheng.modules.bank.mapper.QuestionModuleChapterMapper;
|
|
import com.zhongzheng.modules.bank.service.IQuestionChapterExamService;
|
|
import com.zhongzheng.modules.bank.service.IQuestionChapterExamService;
|
|
|
|
+import com.zhongzheng.modules.bank.vo.ExamVo;
|
|
import com.zhongzheng.modules.bank.vo.QuestionChapterExamVo;
|
|
import com.zhongzheng.modules.bank.vo.QuestionChapterExamVo;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
@@ -31,12 +34,20 @@ import java.util.stream.Collectors;
|
|
@Service
|
|
@Service
|
|
public class QuestionChapterExamServiceImpl extends ServiceImpl<QuestionChapterExamMapper, QuestionChapterExam> implements IQuestionChapterExamService {
|
|
public class QuestionChapterExamServiceImpl extends ServiceImpl<QuestionChapterExamMapper, QuestionChapterExam> implements IQuestionChapterExamService {
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private QuestionChapterExamMapper questionChapterExamMapper;
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public QuestionChapterExamVo queryById(Long id){
|
|
public QuestionChapterExamVo queryById(Long id){
|
|
QuestionChapterExam db = this.baseMapper.selectById(id);
|
|
QuestionChapterExam db = this.baseMapper.selectById(id);
|
|
return BeanUtil.toBean(db, QuestionChapterExamVo.class);
|
|
return BeanUtil.toBean(db, QuestionChapterExamVo.class);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public List<ExamVo> getList(QuestionChapterExamQueryBo bo) {
|
|
|
|
+ return questionChapterExamMapper.getList(bo);
|
|
|
|
+ }
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public List<QuestionChapterExamVo> queryList(QuestionChapterExamQueryBo bo) {
|
|
public List<QuestionChapterExamVo> queryList(QuestionChapterExamQueryBo bo) {
|
|
LambdaQueryWrapper<QuestionChapterExam> lqw = Wrappers.lambdaQuery();
|
|
LambdaQueryWrapper<QuestionChapterExam> lqw = Wrappers.lambdaQuery();
|