Jelajahi Sumber

临时处理,关闭异常,量表的静态知识可以显示

zhoutg 6 tahun lalu
induk
melakukan
b269c40f5f

+ 2 - 2
icss-service/src/main/java/com/diagbot/facade/PushFacade.java

@@ -5,7 +5,6 @@ import com.alibaba.fastjson.JSONObject;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.diagbot.client.AiptServiceClient;
 import com.diagbot.client.TranServiceClient;
-import com.diagbot.client.bean.CalcResult;
 import com.diagbot.client.bean.FeatureRate;
 import com.diagbot.client.bean.GdbResponse;
 import com.diagbot.client.bean.MedicalIndication;
@@ -172,7 +171,8 @@ public class PushFacade {
     public Map<String, Object> scale(SearchData searchData) {
         Response<Map<String, Object>> res = aiptServiceClient.scale(searchData);
         if (null == res || null == res.getData()) {
-            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "中间层没有返回结果");
+//            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "中间层没有返回结果");
+            return new HashMap<String, Object>();
         }
         return res.getData();
     }