|
@@ -7,11 +7,11 @@ import cn.com.ctop.common.module.utils.HttpUtils;
|
|
|
import cn.com.ctop.common.module.utils.KuaishouInterfaceConstant;
|
|
|
import cn.com.ctop.common.module.utils.PropertiesUtils;
|
|
|
import cn.com.ctop.kuaishou.modules.ai.entity.KuaishouDirectionalPackage;
|
|
|
-import cn.com.ctop.kuaishou.modules.ai.entity.KuaishouDirectionalTemplateRel;
|
|
|
+import cn.com.ctop.kuaishou.modules.ai.entity.KuaishouDirectionalaPckageRel;
|
|
|
import cn.com.ctop.kuaishou.modules.ai.mapper.KuaishouDirectionalPackageMapper;
|
|
|
-import cn.com.ctop.kuaishou.modules.ai.mapper.KuaishouDirectionalTemplateRelMapper;
|
|
|
+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.IKuaishouDirectionalTemplateRelService;
|
|
|
+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.mapper.KuaiShouGroupMapper;
|
|
|
import cn.com.ctop.kuaishou.modules.batch.mapper.KuaishouTemplateMapper;
|
|
@@ -26,7 +26,6 @@ import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
-import org.jeecg.common.util.DateUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
@@ -52,9 +51,9 @@ public class KuaishouDirectionalPackageServiceImpl extends ServiceImpl<KuaishouD
|
|
|
@Autowired
|
|
|
private KuaishouDirectionalPackageMapper packageMapper;
|
|
|
@Autowired
|
|
|
- private KuaishouDirectionalTemplateRelMapper relMapper;
|
|
|
+ private KuaishouDirectionalPckageRelMapper relMapper;
|
|
|
@Autowired
|
|
|
- private IKuaishouDirectionalTemplateRelService relService;
|
|
|
+ private IKuaishouDirectionalPckageRelService relService;
|
|
|
@Autowired
|
|
|
private ICtopOauthTokenService oauthTokenService;
|
|
|
@Autowired
|
|
@@ -369,7 +368,7 @@ public class KuaishouDirectionalPackageServiceImpl extends ServiceImpl<KuaishouD
|
|
|
Long accountId = request.getLong("accountId");
|
|
|
CtopOauthToken oauthToken = oauthTokenService.getTokenByAccountId(accountId);
|
|
|
String message = "";
|
|
|
- KuaishouDirectionalTemplateRel rel = new KuaishouDirectionalTemplateRel();
|
|
|
+ KuaishouDirectionalaPckageRel rel = new KuaishouDirectionalaPckageRel();
|
|
|
rel.setDirId(data.getString("id"));
|
|
|
rel.setRelId(accountId);
|
|
|
rel.setRelType("account");
|
|
@@ -546,10 +545,10 @@ public class KuaishouDirectionalPackageServiceImpl extends ServiceImpl<KuaishouD
|
|
|
public Result<Object> editPopulation(JSONObject requestJson) {
|
|
|
Long accountId = requestJson.getLong("accountId");
|
|
|
String message = "";
|
|
|
- KuaishouDirectionalTemplateRel rel = new KuaishouDirectionalTemplateRel();
|
|
|
+ KuaishouDirectionalaPckageRel rel = new KuaishouDirectionalaPckageRel();
|
|
|
try {
|
|
|
CtopOauthToken oauthToken = oauthTokenService.getTokenByAccountId(accountId);
|
|
|
- QueryWrapper<KuaishouDirectionalTemplateRel> queryWrapper = new QueryWrapper<>();
|
|
|
+ QueryWrapper<KuaishouDirectionalaPckageRel> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.eq("dir_id", requestJson.getString("id"));
|
|
|
queryWrapper.eq("rel_id", accountId);
|
|
|
queryWrapper.eq("rel_type", "account");
|
|
@@ -617,7 +616,7 @@ public class KuaishouDirectionalPackageServiceImpl extends ServiceImpl<KuaishouD
|
|
|
if (Check.isNull(target)) {
|
|
|
throw new Exception("添加广告组和定向模板绑定关系失败");
|
|
|
}
|
|
|
- KuaishouDirectionalTemplateRel relEntity = new KuaishouDirectionalTemplateRel();
|
|
|
+ KuaishouDirectionalaPckageRel relEntity = new KuaishouDirectionalaPckageRel();
|
|
|
relEntity.setDirId(target.getString("dir_id"));
|
|
|
relEntity.setProjectId(target.getLong("project_id"));
|
|
|
relEntity.setTemplateId(request.getLong("templateId"));
|