|
@@ -19,6 +19,7 @@ import com.diagbot.util.StringUtil;
|
|
|
import com.diagbot.vo.ConceptBaseVO;
|
|
|
import com.diagbot.vo.ConceptIntroduceVO;
|
|
|
import com.diagbot.vo.ExistListByConceptIdsVO;
|
|
|
+import com.google.common.collect.Lists;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
@@ -38,7 +39,7 @@ public class ConceptDetailFacade extends ConceptDetailServiceImpl {
|
|
|
private ConceptFacade conceptFacade;
|
|
|
|
|
|
/**
|
|
|
- * 获取提示信息
|
|
|
+ * 单条获取静态知识
|
|
|
*
|
|
|
* @param conceptIntroduceVO
|
|
|
* @return
|
|
@@ -82,10 +83,32 @@ public class ConceptDetailFacade extends ConceptDetailServiceImpl {
|
|
|
ConceptIntroduceDTO conceptIntroduceDTO = new ConceptIntroduceDTO();
|
|
|
conceptIntroduceDTO.setConceptId(concept.getId());
|
|
|
conceptIntroduceDTO.setName(concept.getLibName());
|
|
|
+ conceptIntroduceDTO.setLibType(concept.getLibType());
|
|
|
+ conceptIntroduceDTO.setType(ParamConvertUtil.libConvert2Concept(concept.getLibType().intValue()));
|
|
|
conceptIntroduceDTO.setDetails(conceptDetailDTOList);
|
|
|
return conceptIntroduceDTO;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 批量取静态知识
|
|
|
+ *
|
|
|
+ * @param conceptIntroduceVOList
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public List<ConceptIntroduceDTO> getConceptDetails(List<ConceptIntroduceVO> conceptIntroduceVOList) {
|
|
|
+ List<ConceptIntroduceDTO> conceptIntroduceDTOList = Lists.newLinkedList();
|
|
|
+ if (ListUtil.isNotEmpty(conceptIntroduceVOList)) {
|
|
|
+ for (ConceptIntroduceVO conceptIntroduceVO : conceptIntroduceVOList) {
|
|
|
+ ConceptIntroduceDTO conceptIntroduceDTO = getConceptDetail(conceptIntroduceVO);
|
|
|
+ if (conceptIntroduceDTO != null) {
|
|
|
+ conceptIntroduceDTOList.add(conceptIntroduceDTO);
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return conceptIntroduceDTOList;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 是否存在提示信息
|
|
|
*
|