Explorar o código

付费人群包

yumeng %!s(int64=4) %!d(string=hai) anos
pai
achega
96463bac1d

+ 1 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/entity/KuaiShouGroupTarget.java

@@ -162,6 +162,7 @@ public class KuaiShouGroupTarget {
     @Excel(name = "人群包排除", width = 15)
     @ApiModelProperty(value = "人群包排除")
     private String excludePopulation;
+    private String thirdPlatformCode;
     /**
      * 0:关闭智能扩量,1:打开智能扩量
      */

+ 2 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/mapper/xml/KuaiShouGroupTargetMapper.xml

@@ -26,6 +26,7 @@
         app_ids,
         population,
         exclude_population,
+        third_platform_code,
         filter_converted_level,
         is_open,
         no_age_break,
@@ -56,6 +57,7 @@
             #{targets.appIds},
             #{targets.population},
             #{targets.excludePopulation},
+            #{targets.thirdPlatformCode},
             #{targets.filterConvertedLevel},
             #{targets.isOpen},
             #{targets.noAgeBreak},

+ 16 - 8
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/BatchServiceImpl.java

@@ -329,6 +329,11 @@ public class BatchServiceImpl implements IBatchService {
             targetJson.put("exclude_population", requestJson.getJSONArray("excludePopulation"));
         }
 
+
+        if (!Check.isNull(requestJson.getJSONArray("thirdPlatformCode"))) {
+            targetJson.put("third_platform_code", requestJson.getJSONArray("thirdPlatformCode"));
+        }
+
         if (sceneId != 5) {
             JSONObject intelliExtendJson = new JSONObject();
 
@@ -463,8 +468,6 @@ public class BatchServiceImpl implements IBatchService {
         JSONObject returnJson = new JSONObject();
 
         try {
-
-
             JSONObject unitJson = new JSONObject();
             Long campaignId = requestJson.getLong("campaignId");
             if (Check.isNull(campaignId)) {
@@ -477,8 +480,6 @@ public class BatchServiceImpl implements IBatchService {
             } else {
                 unitJson.put("campaign_id", campaignId);
             }
-
-
             // 资源位置
             JSONArray scene_id = requestJson.getJSONArray("sceneId");
             if (!Check.isNull(scene_id)) {
@@ -637,8 +638,10 @@ public class BatchServiceImpl implements IBatchService {
                 targetJson.put("exclude_population", requestJson.getJSONArray("excludePopulation"));
             }
 
+            if (!Check.isNull(requestJson.getJSONArray("thirdPlatformCode"))) {
+                targetJson.put("third_platform_code", requestJson.getJSONArray("thirdPlatformCode"));
+            }
             JSONObject intelliExtendJson = new JSONObject();
-
             if (sceneId != 5) {
                 // 开启智能扩量
                 if (!Check.isNull(requestJson.getInteger("isOpen"))) {
@@ -935,11 +938,11 @@ public class BatchServiceImpl implements IBatchService {
                         targetJson.put("exclude_population", JSONArray.parseArray(groupTarget.getExcludePopulation()));
                     }
 
+                    if (!Check.isNull(groupTarget.getThirdPlatformCode())) {
+                        targetJson.put("third_platform_code", groupTarget.getThirdPlatformCode());
+                    }
                     if (sceneId != 5) {
-
-
                         JSONObject intelliExtendJson = new JSONObject();
-
                         // 开启智能扩量
                         if (!Check.isNull(groupTarget.getIsOpen())) {
                             intelliExtendJson.put("is_open", groupTarget.getIsOpen());
@@ -1771,6 +1774,11 @@ public class BatchServiceImpl implements IBatchService {
             if (!Check.isNull(requestJson.getJSONArray("excludePopulation"))) {
                 targetJson.put("exclude_population", requestJson.getJSONArray("excludePopulation"));
             }
+
+            if (!Check.isNull(requestJson.getJSONArray("thirdPlatformCode"))) {
+                targetJson.put("third_platform_code", requestJson.getJSONArray("thirdPlatformCode"));
+            }
+
             if (scene != 5) {
                 if (!Check.isNull(requestJson.getInteger("filterConvertedLevel"))) {
                     targetJson.put("filter_converted_level", requestJson.getInteger("filterConvertedLevel"));

+ 5 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaiShouGroupServiceImpl.java

@@ -464,6 +464,11 @@ public class KuaiShouGroupServiceImpl extends ServiceImpl<KuaiShouGroupMapper, K
                             groupTarget.setExcludePopulation(targetJson.getJSONArray("exclude_population").toJSONString());
                         }
 
+                        if (!Check.isNull(targetJson.getJSONArray("third_platform_code"))) {
+                            groupTarget.setThirdPlatformCode(targetJson.getJSONArray("third_platform_code").toJSONString());
+                        }
+
+
                         JSONObject intelliExtend = targetJson.getJSONObject("intelli_extend");
                         if (!Check.isNull(intelliExtend)) {
                             groupTarget.setIsOpen(intelliExtend.getInteger("is_open"));