From 4fd53fe4343175e07cd1cb824635a327e04bb261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=9D=E5=B0=98?= <237809796@qq.com> Date: Fri, 20 Jun 2025 22:40:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9:=20=E7=A7=BB=E9=99=A4=20Base?= =?UTF-8?q?Service=20=E4=B8=AD=E7=9A=84=E5=86=97=E4=BD=99search=5Fpath=20?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=BB=A3=E7=A0=81=E5=B9=B6=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=20redkale=20=E4=BE=9D=E8=B5=96=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- src/com/zchd/base/BaseService.java | 12 ++++-------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index 9a63b32..0f15232 100644 --- a/pom.xml +++ b/pom.xml @@ -25,7 +25,7 @@ org.redkale redkale - 2.2.0 + 2.2.250620 diff --git a/src/com/zchd/base/BaseService.java b/src/com/zchd/base/BaseService.java index 1aa6248..4f24859 100644 --- a/src/com/zchd/base/BaseService.java +++ b/src/com/zchd/base/BaseService.java @@ -1,19 +1,15 @@ package com.zchd.base; -import com.zchd.base.util.Utils; import net.tccn.zhub.ZHubClient; import org.redkale.convert.json.JsonConvert; import org.redkale.service.AbstractService; import org.redkale.service.RetResult; -import org.redkale.source.DataJdbcSource; import org.redkale.source.DataSource; -import org.redkale.source.PoolSource; import org.redkale.util.AnyValue; import org.redkale.util.Sheet; import javax.annotation.Resource; import java.io.File; -import java.sql.Connection; import java.util.List; import java.util.logging.Logger; @@ -48,7 +44,7 @@ public class BaseService extends AbstractService { @Override public void init(AnyValue config) { - PoolSource source = ((DataJdbcSource) zimSource).getReadPoolSource(); + /*PoolSource source = ((DataJdbcSource) zimSource).getReadPoolSource(); // postgresql 设置当前schema if ("postgresql".equals(source.getDbtype())) { String url = source.getUrl(); @@ -57,7 +53,7 @@ public class BaseService extends AbstractService { schema = "public"; } ((DataJdbcSource) zimSource).directExecute(String.format("SET search_path TO %s;", schema)); - } + }*/ } protected RetResult retError(String info) { @@ -74,7 +70,7 @@ public class BaseService extends AbstractService { * @param url * @return */ - protected String getCurrentSchema(String url) { + /*protected String getCurrentSchema(String url) { String[] arr = url.split("currentSchema="); if (arr.length > 1) { String[] arr2 = arr[1].split("&"); @@ -83,5 +79,5 @@ public class BaseService extends AbstractService { } } return ""; - } + }*/ }