|
@@ -28,14 +28,13 @@ public class QcClientFacade {
|
|
|
|
|
|
public Response<OutputInfo> extract(QueryVo queryVo) {
|
|
|
URI uri = null;
|
|
|
+ String code = "active_profiles_" + SpringContextUtil.getActiveProfile();
|
|
|
+ String url = sysHospitalSetFacade.getValue(Long.valueOf(queryVo.getHospitalId()), code);
|
|
|
+ if (StringUtil.isBlank(url)) {
|
|
|
+ throw new CommonException(CommonErrorCode.NOT_EXISTS, "配置表内找不到评分接口地址数据!");
|
|
|
+ }
|
|
|
try {
|
|
|
- String code = "active_profiles_" + SpringContextUtil.getActiveProfile();
|
|
|
- String url = sysHospitalSetFacade.getValue(Long.valueOf(queryVo.getHospitalId()), code);
|
|
|
- if (StringUtil.isBlank(url)) {
|
|
|
- throw new CommonException(CommonErrorCode.NOT_EXISTS, "配置表内找不到评分接口地址数据!");
|
|
|
- }
|
|
|
uri = new URI(url);
|
|
|
-
|
|
|
} catch (Exception e) {
|
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR);
|
|
|
}
|