From 9f8f9d13c42ca8cdccbf351069082a5fdccef2e4 Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Mon, 25 Mar 2024 17:30:51 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/main/java/org/springblade/modules/community/service/impl/CommunityServiceImpl.java |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/main/java/org/springblade/modules/community/service/impl/CommunityServiceImpl.java b/src/main/java/org/springblade/modules/community/service/impl/CommunityServiceImpl.java
index 02e1cca..602241d 100644
--- a/src/main/java/org/springblade/modules/community/service/impl/CommunityServiceImpl.java
+++ b/src/main/java/org/springblade/modules/community/service/impl/CommunityServiceImpl.java
@@ -76,6 +76,13 @@
 				one.setGeom(communityExcel.getGeom());
 				// 更新
 				updateById(one);
+			}else {
+				// 新增
+				CommunityEntity communityEntity = new CommunityEntity();
+				communityEntity.setCode(communityExcel.getCommunityCode());
+				communityEntity.setName(communityExcel.getCommunityName());
+				communityEntity.setGeom(communityExcel.getGeom());
+				save(communityEntity);
 			}
 		}
 	}

--
Gitblit v1.9.3