فهرست منبع

迭代规则引擎,添加优化目标和出价

zhaoxian 4 سال پیش
والد
کامیت
7b28c4c201

+ 9 - 0
module-common/src/main/java/cn/com/ctop/common/module/entity/RuleDateUnitKuaishou.java

@@ -82,9 +82,18 @@ public class RuleDateUnitKuaishou {
      */
     private Integer androidOsv;
     /**
+     * 优化目标
+     * 2:行为数;180:激活数;53:表单数;190: 付费;191:首日ROI;324:唤起应用;348:有效线索;383: 授信;384: 完件;394:订单提交;;396:注册
+     */
+    private Integer ocpxActionType;
+    /**
      * 付费单价
      */
     private BigDecimal payCost;
+    /**
+     * 出价
+     */
+    private BigDecimal cpaBid;
 
     private Integer status;
 

+ 2 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/report/service/impl/RuleKuaiShouPlanServiceImpl.java

@@ -188,7 +188,8 @@ public class RuleKuaiShouPlanServiceImpl extends ServiceImpl<RuleDatePlanKuaisho
                     unit.setCharge(unitDetail.getBigDecimal("charge"));
                     unit.setDeepConversionBid(group.getDeepConversionBid());
                     unit.setDeepConversionType(group.getDeepConversionType());
-
+                    unit.setOcpxActionType(group.getOcpxActionType());
+                    unit.setCpaBid(new BigDecimal(group.getCpaBid()).divide(new BigDecimal("1000"), 2, RoundingMode.HALF_UP));
                     //未知优化目标数据存空
                     if (group.getOcpxActionType() != 0) {
                         unit.setConvertNum(handleConvertNum(group.getOcpxActionType(), unitDetail));