|
@@ -68,6 +68,14 @@ public class KuaishouBatchCampaignPreviewServiceImpl extends ServiceImpl<Kuaisho
|
|
|
return obj;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取活动列表
|
|
|
+ *
|
|
|
+ * @param
|
|
|
+ * @return java.util.List<cn.com.ctop.kuaishou.modules.batch.entity.KuaishouBatchCampaignPreview>
|
|
|
+ * @throws
|
|
|
+ * @author ZHAOXA
|
|
|
+ */
|
|
|
private List<KuaishouBatchCampaignPreview> getCampaignList(List<KuaishouBatchCampaignPreview> campaignPreviewList, List<KuaishouBatchGroupPreview> kuaishouBatchGroupPreviews, List<KuaishouBatchCreativePreview> kuaishouBatchCreativePreviews) {
|
|
|
List<KuaishouBatchGroupPreview> groups = new ArrayList<>();
|
|
|
|
|
@@ -110,6 +118,14 @@ public class KuaishouBatchCampaignPreviewServiceImpl extends ServiceImpl<Kuaisho
|
|
|
return campaigns;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 添加预览数据
|
|
|
+ *
|
|
|
+ * @param
|
|
|
+ * @return void
|
|
|
+ * @throws
|
|
|
+ * @author ZHAOXA
|
|
|
+ */
|
|
|
@Override
|
|
|
public void addPreviewData(JSONObject data) throws Exception {
|
|
|
String batchId = data.getString("batchId");
|
|
@@ -398,7 +414,14 @@ public class KuaishouBatchCampaignPreviewServiceImpl extends ServiceImpl<Kuaisho
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ /**
|
|
|
+ * 判断非空
|
|
|
+ *
|
|
|
+ * @param
|
|
|
+ * @return boolean
|
|
|
+ * @throws
|
|
|
+ * @author ZHAOXA
|
|
|
+ */
|
|
|
private boolean isNotNull(JSONArray arr, JSONArray arr2, Integer num) {
|
|
|
if (num == 2) {
|
|
|
return !CollectionUtils.isEmpty(arr) && !CollectionUtils.isEmpty(arr2);
|