Browse Source

20210107未选择病人点试题报错

sd
zy_Java 5 years ago
parent
commit
58dd4f9f6f
  1. 2
      ht/src/main/java/com/ccsens/ht/service/QuestionService.java

2
ht/src/main/java/com/ccsens/ht/service/QuestionService.java

@ -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<>();

Loading…
Cancel
Save