浏览代码

fix: redis bean

xdd 2 周之前
父节点
当前提交
607215791f
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      fs-service/src/main/java/com/fs/his/service/impl/FsStorePaymentServiceImpl.java

+ 3 - 0
fs-service/src/main/java/com/fs/his/service/impl/FsStorePaymentServiceImpl.java

@@ -120,6 +120,7 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.BeanUtils;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Qualifier;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.data.redis.core.RedisTemplate;
 import org.springframework.scheduling.annotation.Async;
@@ -186,9 +187,11 @@ public class FsStorePaymentServiceImpl implements IFsStorePaymentService {
     private RedisCache redisCache;
 
     @Autowired
+    @Qualifier("redisTemplateForBigDecimal")
     private RedisTemplate<String,BigDecimal> redisTemplate;
 
     @Autowired
+    @Qualifier("redisTemplateForInteger")
     private RedisTemplate<String,Integer> redisTemplateInteger;
     /**
      * 红包领取数量限制 默认一个用户当天最多只能领取10个