diff --git a/api-admin/src/main/java/com/glxp/sale/admin/controller/sync/SyncController.java b/api-admin/src/main/java/com/glxp/sale/admin/controller/sync/SyncController.java index 889d715..5996a1b 100644 --- a/api-admin/src/main/java/com/glxp/sale/admin/controller/sync/SyncController.java +++ b/api-admin/src/main/java/com/glxp/sale/admin/controller/sync/SyncController.java @@ -173,6 +173,27 @@ public class SyncController { 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管理系统同步数据中转 @RequestMapping("/directToSpms/**") public Object directToSpms(HttpServletRequest request, HttpServletResponse httpServletResponse) {