diff options
| author | tanghao <[email protected]> | 2024-11-15 17:26:08 +0800 |
|---|---|---|
| committer | tanghao <[email protected]> | 2024-11-15 17:26:08 +0800 |
| commit | d50ef9da0ab9c321af5b1064987529f9839e0f42 (patch) | |
| tree | 1eb5e2174cfd75d38324201ea8c3f074458d452c | |
| parent | 3e7b0272c1a03442b17b4be735c45d8c126f4288 (diff) | |
fix: 取消空数据不更新nacos逻辑dev-24.11
2 files changed, 0 insertions, 8 deletions
diff --git a/cn-admin/src/main/java/net/geedge/modules/entity/service/impl/EntityProfilesServiceImpl.java b/cn-admin/src/main/java/net/geedge/modules/entity/service/impl/EntityProfilesServiceImpl.java index 886fdb3..e450d4a 100644 --- a/cn-admin/src/main/java/net/geedge/modules/entity/service/impl/EntityProfilesServiceImpl.java +++ b/cn-admin/src/main/java/net/geedge/modules/entity/service/impl/EntityProfilesServiceImpl.java @@ -74,10 +74,6 @@ public class EntityProfilesServiceImpl extends ServiceImpl<EntityProfilesDao, En public void uploadConfig() { // 查询所有配置数据 List<EntityProfiles> profiles = this.list(); - if(ObjectUtil.isEmpty(profiles)){ - log.debug("[EntityProfilesServiceImpl] [uploadConfig] [no data]"); - return; - } try { boolean uploadflag = nacosServer.publishConfig(Constant.ENTITY_PROFILES_DATAID, Constant.NACOS_ENTITY_CONFIG_GROUP, JSON.toJSONString(profiles)); if(!uploadflag){ diff --git a/cn-admin/src/main/java/net/geedge/modules/entity/service/impl/EntitySourcesServiceImpl.java b/cn-admin/src/main/java/net/geedge/modules/entity/service/impl/EntitySourcesServiceImpl.java index dd6ca74..80c7b18 100644 --- a/cn-admin/src/main/java/net/geedge/modules/entity/service/impl/EntitySourcesServiceImpl.java +++ b/cn-admin/src/main/java/net/geedge/modules/entity/service/impl/EntitySourcesServiceImpl.java @@ -84,10 +84,6 @@ public class EntitySourcesServiceImpl extends ServiceImpl<EntitySourcesDao, Enti public void uploadConfig() { // 查询所有配置数据 List<EntitySources> sources = this.list(); - if(ObjectUtil.isEmpty(sources)){ - log.debug("[EntitySourcesServiceImpl] [uploadConfig] [no data]"); - return; - } try { boolean uploadflag = nacosServer.publishConfig(Constant.ENTITY_SOURCES_DATAID, Constant.NACOS_ENTITY_CONFIG_GROUP, JSON.toJSONString(sources)); if(!uploadflag){ |
