|
@@ -46,6 +46,7 @@ import com.diagbot.vo.GetQuestionIdsByTypeVO;
|
|
|
import com.diagbot.vo.GetQuestionInfoVO;
|
|
|
import com.diagbot.vo.GetQuestionUsualByDeptVO;
|
|
|
import com.diagbot.vo.QuestionIdsVO;
|
|
|
+import com.diagbot.vo.QuestionIndexSubVO;
|
|
|
import com.diagbot.vo.QuestionIndexVO;
|
|
|
import com.diagbot.vo.QuestionPageVO;
|
|
|
import com.diagbot.vo.QuestionSaveVO;
|
|
@@ -622,6 +623,34 @@ public class QuestionFacade extends QuestionInfoServiceImpl {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 根据主标签id 检索子标签
|
|
|
+ * @param questionIndexSubVO
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<QuestionInfo> indexSub(QuestionIndexSubVO questionIndexSubVO) {
|
|
|
+ Map<String, Object> paramMap = new HashMap<>();
|
|
|
+ paramMap.put("age", questionIndexSubVO.getAge());
|
|
|
+ paramMap.put("sexType", questionIndexSubVO.getSexType());
|
|
|
+ paramMap.put("tagName", questionIndexSubVO.getTagName());
|
|
|
+ paramMap.put("type", questionIndexSubVO.getType());
|
|
|
+ paramMap.put("controlType", questionIndexSubVO.getControlType());
|
|
|
+ paramMap.put("notIds", questionIndexSubVO.getNotIds());
|
|
|
+ paramMap.put("tagType", questionIndexSubVO.getTagType());
|
|
|
+ paramMap.put("existName", questionIndexSubVO.getExistName());
|
|
|
+ paramMap.put("notTagType", questionIndexSubVO.getNotTagType());
|
|
|
+ paramMap.put("notControlType", questionIndexSubVO.getNotControlType());
|
|
|
+
|
|
|
+ QueryWrapper<QuestionMapping> questionMappingQueryWrapper = new QueryWrapper<>();
|
|
|
+ questionMappingQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey()).eq("parent_question", questionIndexSubVO.getParentId());
|
|
|
+ List<QuestionMapping> questionMappingList = questionMappingFacade.list(questionMappingQueryWrapper);
|
|
|
+ if (ListUtil.isNotEmpty(questionMappingList)) {
|
|
|
+ List<Long> sonIds = questionMappingList.stream().map(questionMapping -> questionMapping.getSonQuestion()).collect(Collectors.toList());
|
|
|
+ paramMap.put("ids", sonIds);
|
|
|
+ }
|
|
|
+ List<QuestionInfo> res = this.index(paramMap);
|
|
|
+ return res;
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 获取特殊标签(同伴|无)
|