|
|
@ -86,6 +86,7 @@ public class QuestionService implements IQuestionService { |
|
|
|
QuestionVo.Question questionVo = QuestionVo.Question.toQuestionVo(question); |
|
|
|
//检查当前试题是否有答案,共享答案的试题是否有答案
|
|
|
|
boolean f = false; |
|
|
|
if(ObjectUtil.isNotNull(query.getPatientReportId())){ |
|
|
|
HtPatientScoreExample scoreExample = new HtPatientScoreExample(); |
|
|
|
scoreExample.createCriteria().andPatientReportIdEqualTo(query.getPatientReportId()).andQuestionIdEqualTo(question.getId()) |
|
|
|
.andTypeBetween((byte)0,(byte)1); |
|
|
@ -93,6 +94,7 @@ public class QuestionService implements IQuestionService { |
|
|
|
f = true; |
|
|
|
questionVo.setShowShareAnswer((byte) 0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//查询可以共享答案的试题的id
|
|
|
|
List<Long> shareAnswerIds = new ArrayList<>(); |
|
|
|