| | |
| | | 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; |
| | |
| | | @Service("ruleDaoImpl") |
| | | @Transactional |
| | | public class RuleDaoImpl extends BaseServiceDao implements IRuleDao { |
| | | private final static Logger logger = LoggerFactory.getLogger(RuleDaoImpl.class); |
| | | |
| | | |
| | | @Override |
| | |
| | | @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(); |
| | | |
| | |
| | | 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); |
| | |
| | | @Cacheable(key=RuleDomain.REDIS_KEY_RULE) |
| | | public Map<String, Rule> getRuleMap() throws Exception { |
| | | |
| | | Jedis jedis = jedisPool.getResource(); |
| | | Jedis jedis = getJedis(); |
| | | |
| | | List<Rule> ruleList = null; |
| | | |