Bladeren bron

注解掉其他提醒假数据

gaodm 4 jaren geleden
bovenliggende
commit
486ab609fc
1 gewijzigde bestanden met toevoegingen van 15 en 16 verwijderingen
  1. 15 16
      src/main/java/com/diagbot/facade/PushFacade.java

+ 15 - 16
src/main/java/com/diagbot/facade/PushFacade.java

@@ -1,7 +1,6 @@
 package com.diagbot.facade;
 
 import com.diagbot.client.CdssCoreClient;
-import com.diagbot.dto.BillMsg;
 import com.diagbot.dto.IndicationDTO;
 import com.diagbot.dto.PushBaseDTO;
 import com.diagbot.dto.PushDTO;
@@ -162,6 +161,9 @@ public class PushFacade {
         //入参映射
         searchData = assembleFacade.assembleData(searchData);
         BeanUtil.copyProperties(searchData, indicationPushVO);
+        RespDTO<IndicationDTO> resp = cdssCoreClient.indication(indicationPushVO);
+        RespDTOUtil.respNGDeal(resp, "远程调用推理接口失败");
+        IndicationDTO indicationDTO = resp.data;
         //        IndicationDTO indicationDTO = new IndicationDTO();
         //        List<BillMsg> billMsgList = Lists.newArrayList();
         //        BillMsg item1 = new BillMsg();
@@ -181,9 +183,6 @@ public class PushFacade {
         //        item2.setType("血常规血小板计数30");
         //        criticalValList.add(item2);
         //        indicationDTO.setCriticalValList(criticalValList);
-        RespDTO<IndicationDTO> resp = cdssCoreClient.indication(indicationPushVO);
-        RespDTOUtil.respNGDeal(resp, "远程调用推理接口失败");
-        IndicationDTO indicationDTO = resp.data;
         //        //加入高危假数据
         //        if (ListUtil.isEmpty(indicationDTO.getHighRiskList())) {
         //            List<BillMsg> highRiskList = Lists.newArrayList();
@@ -196,18 +195,18 @@ public class PushFacade {
         //            highRiskList.add(item3);
         //            indicationDTO.setHighRiskList(highRiskList);
         //        }
-        //加入其他提醒假数据
-        if (ListUtil.isEmpty(indicationDTO.getOtherList())) {
-            List<BillMsg> otherList = new ArrayList<>();
-            BillMsg other = new BillMsg();
-            other.setMsg("该患者血小板计数<10×10^9/L,建议输注血小板。(假数据)");
-            other.setOrderName("血小板");
-            other.setOrderStandName("血小板");
-            other.setContent("");
-            other.setType("输血");
-            otherList.add(other);
-            indicationDTO.setOtherList(otherList);
-        }
+        //        //加入其他提醒假数据
+        //        if (ListUtil.isEmpty(indicationDTO.getOtherList())) {
+        //            List<BillMsg> otherList = new ArrayList<>();
+        //            BillMsg other = new BillMsg();
+        //            other.setMsg("该患者血小板计数<10×10^9/L,建议输注血小板。(假数据)");
+        //            other.setOrderName("血小板");
+        //            other.setOrderStandName("血小板");
+        //            other.setContent("");
+        //            other.setType("输血");
+        //            otherList.add(other);
+        //            indicationDTO.setOtherList(otherList);
+        //        }
         return indicationDTO;
     }