提交 152c2229 编写于 作者: minghao.wu's avatar minghao.wu

feature: 新增第一期 第二期标题

上级 882ac16a
...@@ -163,6 +163,14 @@ public class CHCAnalysisServiceImpl implements CHCAnalysisService { ...@@ -163,6 +163,14 @@ public class CHCAnalysisServiceImpl implements CHCAnalysisService {
public List<ExamTitleDto> getExamTitleListByRoundId(Integer roundId) { public List<ExamTitleDto> getExamTitleListByRoundId(Integer roundId) {
List<AnalysisRoundExamTitle> roundExamTitleList = analysisRoundExamTitleMapper.selectExamTitleListByRoundId(roundId); List<AnalysisRoundExamTitle> roundExamTitleList = analysisRoundExamTitleMapper.selectExamTitleListByRoundId(roundId);
/**
* TODO: 上一轮的id 测试用
*/
if (roundId == 2) {
List<AnalysisRoundExamTitle> roundExamTitleList1 = analysisRoundExamTitleMapper.selectExamTitleListByRoundId(1);
roundExamTitleList.addAll(roundExamTitleList1);
}
if (null == roundExamTitleList) { if (null == roundExamTitleList) {
return null; return null;
} }
...@@ -193,6 +201,15 @@ public class CHCAnalysisServiceImpl implements CHCAnalysisService { ...@@ -193,6 +201,15 @@ public class CHCAnalysisServiceImpl implements CHCAnalysisService {
examTitleDto.setType(analysisRoundExamTitle.getExamTitleType()); examTitleDto.setType(analysisRoundExamTitle.getExamTitleType());
examTitleDto.setQuestion(analysisRoundExamTitle.getSeqNo().toString() + "." + analysisRoundExamTitle.getQuestion()); examTitleDto.setQuestion(analysisRoundExamTitle.getSeqNo().toString() + "." + analysisRoundExamTitle.getQuestion());
/**
* TODO: 删除 临时使用
*/
if (analysisRoundExamTitle.getRoundId().intValue() == 1) {
examTitleDto.setQuestion("[第一期]" + examTitleDto.getQuestion());
} else if (analysisRoundExamTitle.getRoundId().intValue() == 2) {
examTitleDto.setQuestion("[第二期]" + examTitleDto.getQuestion());
}
/** /**
* 设置选项 * 设置选项
*/ */
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册