Browse Source

优化业务逻辑

lighter 9 months ago
parent
commit
6786464402

+ 5 - 1
src/main/java/thyyxxk/webserver/service/medicalinsurance/SiQueryService.java

@@ -387,7 +387,11 @@ public class SiQueryService {
             throw new BizException(ExceptionEnum.LOGICAL_ERROR, "医保中心报错:" + result.getString("message"));
         }
         if (result.getIntValue(RESULT_CODE) == 0) {
-            return result.getJSONObject(OUTPUT);
+            JSONObject output = result.getJSONObject(OUTPUT);
+            if (null == output.getJSONObject("setlinfo").getString("setl_id")) {
+                throw new BizException(ExceptionEnum.LOGICAL_ERROR, "没有查询到患者的医保结算信息。");
+            }
+            return output;
         }
         throw new BizException(ExceptionEnum.LOGICAL_ERROR, result.getString(ERROR_MESSAGE));
     }