From 1fcad6c88fbb9d7935f1f31f419e36a3bf241ba4 Mon Sep 17 00:00:00 2001 From: chenhc <2369838784@qq.com> Date: Tue, 11 Feb 2025 14:27:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E9=98=BF=E9=87=8C?= =?UTF-8?q?=E5=81=A5=E5=BA=B7=E5=B9=B3=E5=8F=B0=E8=BD=AC=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/controller/sync/SyncController.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) 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) {