|
@@ -13,8 +13,10 @@ import cn.com.ctop.kuaishou.modules.ai.mapper.KuaishouDirectionalPckageRelMapper
|
|
|
import cn.com.ctop.kuaishou.modules.ai.service.IKuaishouDirectionalPackageService;
|
|
|
import cn.com.ctop.kuaishou.modules.ai.service.IKuaishouDirectionalPckageRelService;
|
|
|
import cn.com.ctop.kuaishou.modules.batch.entity.KuaiShouGroup;
|
|
|
+import cn.com.ctop.kuaishou.modules.batch.entity.KuaishouTemplateTarget;
|
|
|
import cn.com.ctop.kuaishou.modules.batch.mapper.KuaiShouGroupMapper;
|
|
|
import cn.com.ctop.kuaishou.modules.batch.mapper.KuaishouTemplateMapper;
|
|
|
+import cn.com.ctop.kuaishou.modules.batch.mapper.KuaishouTemplateTargetMapper;
|
|
|
import cn.com.ctop.kuaishou.modules.batch.service.IKuaiShouGroupTemplateService;
|
|
|
import cn.com.ctop.kuaishou.modules.batch.service.IKuaiShouUpdateService;
|
|
|
import cn.com.ctop.kuaishou.modules.batch.service.IKuaishouTemplateService;
|
|
@@ -62,6 +64,8 @@ public class KuaishouDirectionalPackageServiceImpl extends ServiceImpl<KuaishouD
|
|
|
private IKuaiShouUpdateService updateService;
|
|
|
@Autowired
|
|
|
private KuaiShouGroupMapper groupMapper;
|
|
|
+ @Autowired
|
|
|
+ private KuaishouTemplateTargetMapper templateTargetMapper;
|
|
|
|
|
|
@Autowired
|
|
|
private IKuaiShouGroupTemplateService groupTemplateService;
|
|
@@ -634,4 +638,26 @@ public class KuaishouDirectionalPackageServiceImpl extends ServiceImpl<KuaishouD
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Result<Object> queryPopulationPopulationById(Long templateId, Long accountId) {
|
|
|
+ KuaishouTemplateTarget target = templateTargetMapper.queryTemplateTarget(templateId, accountId);
|
|
|
+ if (Check.isNull(target)) {
|
|
|
+ return Result.error("为查询到人群包");
|
|
|
+ }
|
|
|
+ JSONObject data = new JSONObject();
|
|
|
+ String excludePopulation = target.getExcludePopulation();
|
|
|
+ if (!Check.isNull(excludePopulation)) {
|
|
|
+ data.put("excludePopulation", JSONArray.parseArray(excludePopulation));
|
|
|
+ }
|
|
|
+ String population = target.getPopulation();
|
|
|
+ if (!Check.isNull(population)) {
|
|
|
+ data.put("population", JSONArray.parseArray(population));
|
|
|
+ }
|
|
|
+ String paidAudience = target.getPaidAudience();
|
|
|
+ if (!Check.isNull(paidAudience)) {
|
|
|
+ data.put("paidAudience", JSONArray.parseArray(paidAudience));
|
|
|
+ }
|
|
|
+ return Result.ok(data);
|
|
|
+ }
|
|
|
+
|
|
|
}
|