zhaops 5 년 전
부모
커밋
5e6e917583
1개의 변경된 파일1개의 추가작업 그리고 25개의 파일을 삭제
  1. 1 25
      bi-service/src/main/java/com/diagbot/facade/StatisticsFacade.java

+ 1 - 25
bi-service/src/main/java/com/diagbot/facade/StatisticsFacade.java

@@ -1,7 +1,5 @@
 package com.diagbot.facade;
 
-import com.diagbot.client.KnowledgemanServiceClient;
-import com.diagbot.client.PrecmanServiceClient;
 import com.diagbot.dto.BIDTO;
 import com.diagbot.dto.BIItemDTO;
 import com.diagbot.dto.BIModuleDTO;
@@ -24,11 +22,6 @@ import java.util.Map;
  */
 @Component
 public class StatisticsFacade {
-    @Autowired
-    private KnowledgemanServiceClient knowledgemanServiceClient;
-    @Autowired
-    private PrecmanServiceClient precmanServiceClient;
-
     @Autowired
     DataBeanAggregateQueryFacade dataBeanAggregateQueryFacade;
 
@@ -38,27 +31,10 @@ public class StatisticsFacade {
         try {
             biItemDTOList
                     = dataBeanAggregateQueryFacade.get("biAll", null, List.class);
-        } catch (Exception e){
+        } catch (Exception e) {
             throw new CommonException(CommonErrorCode.SERVER_IS_ERROR);
         }
 
-        //        //静态知识统计
-        //        RespDTO<List<BIItemDTO>> cdResp = knowledgemanServiceClient.conceptDetailBI();
-        //        if (RespDTOUtil.respIsOK(cdResp)) {
-        //            biItemDTOList.addAll(cdResp.data);
-        //        }
-        //        //预问诊统计
-        //        RespDTO<BIItemDTO> precResp = precmanServiceClient.getCount();
-        //        if (RespDTOUtil.respIsOK(precResp)) {
-        //            biItemDTOList.add(precResp.data);
-        //        }
-        //
-        //        //术语统计
-        //        RespDTO<List<BIItemDTO>> conceptResp = knowledgemanServiceClient.queryLibTypeCou();
-        //        if (RespDTOUtil.respIsOK(conceptResp)) {
-        //            biItemDTOList.addAll(conceptResp.data);
-        //        }
-
         Map<String, List<BIItemDTO>> map = EntityUtil.makeEntityListMap(biItemDTOList, "moduleName");
         bidto.setDiagnose(getBIModuleDTO(map, StatisticsTypeEnum.DIAGNOSE.getKey()));
         bidto.setSymptom(getBIModuleDTO(map, StatisticsTypeEnum.SYMPTOM.getKey()));