|
@@ -3,7 +3,13 @@ package cn.com.ctop.kuaishou.modules.batch.service.impl;
|
|
import cn.com.ctop.kuaishou.modules.batch.entity.KuaiShouBatchCampaignTemplate;
|
|
import cn.com.ctop.kuaishou.modules.batch.entity.KuaiShouBatchCampaignTemplate;
|
|
import cn.com.ctop.kuaishou.modules.batch.mapper.KuaiShouBatchCampaignTemplateMapper;
|
|
import cn.com.ctop.kuaishou.modules.batch.mapper.KuaiShouBatchCampaignTemplateMapper;
|
|
import cn.com.ctop.kuaishou.modules.batch.service.IKuaiShouBatchCampaignTemplateService;
|
|
import cn.com.ctop.kuaishou.modules.batch.service.IKuaiShouBatchCampaignTemplateService;
|
|
|
|
+import cn.com.ctop.kuaishou.modules.batch.service.IKuaiShouBatchCreativeTemplateService;
|
|
|
|
+import cn.com.ctop.kuaishou.modules.batch.service.IKuaiShouBatchGroupTemplateService;
|
|
|
|
+import com.alibaba.fastjson.JSONArray;
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
+import com.xxl.job.core.enums.NoEn;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -16,4 +22,30 @@ import org.springframework.stereotype.Service;
|
|
@Service
|
|
@Service
|
|
public class KuaiShouBatchCampaignTemplateServiceImpl extends ServiceImpl<KuaiShouBatchCampaignTemplateMapper, KuaiShouBatchCampaignTemplate> implements IKuaiShouBatchCampaignTemplateService {
|
|
public class KuaiShouBatchCampaignTemplateServiceImpl extends ServiceImpl<KuaiShouBatchCampaignTemplateMapper, KuaiShouBatchCampaignTemplate> implements IKuaiShouBatchCampaignTemplateService {
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ IKuaiShouBatchGroupTemplateService kuaiShouBatchGroupTemplateService;
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ IKuaiShouBatchCreativeTemplateService kuaiShouBatchCreativeTemplateService;
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public String previewLogic(JSONObject data) {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ private JSONObject getCampaignsAndGroups(Integer type, JSONArray orientatPkg, JSONArray creativeGroup) {
|
|
|
|
+ JSONObject ob = new JSONObject();
|
|
|
|
+ //分组规则 1定向,2创意组
|
|
|
|
+ if (NoEn.NO1.valueInt() == type) {
|
|
|
|
+ for (int i = 0; i < orientatPkg.size(); i++) {
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ } else if (NoEn.NO2.valueInt() == type) {
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|