From 1cc939f457e158e84a39f21e7da1ed1b066fdcaf Mon Sep 17 00:00:00 2001 From: Chopper711 Date: Thu, 10 Aug 2023 16:08:23 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E8=A1=8C=E6=94=BF=E5=9C=B0=E5=8C=BA?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E5=88=A0=E9=99=A4=E6=88=96=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=EF=BC=8C=E7=94=B1=E4=BA=8E=E7=BC=93=E5=AD=98=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E8=A2=AB=E6=B8=85=E7=A9=BA=E5=AF=BC=E8=87=B4=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lili/modules/system/service/RegionService.java | 12 ++++++++++++ .../system/serviceimpl/RegionServiceImpl.java | 11 +++++++++++ 2 files changed, 23 insertions(+) diff --git a/framework/src/main/java/cn/lili/modules/system/service/RegionService.java b/framework/src/main/java/cn/lili/modules/system/service/RegionService.java index 8d57be21..e33387ef 100644 --- a/framework/src/main/java/cn/lili/modules/system/service/RegionService.java +++ b/framework/src/main/java/cn/lili/modules/system/service/RegionService.java @@ -28,6 +28,18 @@ public interface RegionService extends IService { */ @CacheEvict(allEntries = true) boolean updateById(Region region); + /** + * 更新地区 + * + * @param region 地区 + * @return + */ + @CacheEvict(allEntries = true) + boolean save(Region region); + + + @CacheEvict(allEntries = true) + boolean removeByIds(List idList); /** * 同步行政数据 * diff --git a/framework/src/main/java/cn/lili/modules/system/serviceimpl/RegionServiceImpl.java b/framework/src/main/java/cn/lili/modules/system/serviceimpl/RegionServiceImpl.java index d23d9659..8844dc72 100644 --- a/framework/src/main/java/cn/lili/modules/system/serviceimpl/RegionServiceImpl.java +++ b/framework/src/main/java/cn/lili/modules/system/serviceimpl/RegionServiceImpl.java @@ -44,6 +44,17 @@ public class RegionServiceImpl extends ServiceImpl impleme return super.updateById(region); } + @Transactional + @Override + public boolean save(Region region) { + return super.save(region); + } + + @Override + public boolean removeByIds(List idList) { + return super.removeByIds(idList); + } + @Override public void synchronizationData(String url) { try {