|
@@ -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));
|
|
|
}
|