wuxw
2019-06-02 cebc50ae8295dd24e2fd5ba0d4d236459a5190a3
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;