From cebc50ae8295dd24e2fd5ba0d4d236459a5190a3 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期日, 02 六月 2019 22:59:35 +0800
Subject: [PATCH] 修改物业收费js

---
 RuleService/src/main/java/com/java110/rule/dao/impl/RuleDaoImpl.java |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/RuleService/src/main/java/com/java110/rule/dao/impl/RuleDaoImpl.java b/RuleService/src/main/java/com/java110/rule/dao/impl/RuleDaoImpl.java
index 6688101..831a580 100644
--- a/RuleService/src/main/java/com/java110/rule/dao/impl/RuleDaoImpl.java
+++ b/RuleService/src/main/java/com/java110/rule/dao/impl/RuleDaoImpl.java
@@ -7,6 +7,8 @@
 import com.java110.entity.rule.RuleCondCfg;
 import com.java110.entity.rule.RuleEntrance;
 import com.java110.rule.dao.IRuleDao;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 import org.springframework.cache.annotation.Cacheable;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
@@ -22,6 +24,7 @@
 @Service("ruleDaoImpl")
 @Transactional
 public class RuleDaoImpl extends BaseServiceDao implements IRuleDao {
+    private final static Logger logger = LoggerFactory.getLogger(RuleDaoImpl.class);
 
 
     @Override
@@ -67,7 +70,7 @@
     @Cacheable(key=RuleDomain.REDIS_KEY_RULE_ENTRANCE)
     public Map<String, RuleEntrance> getRuleEntranceMap() throws Exception {
 
-        Jedis jedis = jedisPool.getResource();
+        Jedis jedis = getJedis();
 
         Map map = new HashMap();
 
@@ -102,7 +105,7 @@
     public List getRuleGroupRelaList() throws Exception {
         List saopRuleGroupRelaList = new ArrayList();
 
-        Jedis jedis = jedisPool.getResource();
+        Jedis jedis = getJedis();
 
         if(jedis.exists(RuleDomain.REDIS_KEY_RULE_ENTRANCE.getBytes())){
             saopRuleGroupRelaList =  SerializeUtil.unserializeList(jedis.get(RuleDomain.REDIS_KEY_RULE_GROUP.getBytes()),Map.class);
@@ -168,7 +171,7 @@
     @Cacheable(key=RuleDomain.REDIS_KEY_RULE)
     public Map<String, Rule> getRuleMap() throws Exception {
 
-        Jedis jedis = jedisPool.getResource();
+        Jedis jedis = getJedis();
 
         List<Rule> ruleList = null;
 

--
Gitblit v1.8.0