Sfoglia il codice sorgente

分诊病历测试

zhaops 4 anni fa
parent
commit
faced18995

+ 3 - 1
triage-service/src/main/java/com/diagbot/facade/MRTestFacade.java

@@ -123,9 +123,11 @@ public class MRTestFacade {
             throw new CommonException(CommonErrorCode.PARAM_IS_NULL, "请输入医院编码");
         }
         RespDTO<ResponseDataWithExplainV2> res = null;
+        int count = 0;
         do {
             res = aiptServiceClient.pushWithExplainV2(assembleFacade.assembleData(aivo, type));
-        } while (res == null || RespDTOUtil.respIsNG(res));
+            count++;
+        } while ((res == null || RespDTOUtil.respIsNG(res)||ListUtil.isEmpty(res.data.getDis())) && count <= 5);
 
         List<FeatureRateV2> dis = res.data.getDis();
         if (ListUtil.isNotEmpty(dis)) {