| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springblade.common.utils.SpringUtils; |
| | | import org.springblade.modules.answerRecord.service.IAnswerRecordService; |
| | | import org.springblade.modules.subjectChoices.dto.SubjectChoicesDTO; |
| | | import org.springblade.modules.subjectChoices.entity.SubjectChoicesEntity; |
| | | import org.springblade.modules.subjectChoices.mapper.SubjectChoicesMapper; |
| | |
| | | |
| | | @Override |
| | | public IPage<SubjectChoicesVO> selectSubjectChoicesPage(IPage<SubjectChoicesVO> page, SubjectChoicesVO subjectChoices) { |
| | | return page.setRecords(baseMapper.selectSubjectChoicesPage(page, subjectChoices)); |
| | | List<SubjectChoicesVO> subjectChoicesVOS = baseMapper.selectSubjectChoicesPage(page, subjectChoices); |
| | | IAnswerRecordService bean = SpringUtils.getBean(IAnswerRecordService.class); |
| | | // for (SubjectChoicesVO subjectChoicesVO : subjectChoicesVOS) { |
| | | // List<SubjectOptionVO> subjectOptionList = subjectChoicesVO.getSubjectOptionList(); |
| | | // for (SubjectOptionVO subjectOptionVO : subjectOptionList) { |
| | | // bean.getOne(Wrappers.<AnswerRecordEntity>lambdaQuery(). |
| | | // eq(AnswerRecordEntity::getSubjectOptionId,subjectOptionVO.getId())) |
| | | // subjectOptionVO.setIds(); |
| | | // subjectOptionVO.setNumbers(); |
| | | // } |
| | | // } |
| | | return page.setRecords(subjectChoicesVOS); |
| | | } |
| | | |
| | | /** |