diff --git a/README.md b/README.md index e5028d4..bb4008d 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Nacos 从 2.2.0 版本开始,可通过 SPI 机制注入多数据源实现插件, com.pig4cloud.plugin nacos-datasource-plugin-dm8 - 0.0.1 + 0.0.2 diff --git a/pom.xml b/pom.xml index 0d10cc6..6fd856c 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ org.springframework.boot spring-boot-starter-parent - 2.7.6 + 2.7.15 @@ -11,7 +11,7 @@ 4.0.0 com.pig4cloud.plugin nacos-datasource-plugin-dm8 - 0.0.1 + 0.0.2 nacos-datasource-plugin-dm8 nacos-datasource-plugin-dm8 https://pig4cloud.com @@ -25,7 +25,7 @@ - 2.2.0 + 2.2.4 0.0.32 3.8.1 1.8 diff --git a/src/main/java/com/pig4cloud/plugin/impl/dm/ConfigInfoAggrMapperByDm.java b/src/main/java/com/pig4cloud/plugin/impl/dm/ConfigInfoAggrMapperByDm.java index e478c48..049ea0e 100644 --- a/src/main/java/com/pig4cloud/plugin/impl/dm/ConfigInfoAggrMapperByDm.java +++ b/src/main/java/com/pig4cloud/plugin/impl/dm/ConfigInfoAggrMapperByDm.java @@ -8,7 +8,6 @@ public class ConfigInfoAggrMapperByDm extends DmAbstractMapper implements ConfigInfoAggrMapper { - @Override public String batchRemoveAggr(List datumList) { final StringBuilder datumString = new StringBuilder(); for (String datum : datumList) { diff --git a/src/main/java/com/pig4cloud/plugin/impl/dm/HistoryConfigInfoMapperByDm.java b/src/main/java/com/pig4cloud/plugin/impl/dm/HistoryConfigInfoMapperByDm.java index 5dd9eed..1706ca3 100644 --- a/src/main/java/com/pig4cloud/plugin/impl/dm/HistoryConfigInfoMapperByDm.java +++ b/src/main/java/com/pig4cloud/plugin/impl/dm/HistoryConfigInfoMapperByDm.java @@ -27,6 +27,11 @@ public String findConfigHistoryFetchRows() { + "WHERE data_id = ? AND group_id = ? AND (tenant_id = ? OR tenant_id IS NULL) ORDER BY nid DESC"; } + @Override + public String pageFindConfigHistoryFetchRows(int i, int i1) { + throw new UnsupportedOperationException(); + } + @Override public String detailPreviousConfigHistory() { return "SELECT nid,data_id,group_id,tenant_id,app_name,content,md5,src_user,src_ip,op_type,gmt_create,gmt_modified "