From f400b164c98279da7db18c0835165aad3cc705aa Mon Sep 17 00:00:00 2001 From: daxpay Date: Thu, 30 Jul 2026 09:12:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(cache):=20=E7=A7=BB=E9=99=A4=E5=8F=8D?= =?UTF-8?q?=E5=BA=8F=E5=88=97=E5=8C=96=E4=B8=A2=E5=A4=B1=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E7=9A=84=E5=AE=9E=E4=BD=93=E7=BC=93=E5=AD=98=E6=B3=A8=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../merchant/dao/channel/ChannelMerchantManager.java | 6 ------ .../merchant/service/channel/ChannelMerchantService.java | 4 ---- .../open/platform/system/service/dict/DictItemService.java | 3 --- 3 files changed, 13 deletions(-) diff --git a/daxpay-payment/daxpay-payment-core/src/main/java/cn/daxpay/open/payment/merchant/dao/channel/ChannelMerchantManager.java b/daxpay-payment/daxpay-payment-core/src/main/java/cn/daxpay/open/payment/merchant/dao/channel/ChannelMerchantManager.java index d768e54a4..c483f7693 100644 --- a/daxpay-payment/daxpay-payment-core/src/main/java/cn/daxpay/open/payment/merchant/dao/channel/ChannelMerchantManager.java +++ b/daxpay-payment/daxpay-payment-core/src/main/java/cn/daxpay/open/payment/merchant/dao/channel/ChannelMerchantManager.java @@ -14,7 +14,6 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.springframework.cache.annotation.Cacheable; import org.springframework.stereotype.Service; import java.util.List; @@ -67,11 +66,6 @@ public class ChannelMerchantManager extends BaseManager findByChannelMchNo(String channelMchNo){ return this.lambdaQuery() .eq(ChannelMerchant::getChannelMchNo, channelMchNo) diff --git a/daxpay-payment/daxpay-payment-core/src/main/java/cn/daxpay/open/payment/merchant/service/channel/ChannelMerchantService.java b/daxpay-payment/daxpay-payment-core/src/main/java/cn/daxpay/open/payment/merchant/service/channel/ChannelMerchantService.java index 374a005d6..280ea27c5 100644 --- a/daxpay-payment/daxpay-payment-core/src/main/java/cn/daxpay/open/payment/merchant/service/channel/ChannelMerchantService.java +++ b/daxpay-payment/daxpay-payment-core/src/main/java/cn/daxpay/open/payment/merchant/service/channel/ChannelMerchantService.java @@ -41,7 +41,6 @@ import cn.daxpay.open.payment.trade.order.entity.PayTrade; import cn.daxpay.open.payment.trade.order.entity.RefundOrder; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.springframework.cache.annotation.CacheEvict; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -106,7 +105,6 @@ public class ChannelMerchantService { } /// 编辑 - @CacheEvict(value = "payment:channel-mch", allEntries = true) public void update(ChannelMerchantEditParam param){ // 通道: 通道商户不存在 var mchInfo = channelMerchantManager.findById(param.getId()).orElseThrow(() -> new DataNotExistException("error.payment.channel.channelMerchantNotExist")); @@ -127,7 +125,6 @@ public class ChannelMerchantService { /// - 通道扩展表(`XxxChannelMerchant` + `XxxKeyConfig`)由各通道子模块通过 SPI 自清理, /// 未实现 SPI 的通道留孤儿数据(主表已删、路由不再命中,对业务无影响) @Transactional(rollbackFor = Exception.class) - @CacheEvict(value = "payment:channel-mch", allEntries = true) public void delete(Long id){ // 通道: 通道商户不存在 var mchInfo = channelMerchantManager.findById(id) @@ -213,7 +210,6 @@ public class ChannelMerchantService { } /// 更新启用状态 - @CacheEvict(value = "payment:channel-mch", allEntries = true) public void updateEnable(Long id, Boolean enable){ // 通道: 通道商户不存在 var mchInfo = channelMerchantManager.findById(id).orElseThrow(() -> new DataNotExistException("error.payment.channel.channelMerchantNotExist")); diff --git a/daxpay-platform/daxpay-platform-service/service-system/src/main/java/cn/daxpay/open/platform/system/service/dict/DictItemService.java b/daxpay-platform/daxpay-platform-service/service-system/src/main/java/cn/daxpay/open/platform/system/service/dict/DictItemService.java index 544d6a1de..193cf6fe9 100644 --- a/daxpay-platform/daxpay-platform-service/service-system/src/main/java/cn/daxpay/open/platform/system/service/dict/DictItemService.java +++ b/daxpay-platform/daxpay-platform-service/service-system/src/main/java/cn/daxpay/open/platform/system/service/dict/DictItemService.java @@ -15,8 +15,6 @@ import cn.daxpay.open.platform.core.rest.param.PageParam; import cn.daxpay.open.platform.core.rest.result.PageResult; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import lombok.AllArgsConstructor; -import org.springframework.cache.annotation.CacheEvict; -import org.springframework.cache.annotation.Cacheable; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -92,7 +90,6 @@ public class DictItemService { /// 查询指定字典编码下所有启用的字典项完整列表(含多语言字段) /// 供 DictTranslatorImpl 使用 /// @return 字典项完整实体列表 - @Cacheable(value = "system:dict", key = "#dictCode + ':list'") public List findAllEnableByDictCode(String dictCode) { return dictItemManager.findByDictCodeAndEnable(dictCode, true); }