|
@@ -33,6 +33,7 @@ public class QcClientFacade {
|
|
|
if (StringUtil.isBlank(url)) {
|
|
|
throw new CommonException(CommonErrorCode.NOT_EXISTS, "配置表内找不到评分接口地址数据!");
|
|
|
}
|
|
|
+// String url = "http://127.0.0.1:6010";
|
|
|
try {
|
|
|
uri = new URI(url);
|
|
|
} catch (Exception e) {
|
|
@@ -44,13 +45,13 @@ public class QcClientFacade {
|
|
|
|
|
|
public Response<OutputInfo> analyseField(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, "配置表内找不到评分接口地址数据!");
|
|
|
-// }
|
|
|
+ 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 url = "http://127.0.0.1:6010";
|
|
|
+// String url = "http://127.0.0.1:6010";
|
|
|
uri = new URI(url);
|
|
|
} catch (Exception e) {
|
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR);
|