|
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.diagbot.client.CdssCoreClient;
|
|
|
+import com.diagbot.dto.ConceptDetailDTO;
|
|
|
import com.diagbot.dto.ConceptInfoDTO;
|
|
|
import com.diagbot.dto.DictionaryInfoDTO;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
@@ -28,6 +29,7 @@ import com.diagbot.util.SysUserUtils;
|
|
|
import com.diagbot.vo.ChangeStatusVO;
|
|
|
import com.diagbot.vo.ConceptInfoPageVO;
|
|
|
import com.diagbot.vo.ConceptInfoVO;
|
|
|
+import com.diagbot.vo.IdVO;
|
|
|
import com.diagbot.vo.StaticKnowledgeHISVO;
|
|
|
import com.diagbot.vo.StaticKnowledgeIndexVO;
|
|
|
import com.diagbot.vo.StaticKnowledgeVO;
|
|
@@ -601,4 +603,33 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据术语id获取静态信息
|
|
|
+ *
|
|
|
+ * @param idVO
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public ConceptInfoDTO getRecordById(IdVO idVO) {
|
|
|
+ ConceptInfoDTO conceptInfoDTO = new ConceptInfoDTO();
|
|
|
+ ConceptInfo conceptInfo = this.getById(idVO.getId());
|
|
|
+ if (conceptInfo == null) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ BeanUtil.copyProperties(conceptInfo, conceptInfoDTO);
|
|
|
+ QueryWrapper<ConceptDetail> conceptDetailQueryWrapper = new QueryWrapper<>();
|
|
|
+ conceptDetailQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
+ .eq("concept_id", idVO.getId())
|
|
|
+ .orderByAsc("order_no");
|
|
|
+ List<ConceptDetail> conceptDetailList = conceptDetailFacade.list(conceptDetailQueryWrapper);
|
|
|
+ if (ListUtil.isNotEmpty(conceptDetailList)) {
|
|
|
+ List<ConceptDetailDTO> details = BeanUtil.listCopyTo(conceptDetailList, ConceptDetailDTO.class);
|
|
|
+ conceptInfoDTO.setDetails(details);
|
|
|
+ //启用状态、修改人、修改时间为明细的内容
|
|
|
+ conceptInfoDTO.setModifier(conceptDetailList.get(0).getModifier());
|
|
|
+ conceptInfoDTO.setGmtModified(conceptDetailList.get(0).getGmtModified());
|
|
|
+ conceptInfoDTO.setIsDeleted(conceptDetailList.get(0).getIsDeleted());
|
|
|
+ }
|
|
|
+ return conceptInfoDTO;
|
|
|
+ }
|
|
|
}
|