From 8f5c84e834fdd03c897e4292bba34fd2f72e839d Mon Sep 17 00:00:00 2001
From: 吴学文 <wuxuewen@wuxuewendeMacBook-Pro.local>
Date: 星期三, 24 七月 2019 22:18:12 +0800
Subject: [PATCH] 修复 提示信息和加载进度不在居中问题
---
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