|
@ -87,13 +87,12 @@ public class QuestionService implements IQuestionService { |
|
|
//检查当前试题是否有答案,共享答案的试题是否有答案
|
|
|
//检查当前试题是否有答案,共享答案的试题是否有答案
|
|
|
boolean f = false; |
|
|
boolean f = false; |
|
|
HtPatientScoreExample scoreExample = new HtPatientScoreExample(); |
|
|
HtPatientScoreExample scoreExample = new HtPatientScoreExample(); |
|
|
scoreExample.createCriteria().andPatientIdEqualTo(query.getPatientReportId()).andQuestionIdEqualTo(question.getId()); |
|
|
scoreExample.createCriteria().andPatientReportIdEqualTo(query.getPatientReportId()).andQuestionIdEqualTo(question.getId()) |
|
|
|
|
|
.andTypeBetween((byte)0,(byte)1); |
|
|
if(htPatientScoreDao.countByExample(scoreExample) > 0){ |
|
|
if(htPatientScoreDao.countByExample(scoreExample) > 0){ |
|
|
f = true; |
|
|
f = true; |
|
|
questionVo.setShowShareAnswer((byte) 0); |
|
|
questionVo.setShowShareAnswer((byte) 0); |
|
|
} |
|
|
} |
|
|
// //试题选项
|
|
|
|
|
|
// List<QuestionVo.Option> optionList = htQuestionOptionDao.queryOption(question.getId(), query.getPatientReportId());
|
|
|
|
|
|
|
|
|
|
|
|
//查询可以共享答案的试题的id
|
|
|
//查询可以共享答案的试题的id
|
|
|
List<Long> shareAnswerIds = new ArrayList<>(); |
|
|
List<Long> shareAnswerIds = new ArrayList<>(); |
|
|