|
@@ -6,8 +6,12 @@ import cn.com.ctop.common.module.utils.Check;
|
|
|
import cn.com.ctop.kuaishou.modules.batch.entity.KuaiShouCreative;
|
|
|
import cn.com.ctop.kuaishou.modules.batch.entity.KuaiShouGroup;
|
|
|
import cn.com.ctop.kuaishou.modules.batch.service.*;
|
|
|
+import cn.com.ctop.kuaishou.modules.report.entity.EtlKuaiShouGroupDailyReport;
|
|
|
+import cn.com.ctop.kuaishou.modules.report.entity.ProjectMember;
|
|
|
+import cn.com.ctop.kuaishou.modules.report.service.IEtlKuaiShouGroupDailyReportService;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -33,6 +37,8 @@ public class DingPanController {
|
|
|
private IKuaiShouUpdateService updateService;
|
|
|
@Autowired
|
|
|
private IKuaiShouGroupTemplateService groupTemplateService;
|
|
|
+ @Autowired
|
|
|
+ private IEtlKuaiShouGroupDailyReportService etlKuaiShouGroupDailyReportService;
|
|
|
|
|
|
/**
|
|
|
* 获取创意监测链接
|
|
@@ -211,6 +217,12 @@ public class DingPanController {
|
|
|
JSONObject jsonObject = updateService.updateUnit(token.getAccessToken(), unitJson);
|
|
|
Integer code = jsonObject.getInteger("code");
|
|
|
if (code == 0) {
|
|
|
+ QueryWrapper<EtlKuaiShouGroupDailyReport> wrapper = new QueryWrapper<>();
|
|
|
+ wrapper.eq("account_id", accountId);
|
|
|
+ wrapper.eq("unit_id", unitId);
|
|
|
+ EtlKuaiShouGroupDailyReport etl = new EtlKuaiShouGroupDailyReport();
|
|
|
+ etl.setBid(bid);
|
|
|
+ etlKuaiShouGroupDailyReportService.update(etl, wrapper);
|
|
|
result.setSuccess(true);
|
|
|
result.setMessage("修改成功");
|
|
|
} else {
|