|
@@ -1,6 +1,7 @@
|
|
package com.tzld.piaoquan.recommend.server.service.recall.strategy;
|
|
package com.tzld.piaoquan.recommend.server.service.recall.strategy;
|
|
|
|
|
|
import com.tzld.piaoquan.recommend.server.service.recall.RecallParam;
|
|
import com.tzld.piaoquan.recommend.server.service.recall.RecallParam;
|
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -20,7 +21,9 @@ public class Region24HRecallStrategy extends AbstractRegionRecallStrategy {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
protected String poolKey(RecallParam param, String now_dt, int h) {
|
|
protected String poolKey(RecallParam param, String now_dt, int h) {
|
|
- return String.format("recall:item:score:region:dup1:region24h:%s:%s:%s:%s:%s", param.getRegionCode(), param.getDataKey(), param.getRuleKey(), now_dt, h);
|
|
|
|
|
|
+ return String.format("recall:item:score:region:dup1:region24h:%s:%s:%s:%s:%s",
|
|
|
|
+ StringUtils.isBlank(param.getRegionCode()) ? -1 : param.getRegionCode(),
|
|
|
|
+ param.getDataKey(), param.getRuleKey(), now_dt, h);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|