feat: 增加阿里健康平台转发

dev
chenhc 2 months ago
parent 23ae9fabe8
commit 1fcad6c88f

@ -173,6 +173,27 @@ public class SyncController {
return jsonObject; return jsonObject;
} }
//UDI管理系统同步数据中转至阿里健康api平台
@RequestMapping("/syncToAliapi/**")
public Object syncToAliapi(HttpServletRequest request, HttpServletResponse httpServletResponse) {
String uri = uriUtils.parseUri(request.getRequestURL().toString());
String isTopService = systemParamConfigService.selectValueByParamKey("is_top_aliService");
if (StrUtil.isNotEmpty(isTopService) && isTopService.equals("1")) {
uri = uri.replace("syncToAliapi/", "");
}
String upperServerHost = systemParamConfigService.selectValueByParamKey("aliApi_server_ip");
if (StrUtil.isNotEmpty(upperServerHost)) {
uri = upperServerHost + "/" + uri;
}
uri = changeUri(uri);
JSONObject jsonObject = redirect(request, uri);
return jsonObject;
}
//UDI管理系统同步数据中转 //UDI管理系统同步数据中转
@RequestMapping("/directToSpms/**") @RequestMapping("/directToSpms/**")
public Object directToSpms(HttpServletRequest request, HttpServletResponse httpServletResponse) { public Object directToSpms(HttpServletRequest request, HttpServletResponse httpServletResponse) {

Loading…
Cancel
Save