|
@@ -1,6 +1,5 @@
|
|
|
package com.tzld.piaoquan.ad.engine.service.predict.param;
|
|
|
|
|
|
-import com.tzld.piaoquan.ad.engine.commons.redis.AdOwnRedisHelper;
|
|
|
import com.tzld.piaoquan.ad.engine.commons.redis.AlgorithmRedisHelper;
|
|
|
import com.tzld.piaoquan.ad.engine.service.predict.constant.RuleRedisKeyConst;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -31,7 +30,7 @@ public class RuleParamHelper {
|
|
|
.getOrDefault("user",defaultMap)).get("rule");
|
|
|
String groupShareRateKey = RuleRedisKeyConst.KEY_NAME_PREFIX_AD_GROUP + shareUserDataKey + ":" + shareUserRuleKey + ":" + nowDt;
|
|
|
|
|
|
- if (StringUtils.isEmpty(shareUserDataKey)||StringUtils.isEmpty(shareUserRuleKey)|| !redisHelper.contantinsKey(groupShareRateKey)) {
|
|
|
+ if (StringUtils.isEmpty(shareUserDataKey)||StringUtils.isEmpty(shareUserRuleKey)|| !redisHelper.containsKey(groupShareRateKey)) {
|
|
|
Calendar cal = Calendar.getInstance();
|
|
|
cal.setTime(nowDate);
|
|
|
cal.add(Calendar.DATE, -1);
|
|
@@ -54,7 +53,7 @@ public class RuleParamHelper {
|
|
|
((Map<String,Object>)abTestParam.getOrDefault("user",defaultMap)).get("rule");
|
|
|
String groupShareRateKey = RuleRedisKeyConst.KEY_NAME_PREFIX_AD_GROUP + shareUserDataKey + ":" + shareUserRuleKey + ":" + nowDt;
|
|
|
|
|
|
- if (StringUtils.isEmpty(shareUserDataKey)||StringUtils.isEmpty(shareUserRuleKey)|| !redisHelper.contantinsKey(groupShareRateKey)) {
|
|
|
+ if (StringUtils.isEmpty(shareUserDataKey)||StringUtils.isEmpty(shareUserRuleKey)|| !redisHelper.containsKey(groupShareRateKey)) {
|
|
|
Calendar cal = Calendar.getInstance();
|
|
|
cal.setTime(nowDate);
|
|
|
cal.add(Calendar.DATE, -1);
|
|
@@ -77,7 +76,7 @@ public class RuleParamHelper {
|
|
|
.getOrDefault("video",defaultMap)).get("data");
|
|
|
String videoShareRateKey = RuleRedisKeyConst.KEY_NAME_PREFIX_AD_VIDEO + shareVideoDataKey + ":" + nowDt;
|
|
|
|
|
|
- if (StringUtils.isEmpty(shareVideoDataKey)||!redisHelper.contantinsKey(videoShareRateKey)) {
|
|
|
+ if (StringUtils.isEmpty(shareVideoDataKey)||!redisHelper.containsKey(videoShareRateKey)) {
|
|
|
Calendar cal = Calendar.getInstance();
|
|
|
cal.setTime(nowDate);
|
|
|
cal.add(Calendar.DATE, -1);
|
|
@@ -104,7 +103,7 @@ public class RuleParamHelper {
|
|
|
.getOrDefault("video",defaultMap)).get("data");
|
|
|
String videoShareRateKey = RuleRedisKeyConst.KEY_NAME_PREFIX_AD_VIDEO + shareVideoDataKey + ":" + nowDt;
|
|
|
|
|
|
- if (StringUtils.isEmpty(shareVideoDataKey)||!redisHelper.contantinsKey(videoShareRateKey)) {
|
|
|
+ if (StringUtils.isEmpty(shareVideoDataKey)||!redisHelper.containsKey(videoShareRateKey)) {
|
|
|
Calendar cal = Calendar.getInstance();
|
|
|
cal.setTime(nowDate);
|
|
|
cal.add(Calendar.DATE, -1);
|
|
@@ -134,7 +133,7 @@ public class RuleParamHelper {
|
|
|
String groupOutRateKey = RuleRedisKeyConst.KEY_NAME_PREFIX_AD_GROUP + outUserDataKey + ":" + outUserRuleKey + ":" + nowDt;
|
|
|
|
|
|
if (StringUtils.isEmpty(outUserDataKey)||StringUtils.isEmpty(outUserRuleKey)
|
|
|
- ||!redisHelper.contantinsKey(groupOutRateKey)) {
|
|
|
+ ||!redisHelper.containsKey(groupOutRateKey)) {
|
|
|
Calendar cal = Calendar.getInstance();
|
|
|
cal.setTime(nowDate);
|
|
|
cal.add(Calendar.DATE, -1);
|
|
@@ -155,7 +154,7 @@ public class RuleParamHelper {
|
|
|
((Map<String,Object>)abTestParam.getOrDefault("out",defaultMap)).getOrDefault("video",defaultMap)).get("data");
|
|
|
String videoOutRateKey = RuleRedisKeyConst.KEY_NAME_PREFIX_AD_VIDEO + outVideoDataKey + ":" + nowDt;
|
|
|
|
|
|
- if (StringUtils.isEmpty(outVideoDataKey)||!redisHelper.contantinsKey(videoOutRateKey)) {
|
|
|
+ if (StringUtils.isEmpty(outVideoDataKey)||!redisHelper.containsKey(videoOutRateKey)) {
|
|
|
Calendar cal = Calendar.getInstance();
|
|
|
cal.setTime(nowDate);
|
|
|
cal.add(Calendar.DATE, -1);
|