| @@ -27,9 +27,9 @@ import java.util.List; | |||||
| public class WxScoreRulesServiceImpl implements WxScoreRulesService { | public class WxScoreRulesServiceImpl implements WxScoreRulesService { | ||||
| private final Logger logger = LoggerFactory.getLogger(this.getClass()); | private final Logger logger = LoggerFactory.getLogger(this.getClass()); | ||||
| private String keyPrev = "setting:scorerules:"; | |||||
| private String keyPrev = "setting:scorerules1:"; | |||||
| private String creditKeyPrev = "setting:creditrules:"; | |||||
| private String creditKeyPrev = "setting:creditrules1:"; | |||||
| @Autowired | @Autowired | ||||
| WxScoreRulesMapper wxScoreRulesMapper; | WxScoreRulesMapper wxScoreRulesMapper; | ||||
| @@ -54,7 +54,6 @@ public class WxScoreRulesServiceImpl implements WxScoreRulesService { | |||||
| // 缓存存在 | // 缓存存在 | ||||
| if (scoreRulesRedisTemplate.hasKey(key)) { | if (scoreRulesRedisTemplate.hasKey(key)) { | ||||
| WxScoreRules wScoreRules = scoreRulesRedisTemplate.opsForValue().get(key); | WxScoreRules wScoreRules = scoreRulesRedisTemplate.opsForValue().get(key); | ||||
| wScoreRules.setRules(getScoreRulesNew(wScoreRules.getRules())); | |||||
| logger.info("WxScoreRulesServiceImpl.getScoreRules() : 从缓存中获取了成长值设置 >> " + wScoreRules.toString()); | logger.info("WxScoreRulesServiceImpl.getScoreRules() : 从缓存中获取了成长值设置 >> " + wScoreRules.toString()); | ||||
| return wScoreRules; | return wScoreRules; | ||||
| } | } | ||||
| @@ -129,7 +128,6 @@ public class WxScoreRulesServiceImpl implements WxScoreRulesService { | |||||
| // 缓存存在 | // 缓存存在 | ||||
| if (scoreRulesRedisTemplate.hasKey(key)) { | if (scoreRulesRedisTemplate.hasKey(key)) { | ||||
| WxScoreRules wScoreRules = scoreRulesRedisTemplate.opsForValue().get(key); | WxScoreRules wScoreRules = scoreRulesRedisTemplate.opsForValue().get(key); | ||||
| wScoreRules.setRules(getScoreRulesNew(wScoreRules.getRules())); | |||||
| logger.info("WxScoreRulesServiceImpl.getScoreRules() : 从缓存中获取了积分值设置 >> " + wScoreRules.toString()); | logger.info("WxScoreRulesServiceImpl.getScoreRules() : 从缓存中获取了积分值设置 >> " + wScoreRules.toString()); | ||||
| return wScoreRules; | return wScoreRules; | ||||
| } | } | ||||