From f3de121c52ea4fa2acde0c1549e3220ddd7f06ff Mon Sep 17 00:00:00 2001 From: richie Date: Mon, 26 Nov 2018 15:12:10 +0800 Subject: [PATCH] =?UTF-8?q?redis=E6=9C=8D=E5=8A=A1=E5=99=A8=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E9=9B=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fr/plugin/db/redis/core/RedisTableData.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/fr/plugin/db/redis/core/RedisTableData.java b/src/main/java/com/fr/plugin/db/redis/core/RedisTableData.java index 51a6a7a..9ad03d8 100755 --- a/src/main/java/com/fr/plugin/db/redis/core/RedisTableData.java +++ b/src/main/java/com/fr/plugin/db/redis/core/RedisTableData.java @@ -5,6 +5,7 @@ import com.fr.base.TableData; import com.fr.base.TemplateUtils; import com.fr.config.holder.Conf; import com.fr.config.holder.factory.Holders; +import com.fr.config.holder.factory.XmlHolders; import com.fr.data.AbstractParameterTableData; import com.fr.data.core.DataCoreXmlUtils; import com.fr.data.impl.Connection; @@ -32,7 +33,7 @@ import java.util.Map; public class RedisTableData extends AbstractParameterTableData { private Conf database = Holders.obj(null, Connection.class); - private Conf dbIndex = Holders.obj(new NumberOrderValue(0), OrderValue.class); + private Conf dbIndex = XmlHolders.obj(new NumberOrderValue(0), OrderValue.class); private Conf query = Holders.simple(StringUtils.EMPTY); public void setDatabase(Connection c) { @@ -147,7 +148,7 @@ public class RedisTableData extends AbstractParameterTableData { RedisTableData cloned = (RedisTableData) super.clone(); cloned.database = (Conf) database.clone(); cloned.query = (Conf) query.clone(); - cloned.dbIndex = dbIndex; + cloned.dbIndex = (Conf) dbIndex.clone(); return cloned; } } \ No newline at end of file