|
@@ -620,6 +620,8 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
private static final double DEMAND_MIN_ROV = 0.02;
|
|
private static final double DEMAND_MIN_ROV = 0.02;
|
|
|
/** type → channel_name 映射(强过滤):同 crowd_segment 跨渠道客户(如 gzyhc/wxm)按入口平台切数据源 */
|
|
/** type → channel_name 映射(强过滤):同 crowd_segment 跨渠道客户(如 gzyhc/wxm)按入口平台切数据源 */
|
|
|
private static final String CHANNEL_NAME_GZH = "公众号合作-即转-稳定";
|
|
private static final String CHANNEL_NAME_GZH = "公众号合作-即转-稳定";
|
|
|
|
|
+ /** 服务号推送 / 公众号推送 走 Daily 人群_渠道,与即转稳定数据隔离 */
|
|
|
|
|
+ private static final String CHANNEL_NAME_GZH_DAILY = "公众号合作-Daily-自选";
|
|
|
private static final String CHANNEL_NAME_QW = "群/企微合作-稳定";
|
|
private static final String CHANNEL_NAME_QW = "群/企微合作-稳定";
|
|
|
private static final double PRIOR_GROUP_KEEP_RATIO = 0.5;
|
|
private static final double PRIOR_GROUP_KEEP_RATIO = 0.5;
|
|
|
/** posterior 按 demand_content_id 分组后保留 total_rov 排名前 50% 的需求组,
|
|
/** posterior 按 demand_content_id 分组后保留 total_rov 排名前 50% 的需求组,
|
|
@@ -632,8 +634,8 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
/**
|
|
/**
|
|
|
* 推导 channel_name(人群_渠道) 作为 demand 池强过滤。
|
|
* 推导 channel_name(人群_渠道) 作为 demand 池强过滤。
|
|
|
* 信号优先级:
|
|
* 信号优先级:
|
|
|
- * 1. type 明确时按 type 映射 — 0/1/4 → 公众号合作-即转-稳定;2/3 → 群/企微合作-稳定
|
|
|
|
|
- * 2. type=999/null 但带 ghName(公众号参数)→ 公众号入口,映射公众号
|
|
|
|
|
|
|
+ * 1. type 明确时按 type 映射 — 0→公众号合作-即转-稳定;1/4→公众号合作-Daily-自选;2/3→群/企微合作-稳定
|
|
|
|
|
+ * 2. type=999/null 但带 ghName(公众号参数)→ 公众号入口,映射即转稳定(与历史一致)
|
|
|
* 3. 否则 null,不限 channel_name(保留原行为)
|
|
* 3. 否则 null,不限 channel_name(保留原行为)
|
|
|
* type 取值: 0-自动回复(公众号入口) / 1-服务号推送 / 2-企微-社群 / 3-企微-自动回复 / 4-公众号推送 / 999-不限。
|
|
* type 取值: 0-自动回复(公众号入口) / 1-服务号推送 / 2-企微-社群 / 3-企微-自动回复 / 4-公众号推送 / 999-不限。
|
|
|
* 作用:解决 crowd_segment 跨渠道客户(如 gzyhc/wxm)在企微/公众号入口下被对侧数据污染的问题。
|
|
* 作用:解决 crowd_segment 跨渠道客户(如 gzyhc/wxm)在企微/公众号入口下被对侧数据污染的问题。
|
|
@@ -642,7 +644,8 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
Integer type = param.getType();
|
|
Integer type = param.getType();
|
|
|
if (type != null) {
|
|
if (type != null) {
|
|
|
if (type == 2 || type == 3) return CHANNEL_NAME_QW;
|
|
if (type == 2 || type == 3) return CHANNEL_NAME_QW;
|
|
|
- if (type == 0 || type == 1 || type == 4) return CHANNEL_NAME_GZH;
|
|
|
|
|
|
|
+ if (type == 1 || type == 4) return CHANNEL_NAME_GZH_DAILY;
|
|
|
|
|
+ if (type == 0) return CHANNEL_NAME_GZH;
|
|
|
}
|
|
}
|
|
|
if (StringUtils.hasText(param.getGhName())) return CHANNEL_NAME_GZH;
|
|
if (StringUtils.hasText(param.getGhName())) return CHANNEL_NAME_GZH;
|
|
|
return null;
|
|
return null;
|