|
@@ -630,13 +630,7 @@ public class QuestionFacade extends QuestionInfoServiceImpl {
|
|
|
}
|
|
|
QuestionDTO res = new QuestionDTO();
|
|
|
BeanUtil.copyProperties(questionInfo, res);
|
|
|
- // 如果是诊断,返回诊断类型
|
|
|
- if (questionInfo.getType() == QuestionTypeEnum.Disease.getKey()) {
|
|
|
- DisType disType = disTypeFacade.getOne(new QueryWrapper<DisType>()
|
|
|
- .eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
- .eq("dis_id", questionInfo.getId()));
|
|
|
- res.setDisType(disType == null ? DisTypeEnum.COMMON.getKey() : disType.getType());
|
|
|
- }
|
|
|
+
|
|
|
//获取明细项
|
|
|
List<QuestionDetail> questionDetailList = questionDetailFacade.getByQuestionId(questionVO.getId());
|
|
|
res.setQuestionDetailList(questionDetailList);
|