Browse Source

kuaishou_material_image_report_daily 初版

zhaoxian 11 months ago
parent
commit
5be6140598

+ 5 - 3
job-kuaishou/src/main/java/cn/com/ctop/job/kuaishou/KuaishouJobApplication.java

@@ -14,9 +14,11 @@ public class KuaishouJobApplication {
 
 
         SpringApplication.run(KuaishouJobApplication.class, args);
         SpringApplication.run(KuaishouJobApplication.class, args);
 
 
-        log.info("\n----------------------------------------------------------\n\t" +
-                "job service is running\n\t" +
-                "----------------------------------------------------------");
+        log.info("\n\t----------------------------------------------------------\n\t" +
+                "\t\t\t\tjob service is running\n\t" +
+                "----------------------------------------------------------\n\t" +
+                "Local_Url: \thttp://localhost:8083/kuaishou/kuaishouController/\n\t"
+        );
     }
     }
 
 
 }
 }

+ 8 - 7
job-kuaishou/src/main/java/cn/com/ctop/job/kuaishou/controller/KuaishouController.java

@@ -1,5 +1,6 @@
 package cn.com.ctop.job.kuaishou.controller;
 package cn.com.ctop.job.kuaishou.controller;
 
 
+import cn.com.ctop.job.kuaishou.data.mapper.KuaishouAccountReportHourlyMapper;
 import cn.com.ctop.job.kuaishou.data.service.IAdUnitReportService;
 import cn.com.ctop.job.kuaishou.data.service.IAdUnitReportService;
 import cn.com.ctop.job.kuaishou.data.service.IKuaishouAccountReportDailyService;
 import cn.com.ctop.job.kuaishou.data.service.IKuaishouAccountReportDailyService;
 import cn.com.ctop.job.kuaishou.data.service.IKuaishouAccountReportHourlyService;
 import cn.com.ctop.job.kuaishou.data.service.IKuaishouAccountReportHourlyService;
@@ -59,7 +60,8 @@ public class KuaishouController {
     @Autowired
     @Autowired
     private IKuaishouAccountReportDailyService kuaishouAccountReportDailyService;
     private IKuaishouAccountReportDailyService kuaishouAccountReportDailyService;
 
 
-    private static ExecutorService dailyExecutorService = Executors.newFixedThreadPool(10);
+    private static ExecutorService dailyExecutorService = Executors.newFixedThreadPool(5);
+    private static ExecutorService hourlyExecutorService = Executors.newFixedThreadPool(10);
 
 
 
 
     @ApiOperation(value = "根据账户获取视频素材-账户下全部视频素材", notes = "根据账户获取视频素材-账户下全部视频素材")
     @ApiOperation(value = "根据账户获取视频素材-账户下全部视频素材", notes = "根据账户获取视频素材-账户下全部视频素材")
@@ -151,7 +153,7 @@ public class KuaishouController {
 
 
     @GetMapping(value = "/testOne")
     @GetMapping(value = "/testOne")
     public void testOne(@RequestParam(name = "accountId") long accountId) throws Exception {
     public void testOne(@RequestParam(name = "accountId") long accountId) throws Exception {
-//        String token = tokenService.getByAccountId(accountId);
+        String token = tokenService.getByAccountId(accountId);
 //        List<String> list = new ArrayList<>();
 //        List<String> list = new ArrayList<>();
 //        list.add("2023-11-10");
 //        list.add("2023-11-10");
 //        list.add("2023-08-26");
 //        list.add("2023-08-26");
@@ -160,7 +162,7 @@ public class KuaishouController {
 //        String date = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -4);
 //        String date = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -4);
 //        for (String s : list) {
 //        for (String s : list) {
 //            unitReportDailyService2.getUnitReportDaily(accountId, token, s, s, 1);
 //            unitReportDailyService2.getUnitReportDaily(accountId, token, s, s, 1);
-        reportService.getAgentReport();
+        adUnitReportService.getAgentReport();
 //            campaignReportDailyService.getCampaignReportDaily(accountId, token, s, s, 1);
 //            campaignReportDailyService.getCampaignReportDaily(accountId, token, s, s, 1);
 //        }
 //        }
 
 
@@ -187,8 +189,7 @@ public class KuaishouController {
                         @Override
                         @Override
                         public void run() {
                         public void run() {
                             Thread.sleep(500);
                             Thread.sleep(500);
-                            kuaishouAccountReportDailyService
-                                    .getAdvertiserReportDaily(accountId, token, "2024-02-16", "2024-02-17", 1);
+                            kuaishouAccountReportDailyService.getAdvertiserReportDaily(accountId, token, "2024-02-16", "2024-02-18", 1);
 
 
                         }
                         }
                     });
                     });
@@ -201,14 +202,14 @@ public class KuaishouController {
         String yesterda = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -1);
         String yesterda = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -1);
 
 
         //获取 两个日期之间的所有 日期
         //获取 两个日期之间的所有 日期
-        List<String> dates = DateUtils.getAllDatesOfTwoTimes("2024-02-15", nowDate);
+        List<String> dates = DateUtils.getAllDatesOfTwoTimes("2024-02-16", "2024-02-18");
 
 
         List<Long> accountIds = tokenService.getAllAccountIds();
         List<Long> accountIds = tokenService.getAllAccountIds();
 
 
         for (String date : dates) {
         for (String date : dates) {
             for (Long accountId : accountIds) {
             for (Long accountId : accountIds) {
                 String token = tokenService.getByAccountId(accountId);
                 String token = tokenService.getByAccountId(accountId);
-                dailyExecutorService.submit(
+                hourlyExecutorService.submit(
                         new Runnable() {
                         new Runnable() {
                             @SneakyThrows
                             @SneakyThrows
                             @Override
                             @Override

+ 825 - 0
job-kuaishou/src/main/java/cn/com/ctop/job/kuaishou/data/entity/KuaishouMaterialImageReportDaily.java

@@ -0,0 +1,825 @@
+package cn.com.ctop.job.kuaishou.data.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableField;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+
+/**
+ * 素材图片日报表
+ *
+ * @author jeecg-boot
+ * @version V1.0
+ * @date 2022-11-21
+ */
+@Data
+@TableName("kuaishou_material_image_report_daily")
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@ApiModel(value = "kuaishou_material_image_report_daily对象", description = "素材图片日报表")
+public class KuaishouMaterialImageReportDaily {
+
+    /**
+     * 广告主id
+     */
+    @Excel(name = "广告主id", width = 15)
+    @ApiModelProperty(value = "广告主id")
+    private Long advertiserId;
+    /**
+     * picSignature
+     */
+    @Excel(name = "picSignature", width = 15)
+    @ApiModelProperty(value = "picSignature")
+    private String picSignature;
+    /**
+     * 视频id
+     */
+    @Excel(name = "视频id", width = 15)
+    @ApiModelProperty(value = "视频id")
+    private String picId;
+    /**
+     * 封面token
+     */
+    @Excel(name = "封面token", width = 15)
+    @ApiModelProperty(value = "封面token")
+    private String imageUrls;
+    /**
+     * 数据日期,格式:YYYYMMDD
+     */
+    @Excel(name = "数据日期,格式:YYYYMMDD", width = 15)
+    @ApiModelProperty(value = "数据日期,格式:YYYYMMDD")
+    private String statDate;
+    /**
+     * 花费(元)
+     */
+    @Excel(name = "花费(元)", width = 15)
+    @ApiModelProperty(value = "花费(元)")
+    private java.math.BigDecimal charge;
+    /**
+     * 封面曝光数
+     */
+    @Excel(name = "封面曝光数", width = 15)
+    @ApiModelProperty(value = "封面曝光数")
+    private Long show;
+    /**
+     * 封面点击数
+     */
+    @Excel(name = "封面点击数", width = 15)
+    @ApiModelProperty(value = "封面点击数")
+    private Long photoClick;
+    /**
+     * 素材曝光数
+     */
+    @Excel(name = "素材曝光数", width = 15)
+    @ApiModelProperty(value = "素材曝光数")
+    private Long aclick;
+    /**
+     * 行为数
+     */
+    @Excel(name = "行为数", width = 15)
+    @ApiModelProperty(value = "行为数")
+    private Long bclick;
+    /**
+     * 封面点击率
+     */
+    @Excel(name = "封面点击率", width = 15)
+    @ApiModelProperty(value = "封面点击率")
+    private java.math.BigDecimal photoClickRatio;
+    /**
+     * 3s播放率
+     */
+    @Excel(name = "3s播放率", width = 15)
+    @ApiModelProperty(value = "3s播放率")
+    private java.math.BigDecimal play3sRatio;
+    /**
+     * 行为率
+     */
+    @Excel(name = "行为率", width = 15)
+    @ApiModelProperty(value = "行为率")
+    private java.math.BigDecimal actionRatio;
+    /**
+     * 平均千次曝光花费(元)
+     */
+    @Excel(name = "平均千次曝光花费(元)", width = 15)
+    @ApiModelProperty(value = "平均千次曝光花费(元)")
+    private java.math.BigDecimal impression1kCost;
+    /**
+     * 平均点击单价(元)
+     */
+    @Excel(name = "平均点击单价(元)", width = 15)
+    @ApiModelProperty(value = "平均点击单价(元)")
+    private java.math.BigDecimal photoClickCost;
+    /**
+     * 平均行为单价(元)
+     */
+    @Excel(name = "平均行为单价(元)", width = 15)
+    @ApiModelProperty(value = "平均行为单价(元)")
+    private java.math.BigDecimal actionCost;
+    /**
+     * 分享数
+     */
+    @Excel(name = "分享数", width = 15)
+    @ApiModelProperty(value = "分享数")
+    private Long share;
+    /**
+     * 评论数
+     */
+    @Excel(name = "评论数", width = 15)
+    @ApiModelProperty(value = "评论数")
+    private Long comment;
+    /**
+     * 点赞数
+     */
+    @Excel(name = "点赞数", width = 15)
+    @ApiModelProperty(value = "点赞数")
+    private Long like;
+    /**
+     * 新增关注数
+     */
+    @Excel(name = "新增关注数", width = 15)
+    @ApiModelProperty(value = "新增关注数")
+    private Long follow;
+    /**
+     * 取消关注数
+     */
+    @Excel(name = "取消关注数", width = 15)
+    @ApiModelProperty(value = "取消关注数")
+    private Long cancelFollow;
+    /**
+     * 举报数
+     */
+    @Excel(name = "举报数", width = 15)
+    @ApiModelProperty(value = "举报数")
+    private Long report;
+    /**
+     * 拉黑数
+     */
+    @Excel(name = "拉黑数", width = 15)
+    @ApiModelProperty(value = "拉黑数")
+    private Long block;
+    /**
+     * 减少此类作品数
+     */
+    @Excel(name = "减少此类作品数", width = 15)
+    @ApiModelProperty(value = "减少此类作品数")
+    private Long negative;
+    /**
+     * 提交按钮点击数(历史字段,同下方“表单提交数”,预计年底删除该字段)
+     */
+    @Excel(name = "提交按钮点击数(历史字段,同下方“表单提交数”,预计年底删除该字段)", width = 15)
+    @ApiModelProperty(value = "提交按钮点击数(历史字段,同下方“表单提交数”,预计年底删除该字段)")
+    private Long submit;
+    /**
+     * 应用下载数据-安卓下载开始数
+     */
+    @Excel(name = "应用下载数据-安卓下载开始数", width = 15)
+    @ApiModelProperty(value = "应用下载数据-安卓下载开始数")
+    private Long downloadStarted;
+    /**
+     * 应用下载数据-安卓下载完成数
+     */
+    @Excel(name = "应用下载数据-安卓下载完成数", width = 15)
+    @ApiModelProperty(value = "应用下载数据-安卓下载完成数")
+    private Long downloadCompleted;
+    /**
+     * 应用下载数据-激活数
+     */
+    @Excel(name = "应用下载数据-激活数", width = 15)
+    @ApiModelProperty(value = "应用下载数据-激活数")
+    private Long activation;
+    /**
+     * 应用下载数据-首日付费次数
+     */
+    @Excel(name = "应用下载数据-首日付费次数", width = 15)
+    @ApiModelProperty(value = "应用下载数据-首日付费次数")
+    private Long eventPayFirstDay;
+    /**
+     * 应用下载数据-首日付费金额
+     */
+    @Excel(name = "应用下载数据-首日付费金额", width = 15)
+    @ApiModelProperty(value = "应用下载数据-首日付费金额")
+    private java.math.BigDecimal eventPayPurchaseAmountFirstDay;
+    /**
+     * 应用下载数据-首日ROI
+     */
+    @Excel(name = "应用下载数据-首日ROI", width = 15)
+    @ApiModelProperty(value = "应用下载数据-首日ROI")
+    private java.math.BigDecimal eventPayFirstDayRoi;
+    /**
+     * 应用下载数据-付费次数
+     */
+    @Excel(name = "应用下载数据-付费次数", width = 15)
+    @ApiModelProperty(value = "应用下载数据-付费次数")
+    private Long eventPay;
+    /**
+     * 应用下载数据-付费金额
+     */
+    @Excel(name = "应用下载数据-付费金额", width = 15)
+    @ApiModelProperty(value = "应用下载数据-付费金额")
+    private java.math.BigDecimal eventPayPurchaseAmount;
+    /**
+     * 应用下载数据-ROI
+     */
+    @Excel(name = "应用下载数据-ROI", width = 15)
+    @ApiModelProperty(value = "应用下载数据-ROI")
+    private java.math.BigDecimal eventPayRoi;
+    /**
+     * 应用下载数据-注册数
+     */
+    @Excel(name = "应用下载数据-注册数", width = 15)
+    @ApiModelProperty(value = "应用下载数据-注册数")
+    private Long eventRegister;
+    /**
+     * 应用下载数据-注册成本
+     */
+    @Excel(name = "应用下载数据-注册成本", width = 15)
+    @ApiModelProperty(value = "应用下载数据-注册成本")
+    private java.math.BigDecimal eventRegisterCost;
+    /**
+     * 应用下载数据-注册率
+     */
+    @Excel(name = "应用下载数据-注册率", width = 15)
+    @ApiModelProperty(value = "应用下载数据-注册率")
+    private java.math.BigDecimal eventRegisterRatio;
+    /**
+     * 应用下载数据-完件数
+     */
+    @Excel(name = "应用下载数据-完件数", width = 15)
+    @ApiModelProperty(value = "应用下载数据-完件数")
+    private Long eventJinJianApp;
+    /**
+     * 应用下载数据-完件成本
+     */
+    @Excel(name = "应用下载数据-完件成本", width = 15)
+    @ApiModelProperty(value = "应用下载数据-完件成本")
+    private java.math.BigDecimal eventJinJianAppCost;
+    /**
+     * 应用下载数据-授信数
+     */
+    @Excel(name = "应用下载数据-授信数", width = 15)
+    @ApiModelProperty(value = "应用下载数据-授信数")
+    private Long eventCreditGrantApp;
+    /**
+     * 应用下载数据-授信成本
+     */
+    @Excel(name = "应用下载数据-授信成本", width = 15)
+    @ApiModelProperty(value = "应用下载数据-授信成本")
+    private java.math.BigDecimal eventCreditGrantAppCost;
+    /**
+     * 应用下载数据-授信率
+     */
+    @Excel(name = "应用下载数据-授信率", width = 15)
+    @ApiModelProperty(value = "应用下载数据-授信率")
+    private java.math.BigDecimal eventCreditGrantAppRatio;
+    /**
+     * 应用下载数据-付款成功数
+     */
+    @Excel(name = "应用下载数据-付款成功数", width = 15)
+    @ApiModelProperty(value = "应用下载数据-付款成功数")
+    private Long eventOrderPaid;
+    /**
+     * 应用下载数据-付款成功金额
+     */
+    @Excel(name = "应用下载数据-付款成功金额", width = 15)
+    @ApiModelProperty(value = "应用下载数据-付款成功金额")
+    private java.math.BigDecimal eventOrderPaidPurchaseAmount;
+    /**
+     * 应用下载数据-单次付款成本
+     */
+    @Excel(name = "应用下载数据-单次付款成本", width = 15)
+    @ApiModelProperty(value = "应用下载数据-单次付款成本")
+    private java.math.BigDecimal eventOrderPaidCost;
+    /**
+     * 应用下载数据-次留数(仅支持分日查询)
+     */
+    @Excel(name = "应用下载数据-次留数(仅支持分日查询)", width = 15)
+    @ApiModelProperty(value = "应用下载数据-次留数(仅支持分日查询)")
+    private Long eventNextDayStay;
+    /**
+     * 应用下载数据-次留成本(仅支持分日查询)
+     */
+    @Excel(name = "应用下载数据-次留成本(仅支持分日查询)", width = 15)
+    @ApiModelProperty(value = "应用下载数据-次留成本(仅支持分日查询)")
+    private java.math.BigDecimal eventNextDayStayCost;
+    /**
+     * 应用下载数据-次留率(仅支持分日查询)
+     */
+    @Excel(name = "应用下载数据-次留率(仅支持分日查询)", width = 15)
+    @ApiModelProperty(value = "应用下载数据-次留率(仅支持分日查询)")
+    private java.math.BigDecimal eventNextDayStayRatio;
+    /**
+     * 落地页数据-表单提交数
+     */
+    @Excel(name = "落地页数据-表单提交数", width = 15)
+    @ApiModelProperty(value = "落地页数据-表单提交数")
+    private Long formCount;
+    /**
+     * 落地页数据-表单提交单价
+     */
+    @Excel(name = "落地页数据-表单提交单价", width = 15)
+    @ApiModelProperty(value = "落地页数据-表单提交单价")
+    private java.math.BigDecimal formCost;
+    /**
+     * 落地页数据-表单提交点击率
+     */
+    @Excel(name = "落地页数据-表单提交点击率", width = 15)
+    @ApiModelProperty(value = "落地页数据-表单提交点击率")
+    private java.math.BigDecimal formActionRatio;
+    /**
+     * 落地页数据-落地页完件数
+     */
+    @Excel(name = "落地页数据-落地页完件数", width = 15)
+    @ApiModelProperty(value = "落地页数据-落地页完件数")
+    private Long eventJinJianLandingPage;
+    /**
+     * 落地页数据-落地页完件成本
+     */
+    @Excel(name = "落地页数据-落地页完件成本", width = 15)
+    @ApiModelProperty(value = "落地页数据-落地页完件成本")
+    private java.math.BigDecimal eventJinJianLandingPageCost;
+    /**
+     * 落地页数据-落地页授信数
+     */
+    @Excel(name = "落地页数据-落地页授信数", width = 15)
+    @ApiModelProperty(value = "落地页数据-落地页授信数")
+    private Long eventCreditGrantLandingPage;
+    /**
+     * 落地页数据-落地页授信成本
+     */
+    @Excel(name = "落地页数据-落地页授信成本", width = 15)
+    @ApiModelProperty(value = "落地页数据-落地页授信成本")
+    private java.math.BigDecimal eventCreditGrantLandingPageCost;
+    /**
+     * 落地页数据-落地页授信率
+     */
+    @Excel(name = "落地页数据-落地页授信率", width = 15)
+    @ApiModelProperty(value = "落地页数据-落地页授信率")
+    private java.math.BigDecimal eventCreditGrantLandingPageRatio;
+    /**
+     * 落地页数据-有效线索数
+     */
+    @Excel(name = "落地页数据-有效线索数", width = 15)
+    @ApiModelProperty(value = "落地页数据-有效线索数")
+    private Long eventValidClues;
+    /**
+     * 落地页数据-有效线索成本
+     */
+    @Excel(name = "落地页数据-有效线索成本", width = 15)
+    @ApiModelProperty(value = "落地页数据-有效线索成本")
+    private java.math.BigDecimal eventValidCluesCost;
+    /**
+     * 微信复制数
+     */
+    @Excel(name = "微信复制数", width = 15)
+    @ApiModelProperty(value = "微信复制数")
+    private Long eventAddWechat;
+    /**
+     * 微信复制成本
+     */
+    @Excel(name = "微信复制成本", width = 15)
+    @ApiModelProperty(value = "微信复制成本")
+    private java.math.BigDecimal eventAddWechatCost;
+    /**
+     * 微信复制率
+     */
+    @Excel(name = "微信复制率", width = 15)
+    @ApiModelProperty(value = "微信复制率")
+    private java.math.BigDecimal eventAddWechatRatio;
+    /**
+     * 智能电话-确认接通数
+     */
+    @Excel(name = "智能电话-确认接通数", width = 15)
+    @ApiModelProperty(value = "智能电话-确认接通数")
+    private Long eventGetThrough;
+    /**
+     * 智能电话-确认接通成本
+     */
+    @Excel(name = "智能电话-确认接通成本", width = 15)
+    @ApiModelProperty(value = "智能电话-确认接通成本")
+    private java.math.BigDecimal eventGetThroughCost;
+    /**
+     * 智能电话-确认接通率
+     */
+    @Excel(name = "智能电话-确认接通率", width = 15)
+    @ApiModelProperty(value = "智能电话-确认接通率")
+    private java.math.BigDecimal eventGetThroughRatio;
+    /**
+     * 唤醒应用数
+     */
+    @Excel(name = "唤醒应用数", width = 15)
+    @ApiModelProperty(value = "唤醒应用数")
+    private Long eventAppInvoked;
+    /**
+     * 唤醒应用成本
+     */
+    @Excel(name = "唤醒应用成本", width = 15)
+    @ApiModelProperty(value = "唤醒应用成本")
+    private java.math.BigDecimal eventAppInvokedCost;
+    /**
+     * 唤醒应用率
+     */
+    @Excel(name = "唤醒应用率", width = 15)
+    @ApiModelProperty(value = "唤醒应用率")
+    private java.math.BigDecimal eventAppInvokedRatio;
+    /**
+     * 落地页授信率
+     */
+    @Excel(name = "落地页授信率", width = 15)
+    @ApiModelProperty(value = "落地页授信率")
+    private java.math.BigDecimal eventCreditGrantLandingRatio;
+    /**
+     * 5s播放率
+     */
+    @Excel(name = "5s播放率", width = 15)
+    @ApiModelProperty(value = "5s播放率")
+    private java.math.BigDecimal play5sRatio;
+    /**
+     * 完播率
+     */
+    @Excel(name = "完播率", width = 15)
+    @ApiModelProperty(value = "完播率")
+    private java.math.BigDecimal playEndRatio;
+    /**
+     * 新增付费人数
+     */
+    @Excel(name = "新增付费人数", width = 15)
+    @ApiModelProperty(value = "新增付费人数")
+    private java.math.BigDecimal eventNewUserPay;
+    /**
+     * 新增付费人数成本
+     */
+    @Excel(name = "新增付费人数成本", width = 15)
+    @ApiModelProperty(value = "新增付费人数成本")
+    private java.math.BigDecimal eventNewUserPayCost;
+    /**
+     * 新增付费人数率
+     */
+    @Excel(name = "新增付费人数率", width = 15)
+    @ApiModelProperty(value = "新增付费人数率")
+    private java.math.BigDecimal eventNewUserPayRatio;
+    /**
+     * 平均千次素材曝光花费(元)
+     */
+    @Excel(name = "平均千次素材曝光花费(元)", width = 15)
+    @ApiModelProperty(value = "平均千次素材曝光花费(元)")
+    private java.math.BigDecimal click1kCost;
+    /**
+     * 商品成交数
+     */
+    @Excel(name = "商品成交数", width = 15)
+    @ApiModelProperty(value = "商品成交数")
+    private Long adProductCnt;
+    /**
+     * 商品访问数
+     */
+    @Excel(name = "商品访问数", width = 15)
+    @ApiModelProperty(value = "商品访问数")
+    private Long eventGoodsView;
+    /**
+     * 涨粉量
+     */
+    @Excel(name = "涨粉量", width = 15)
+    @ApiModelProperty(value = "涨粉量")
+    private Long merchantRecoFans;
+    /**
+     * 小店推广roi
+     */
+    @Excel(name = "小店推广roi", width = 15)
+    @ApiModelProperty(value = "小店推广roi")
+    private java.math.BigDecimal eventOrderAmountRoi;
+    /**
+     * 商品访问成本
+     */
+    @Excel(name = "商品访问成本", width = 15)
+    @ApiModelProperty(value = "商品访问成本")
+    private java.math.BigDecimal eventGoodsViewCost;
+    /**
+     * 涨粉成本
+     */
+    @Excel(name = "涨粉成本", width = 15)
+    @ApiModelProperty(value = "涨粉成本")
+    private java.math.BigDecimal merchantRecoFansCost;
+    /**
+     * 按钮点击数
+     */
+    @Excel(name = "按钮点击数", width = 15)
+    @ApiModelProperty(value = "按钮点击数")
+    private Long eventButtonClick;
+    /**
+     * 按钮点击成本
+     */
+    @Excel(name = "按钮点击成本", width = 15)
+    @ApiModelProperty(value = "按钮点击成本")
+    private java.math.BigDecimal eventButtonClickCost;
+    /**
+     * 按钮点击率
+     */
+    @Excel(name = "按钮点击率", width = 15)
+    @ApiModelProperty(value = "按钮点击率")
+    private java.math.BigDecimal eventButtonClickRatio;
+    /**
+     * 订单支付率
+     */
+    @Excel(name = "订单支付率", width = 15)
+    @ApiModelProperty(value = "订单支付率")
+    private java.math.BigDecimal eventOrderPaidRoi;
+    /**
+     * 新增完件人数
+     */
+    @Excel(name = "新增完件人数", width = 15)
+    @ApiModelProperty(value = "新增完件人数")
+    private Long eventNewUserJinjianApp;
+    /**
+     * 新增完件成本
+     */
+    @Excel(name = "新增完件成本", width = 15)
+    @ApiModelProperty(value = "新增完件成本")
+    private java.math.BigDecimal eventNewUserJinjianAppCost;
+    /**
+     * 新增完件人数率
+     */
+    @Excel(name = "新增完件人数率", width = 15)
+    @ApiModelProperty(value = "新增完件人数率")
+    private java.math.BigDecimal eventNewUserJinjianAppRoi;
+    /**
+     * 新增授信人数
+     */
+    @Excel(name = "新增授信人数", width = 15)
+    @ApiModelProperty(value = "新增授信人数")
+    private Long eventNewUserCreditGrantApp;
+    /**
+     * 新增授信人数成本
+     */
+    @Excel(name = "新增授信人数成本", width = 15)
+    @ApiModelProperty(value = "新增授信人数成本")
+    private java.math.BigDecimal eventNewUserCreditGrantAppCost;
+    /**
+     * 新增授信人数率
+     */
+    @Excel(name = "新增授信人数率", width = 15)
+    @ApiModelProperty(value = "新增授信人数率")
+    private java.math.BigDecimal eventNewUserCreditGrantAppRoi;
+    /**
+     * eventNewUserJinjianPage
+     */
+    @Excel(name = "eventNewUserJinjianPage", width = 15)
+    @ApiModelProperty(value = "eventNewUserJinjianPage")
+    private Long eventNewUserJinjianPage;
+    /**
+     * eventNewUserJinjianPageCost
+     */
+    @Excel(name = "eventNewUserJinjianPageCost", width = 15)
+    @ApiModelProperty(value = "eventNewUserJinjianPageCost")
+    private java.math.BigDecimal eventNewUserJinjianPageCost;
+    /**
+     * eventNewUserJinjianPageRoi
+     */
+    @Excel(name = "eventNewUserJinjianPageRoi", width = 15)
+    @ApiModelProperty(value = "eventNewUserJinjianPageRoi")
+    private java.math.BigDecimal eventNewUserJinjianPageRoi;
+    /**
+     * eventNewUserCreditGrantPage
+     */
+    @Excel(name = "eventNewUserCreditGrantPage", width = 15)
+    @ApiModelProperty(value = "eventNewUserCreditGrantPage")
+    private Long eventNewUserCreditGrantPage;
+    /**
+     * eventNewUserCreditGrantPageCost
+     */
+    @Excel(name = "eventNewUserCreditGrantPageCost", width = 15)
+    @ApiModelProperty(value = "eventNewUserCreditGrantPageCost")
+    private java.math.BigDecimal eventNewUserCreditGrantPageCost;
+    /**
+     * eventNewUserCreditGrantPageRoi
+     */
+    @Excel(name = "eventNewUserCreditGrantPageRoi", width = 15)
+    @ApiModelProperty(value = "eventNewUserCreditGrantPageRoi")
+    private java.math.BigDecimal eventNewUserCreditGrantPageRoi;
+    /**
+     * 预约表单数
+     */
+    @Excel(name = "预约表单数", width = 15)
+    @ApiModelProperty(value = "预约表单数")
+    private Long eventAppointForm;
+    /**
+     * 预约表单点击成本
+     */
+    @Excel(name = "预约表单点击成本", width = 15)
+    @ApiModelProperty(value = "预约表单点击成本")
+    private java.math.BigDecimal eventAppointFormCost;
+    /**
+     * 预约表单点击率
+     */
+    @Excel(name = "预约表单点击率", width = 15)
+    @ApiModelProperty(value = "预约表单点击率")
+    private java.math.BigDecimal eventAppointFormRatio;
+    /**
+     * 预约跳转点击数
+     */
+    @Excel(name = "预约跳转点击数", width = 15)
+    @ApiModelProperty(value = "预约跳转点击数")
+    private Long eventAppointJumpClick;
+    /**
+     * 预约跳转点击成本
+     */
+    @Excel(name = "预约跳转点击成本", width = 15)
+    @ApiModelProperty(value = "预约跳转点击成本")
+    private java.math.BigDecimal eventAppointJumpClickCost;
+    /**
+     * 预约跳转点击率
+     */
+    @Excel(name = "预约跳转点击率", width = 15)
+    @ApiModelProperty(value = "预约跳转点击率")
+    private java.math.BigDecimal eventAppointJumpClickRatio;
+    /**
+     * 联盟广告收入
+     */
+    @Excel(name = "联盟广告收入", width = 15)
+    @ApiModelProperty(value = "联盟广告收入")
+    private Long unionEventPayPurchaseAmount7d;
+    /**
+     * 联盟变现ROI
+     */
+    @Excel(name = "联盟变现ROI", width = 15)
+    @ApiModelProperty(value = "联盟变现ROI")
+    private java.math.BigDecimal unionEventPayPurchaseAmount7dRoi;
+    /**
+     * placementType
+     */
+    @Excel(name = "placementType", width = 15)
+    @ApiModelProperty(value = "placementType")
+    private String placementType;
+    /**
+     * adScene
+     */
+    @Excel(name = "adScene", width = 15)
+    @ApiModelProperty(value = "adScene")
+    private String adScene;
+    /**
+     * eventOrderSuccessed
+     */
+    @Excel(name = "eventOrderSuccessed", width = 15)
+    @ApiModelProperty(value = "eventOrderSuccessed")
+    private Long eventOrderSuccessed;
+    /**
+     * adPhotoPlayed10sRatio
+     */
+    @Excel(name = "adPhotoPlayed10sRatio", width = 15)
+    @ApiModelProperty(value = "adPhotoPlayed10sRatio")
+    private java.math.BigDecimal adPhotoPlayed10sRatio;
+    /**
+     * keyActionCost
+     */
+    @Excel(name = "keyActionCost", width = 15)
+    @ApiModelProperty(value = "keyActionCost")
+    private java.math.BigDecimal keyActionCost;
+    /**
+     * 添加购物车成本
+     */
+    @Excel(name = "添加购物车成本", width = 15)
+    @ApiModelProperty(value = "添加购物车成本")
+    private java.math.BigDecimal eventAddShoppingCartCost;
+    /**
+     * 广告观看次数转化率
+     */
+    @Excel(name = "广告观看次数转化率", width = 15)
+    @ApiModelProperty(value = "广告观看次数转化率")
+    private java.math.BigDecimal eventAdWatchTimesRatio;
+    /**
+     * eventOutboundCallCost
+     */
+    @Excel(name = "eventOutboundCallCost", width = 15)
+    @ApiModelProperty(value = "eventOutboundCallCost")
+    private java.math.BigDecimal eventOutboundCallCost;
+    /**
+     * eventOutboundCall
+     */
+    @Excel(name = "eventOutboundCall", width = 15)
+    @ApiModelProperty(value = "eventOutboundCall")
+    private Long eventOutboundCall;
+    /**
+     * actionNewRatio
+     */
+    @Excel(name = "actionNewRatio", width = 15)
+    @ApiModelProperty(value = "actionNewRatio")
+    private java.math.BigDecimal actionNewRatio;
+    /**
+     * 广告观看
+     */
+    @Excel(name = "广告观看", width = 15)
+    @ApiModelProperty(value = "广告观看")
+    private Long eventWatchAppAd;
+    /**
+     * 落地页多转化成本
+     */
+    @Excel(name = "落地页多转化成本", width = 15)
+    @ApiModelProperty(value = "落地页多转化成本")
+    private java.math.BigDecimal eventMultiConversionCost;
+    /**
+     * eventPhoneCardActivate
+     */
+    @Excel(name = "eventPhoneCardActivate", width = 15)
+    @ApiModelProperty(value = "eventPhoneCardActivate")
+    private Long eventPhoneCardActivate;
+    /**
+     * adPhotoPlayed75percentRatio
+     */
+    @Excel(name = "adPhotoPlayed75percentRatio", width = 15)
+    @ApiModelProperty(value = "adPhotoPlayed75percentRatio")
+    private java.math.BigDecimal adPhotoPlayed75percentRatio;
+    /**
+     * keyActionRatio
+     */
+    @Excel(name = "keyActionRatio", width = 15)
+    @ApiModelProperty(value = "keyActionRatio")
+    private java.math.BigDecimal keyActionRatio;
+    /**
+     * 广告观看次数成本
+     */
+    @Excel(name = "广告观看次数成本", width = 15)
+    @ApiModelProperty(value = "广告观看次数成本")
+    private java.math.BigDecimal eventAdWatchTimesCost;
+    /**
+     * 添加购物车数
+     */
+    @Excel(name = "添加购物车数", width = 15)
+    @ApiModelProperty(value = "添加购物车数")
+    private Long eventAddShoppingCart;
+    /**
+     * keyAction
+     */
+    @Excel(name = "keyAction", width = 15)
+    @ApiModelProperty(value = "keyAction")
+    private Long keyAction;
+    /**
+     * 落地页多转化次数
+     */
+    @Excel(name = "落地页多转化次数", width = 15)
+    @ApiModelProperty(value = "落地页多转化次数")
+    private Long eventMultiConversion;
+    /**
+     * eventWechatConnected
+     */
+    @Excel(name = "eventWechatConnected", width = 15)
+    @ApiModelProperty(value = "eventWechatConnected")
+    private Long eventWechatConnected;
+    /**
+     * 附加组件表单提交
+     */
+    @Excel(name = "附加组件表单提交", width = 15)
+    @ApiModelProperty(value = "附加组件表单提交")
+    private Long eventDspGiftForm;
+    /**
+     * eventIntentionConfirmed
+     */
+    @Excel(name = "eventIntentionConfirmed", width = 15)
+    @ApiModelProperty(value = "eventIntentionConfirmed")
+    private Long eventIntentionConfirmed;
+    /**
+     * eventPhoneGetThrough
+     */
+    @Excel(name = "eventPhoneGetThrough", width = 15)
+    @ApiModelProperty(value = "eventPhoneGetThrough")
+    private Long eventPhoneGetThrough;
+    /**
+     * 落地页多转化率
+     */
+    @Excel(name = "落地页多转化率", width = 15)
+    @ApiModelProperty(value = "落地页多转化率")
+    private java.math.BigDecimal eventMultiConversionRatio;
+    /**
+     * eventMeasurementHouse
+     */
+    @Excel(name = "eventMeasurementHouse", width = 15)
+    @ApiModelProperty(value = "eventMeasurementHouse")
+    private java.math.BigDecimal eventMeasurementHouse;
+    /**
+     * adPhotoPlayed2sRatio
+     */
+    @Excel(name = "adPhotoPlayed2sRatio", width = 15)
+    @ApiModelProperty(value = "adPhotoPlayed2sRatio")
+    private java.math.BigDecimal adPhotoPlayed2sRatio;
+    /**
+     * eventOutboundCallRatio
+     */
+    @Excel(name = "eventOutboundCallRatio", width = 15)
+    @ApiModelProperty(value = "eventOutboundCallRatio")
+    private java.math.BigDecimal eventOutboundCallRatio;
+    /**
+     * 广告观看次数
+     */
+    @Excel(name = " 广告观看次数", width = 15)
+    @ApiModelProperty(value = " 广告观看次数")
+    private Long eventAdWatchTimes;
+}

+ 19 - 0
job-kuaishou/src/main/java/cn/com/ctop/job/kuaishou/data/mapper/KuaishouMaterialImageReportDailyMapper.java

@@ -0,0 +1,19 @@
+package cn.com.ctop.job.kuaishou.data.mapper;
+
+import cn.com.ctop.job.kuaishou.data.entity.KuaishouMaterialImageReportDaily;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.Param;
+
+import java.util.List;
+
+/**
+ * 素材图片日报表
+ *
+ * @author jeecg-boot
+ * 2022-11-21
+ * @version V1.0
+ */
+public interface KuaishouMaterialImageReportDailyMapper extends BaseMapper<KuaishouMaterialImageReportDaily> {
+
+    void replaceBatchImage(@Param("addList") List<KuaishouMaterialImageReportDaily> addList);
+}

+ 2 - 2
job-kuaishou/src/main/java/cn/com/ctop/job/kuaishou/data/mapper/KuaishouMaterialVideoReportDailyMapper.java

@@ -13,7 +13,7 @@ import java.util.List;
  * @version V1.0
  * @version V1.0
  */
  */
 public interface KuaishouMaterialVideoReportDailyMapper
 public interface KuaishouMaterialVideoReportDailyMapper
-    extends BaseMapper<KuaishouMaterialVideoReportDaily> {
+        extends BaseMapper<KuaishouMaterialVideoReportDaily> {
+
     void replaceBatch(@Param("addList") List<KuaishouMaterialVideoReportDaily> addList);
     void replaceBatch(@Param("addList") List<KuaishouMaterialVideoReportDaily> addList);
-    void replaceBatchImage(@Param("addList") List<KuaishouMaterialVideoReportDaily> addList);
 }
 }

+ 274 - 0
job-kuaishou/src/main/java/cn/com/ctop/job/kuaishou/data/mapper/xml/KuaishouMaterialImageReportDailyMapper.xml

@@ -0,0 +1,274 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="cn.com.ctop.job.kuaishou.data.mapper.KuaishouMaterialImageReportDailyMapper">
+
+
+    <insert id="replaceBatchImage">
+        replace into kuaishou_material_image_report_daily(
+        `advertiser_id`,
+        `pic_signature`,
+        `pic_id`,
+        `image_urls`,
+        `stat_date`,
+        `charge`,
+        `show`,
+        `photo_click`,
+        `aclick`,
+        `bclick`,
+        `photo_click_ratio`,
+        `play_3s_ratio`,
+        `action_ratio`,
+        `impression_1k_cost`,
+        `photo_click_cost`,
+        `action_cost`,
+        `share`,
+        `comment`,
+        `like`,
+        `follow`,
+        `cancel_follow`,
+        `report`,
+        `block`,
+        `negative`,
+        `submit`,
+        `download_started`,
+        `download_completed`,
+        `activation`,
+        `event_pay_first_day`,
+        `event_pay_purchase_amount_first_day`,
+        `event_pay_first_day_roi`,
+        `event_pay`,
+        `event_pay_purchase_amount`,
+        `event_pay_roi`,
+        `event_register`,
+        `event_register_cost`,
+        `event_register_ratio`,
+        `event_jin_jian_app`,
+        `event_jin_jian_app_cost`,
+        `event_credit_grant_app`,
+        `event_credit_grant_app_cost`,
+        `event_credit_grant_app_ratio`,
+        `event_order_paid`,
+        `event_order_paid_purchase_amount`,
+        `event_order_paid_cost`,
+        `event_next_day_stay`,
+        `event_next_day_stay_cost`,
+        `event_next_day_stay_ratio`,
+        `form_count`,
+        `form_cost`,
+        `form_action_ratio`,
+        `event_jin_jian_landing_page`,
+        `event_jin_jian_landing_page_cost`,
+        `event_credit_grant_landing_page`,
+        `event_credit_grant_landing_page_cost`,
+        `event_valid_clues`,
+        `event_valid_clues_cost`,
+        `event_add_wechat`,
+        `event_add_wechat_cost`,
+        `event_add_wechat_ratio`,
+        `event_get_through`,
+        `event_get_through_cost`,
+        `event_get_through_ratio`,
+        `event_app_invoked`,
+        `event_app_invoked_cost`,
+        `event_app_invoked_ratio`,
+        `event_credit_grant_landing_ratio`,
+        `play_5s_ratio`,
+        `play_end_ratio`,
+        `event_new_user_pay`,
+        `event_new_user_pay_cost`,
+        `event_new_user_pay_ratio`,
+        `click_1k_cost`,
+        `ad_product_cnt`,
+        `event_goods_view`,
+        `merchant_reco_fans`,
+        `event_order_amount_roi`,
+        `event_goods_view_cost`,
+        `merchant_reco_fans_cost`,
+        `event_button_click`,
+        `event_button_click_cost`,
+        `event_button_click_ratio`,
+        `event_order_paid_roi`,
+        `event_new_user_jinjian_app`,
+        `event_new_user_jinjian_app_cost`,
+        `event_new_user_jinjian_app_roi`,
+        `event_new_user_credit_grant_app`,
+        `event_new_user_credit_grant_app_cost`,
+        `event_new_user_credit_grant_app_roi`,
+        `event_new_user_jinjian_page`,
+        `event_new_user_jinjian_page_cost`,
+        `event_new_user_jinjian_page_roi`,
+        `event_new_user_credit_grant_page`,
+        `event_new_user_credit_grant_page_cost`,
+        `event_new_user_credit_grant_page_roi`,
+        `event_appoint_form`,
+        `event_appoint_form_cost`,
+        `event_appoint_form_ratio`,
+        `event_appoint_jump_click`,
+        `event_appoint_jump_click_cost`,
+        `event_appoint_jump_click_ratio`,
+        `placement_type`,
+        `ad_scene`,
+        `event_order_successed`,
+        `ad_photo_played_10s_ratio`,
+        `key_action_cost`,
+        `event_add_shopping_cart_cost`,
+        `event_ad_watch_times_ratio`,
+        `event_outbound_call_cost`,
+        `event_outbound_call`,
+        `action_new_ratio`,
+        `event_watch_app_ad`,
+        `event_multi_conversion_cost`,
+        `event_phone_card_activate`,
+        `ad_photo_played_75percent_ratio`,
+        `key_action_ratio`,
+        `event_ad_watch_times_cost`,
+        `event_add_shopping_cart`,
+        `key_action`,
+        `event_multi_conversion`,
+        `event_wechat_connected`,
+        `event_dsp_gift_form`,
+        `event_intention_confirmed`,
+        `event_phone_get_through`,
+        `event_multi_conversion_ratio`,
+        `event_measurement_house`,
+        `ad_photo_played_2s_ratio`,
+        `event_outbound_call_ratio`,
+        `event_ad_watch_times`
+        )
+        values
+        <foreach collection="addList" item="add" separator=",">
+            (
+            #{add.advertiserId},
+            #{add.picSignature},
+            #{add.picId},
+            #{add.imageUrls},
+            #{add.statDate},
+            #{add.charge},
+            #{add.show},
+            #{add.photoClick},
+            #{add.aclick},
+            #{add.bclick},
+            #{add.photoClickRatio},
+            #{add.play3sRatio},
+            #{add.actionRatio},
+            #{add.impression1kCost},
+            #{add.photoClickCost},
+            #{add.actionCost},
+            #{add.share},
+            #{add.comment},
+            #{add.like},
+            #{add.follow},
+            #{add.cancelFollow},
+            #{add.report},
+            #{add.block},
+            #{add.negative},
+            #{add.submit},
+            #{add.downloadStarted},
+            #{add.downloadCompleted},
+            #{add.activation},
+            #{add.eventPayFirstDay},
+            #{add.eventPayPurchaseAmountFirstDay},
+            #{add.eventPayFirstDayRoi},
+            #{add.eventPay},
+            #{add.eventPayPurchaseAmount},
+            #{add.eventPayRoi},
+            #{add.eventRegister},
+            #{add.eventRegisterCost},
+            #{add.eventRegisterRatio},
+            #{add.eventJinJianApp},
+            #{add.eventJinJianAppCost},
+            #{add.eventCreditGrantApp},
+            #{add.eventCreditGrantAppCost},
+            #{add.eventCreditGrantAppRatio},
+            #{add.eventOrderPaid},
+            #{add.eventOrderPaidPurchaseAmount},
+            #{add.eventOrderPaidCost},
+            #{add.eventNextDayStay},
+            #{add.eventNextDayStayCost},
+            #{add.eventNextDayStayRatio},
+            #{add.formCount},
+            #{add.formCost},
+            #{add.formActionRatio},
+            #{add.eventJinJianLandingPage},
+            #{add.eventJinJianLandingPageCost},
+            #{add.eventCreditGrantLandingPage},
+            #{add.eventCreditGrantLandingPageCost},
+            #{add.eventValidClues},
+            #{add.eventValidCluesCost},
+            #{add.eventAddWechat},
+            #{add.eventAddWechatCost},
+            #{add.eventAddWechatRatio},
+            #{add.eventGetThrough},
+            #{add.eventGetThroughCost},
+            #{add.eventGetThroughRatio},
+            #{add.eventAppInvoked},
+            #{add.eventAppInvokedCost},
+            #{add.eventAppInvokedRatio},
+            #{add.eventCreditGrantLandingRatio},
+            #{add.play5sRatio},
+            #{add.playEndRatio},
+            #{add.eventNewUserPay},
+            #{add.eventNewUserPayCost},
+            #{add.eventNewUserPayRatio},
+            #{add.click1kCost},
+            #{add.adProductCnt},
+            #{add.eventGoodsView},
+            #{add.merchantRecoFans},
+            #{add.eventOrderAmountRoi},
+            #{add.eventGoodsViewCost},
+            #{add.merchantRecoFansCost},
+            #{add.eventButtonClick},
+            #{add.eventButtonClickCost},
+            #{add.eventButtonClickRatio},
+            #{add.eventOrderPaidRoi},
+            #{add.eventNewUserJinjianApp},
+            #{add.eventNewUserJinjianAppCost},
+            #{add.eventNewUserJinjianAppRoi},
+            #{add.eventNewUserCreditGrantApp},
+            #{add.eventNewUserCreditGrantAppCost},
+            #{add.eventNewUserCreditGrantAppRoi},
+            #{add.eventNewUserJinjianPage},
+            #{add.eventNewUserJinjianPageCost},
+            #{add.eventNewUserJinjianPageRoi},
+            #{add.eventNewUserCreditGrantPage},
+            #{add.eventNewUserCreditGrantPageCost},
+            #{add.eventNewUserCreditGrantPageRoi},
+            #{add.eventAppointForm},
+            #{add.eventAppointFormCost},
+            #{add.eventAppointFormRatio},
+            #{add.eventAppointJumpClick},
+            #{add.eventAppointJumpClickCost},
+            #{add.eventAppointJumpClickRatio},
+            #{add.placementType},
+            #{add.adScene},
+            #{add.eventOrderSuccessed},
+            #{add.adPhotoPlayed10sRatio},
+            #{add.keyActionCost},
+            #{add.eventAddShoppingCartCost},
+            #{add.eventAdWatchTimesRatio},
+            #{add.eventOutboundCallCost},
+            #{add.eventOutboundCall},
+            #{add.actionNewRatio},
+            #{add.eventWatchAppAd},
+            #{add.eventMultiConversionCost},
+            #{add.eventPhoneCardActivate},
+            #{add.adPhotoPlayed75percentRatio},
+            #{add.keyActionRatio},
+            #{add.eventAdWatchTimesCost},
+            #{add.eventAddShoppingCart},
+            #{add.keyAction},
+            #{add.eventMultiConversion},
+            #{add.eventWechatConnected},
+            #{add.eventDspGiftForm},
+            #{add.eventIntentionConfirmed},
+            #{add.eventPhoneGetThrough},
+            #{add.eventMultiConversionRatio},
+            #{add.eventMeasurementHouse},
+            #{add.adPhotoPlayed2sRatio},
+            #{add.eventOutboundCallRatio},
+            #{add.eventAdWatchTimes}
+            )
+        </foreach>
+    </insert>
+
+</mapper>

+ 0 - 277
job-kuaishou/src/main/java/cn/com/ctop/job/kuaishou/data/mapper/xml/KuaishouMaterialVideoReportDailyMapper.xml

@@ -280,281 +280,4 @@
     </insert>
     </insert>
 
 
 
 
-    <insert id="replaceBatchImage">
-        replace into kuaishou_material_image_report_daily(
-        `advertiser_id`,
-        `stat_date`,
-        `ad_scene`,
-        `photo_id`,
-        `photo_url`,
-        `cover_url`,
-        `image_token`,
-        `photo_caption`,
-        `charge`,
-        `show`,
-        `photo_click`,
-        `aclick`,
-        `bclick`,
-        `photo_click_ratio`,
-        `play_3s_ratio`,
-        `action_ratio`,
-        `impression_1k_cost`,
-        `photo_click_cost`,
-        `action_cost`,
-        `share`,
-        `comment`,
-        `like`,
-        `follow`,
-        `cancel_follow`,
-        `report`,
-        `block`,
-        `negative`,
-        `submit`,
-        `download_started`,
-        `download_completed`,
-        `activation`,
-        `event_pay_first_day`,
-        `event_pay_purchase_amount_first_day`,
-        `event_pay_first_day_roi`,
-        `event_pay`,
-        `event_pay_purchase_amount`,
-        `event_pay_roi`,
-        `event_register`,
-        `event_register_cost`,
-        `event_register_ratio`,
-        `event_jin_jian_app`,
-        `event_jin_jian_app_cost`,
-        `event_credit_grant_app`,
-        `event_credit_grant_app_cost`,
-        `event_credit_grant_app_ratio`,
-        `event_order_paid`,
-        `event_order_paid_purchase_amount`,
-        `event_order_paid_cost`,
-        `event_next_day_stay`,
-        `event_next_day_stay_cost`,
-        `event_next_day_stay_ratio`,
-        `form_count`,
-        `form_cost`,
-        `form_action_ratio`,
-        `event_jin_jian_landing_page`,
-        `event_jin_jian_landing_page_cost`,
-        `event_credit_grant_landing_page`,
-        `event_credit_grant_landing_page_cost`,
-        `event_credit_grant_landing_page_ratio`,
-        `event_valid_clues`,
-        `event_valid_clues_cost`,
-        `event_add_wechat`,
-        `event_add_wechat_cost`,
-        `event_add_wechat_ratio`,
-        `event_get_through`,
-        `event_get_through_cost`,
-        `event_get_through_ratio`,
-        `event_app_invoked`,
-        `event_app_invoked_cost`,
-        `event_app_invoked_ratio`,
-        `event_credit_grant_landing_ratio`,
-        `play_5s_ratio`,
-        `play_end_ratio`,
-        `event_new_user_pay`,
-        `event_new_user_pay_cost`,
-        `event_new_user_pay_ratio`,
-        `click_1k_cost`,
-        `ad_product_cnt`,
-        `event_goods_view`,
-        `merchant_reco_fans`,
-        `event_order_amount_roi`,
-        `event_goods_view_cost`,
-        `merchant_reco_fans_cost`,
-        `event_button_click`,
-        `event_button_click_cost`,
-        `event_button_click_ratio`,
-        `event_order_paid_roi`,
-        `event_new_user_jinjian_app`,
-        `event_new_user_jinjian_app_cost`,
-        `event_new_user_jinjian_app_roi`,
-        `event_new_user_credit_grant_app`,
-        `event_new_user_credit_grant_app_cost`,
-        `event_new_user_credit_grant_app_roi`,
-        `event_new_user_jinjian_page`,
-        `event_new_user_jinjian_page_cost`,
-        `event_new_user_jinjian_page_roi`,
-        `event_new_user_credit_grant_page`,
-        `event_new_user_credit_grant_page_cost`,
-        `event_new_user_credit_grant_page_roi`,
-        `event_appoint_form`,
-        `event_appoint_form_cost`,
-        `event_appoint_form_ratio`,
-        `event_appoint_jump_click`,
-        `event_appoint_jump_click_cost`,
-        `event_appoint_jump_click_ratio`,
-        `union_event_pay_purchase_amount_7d`,
-        `union_event_pay_purchase_amount_7d_roi`,
-        `placement_type`,
-        `event_order_successed`,
-        `ad_photo_played_10s_ratio`,
-        `key_action_cost`,
-        `event_add_shopping_cart_cost`,
-        `event_ad_watch_times_ratio`,
-        `event_outbound_call_cost`,
-        `event_outbound_call`,
-        `action_new_ratio`,
-        `event_watch_app_ad`,
-        `event_multi_conversion_cost`,
-        `event_phone_card_activate`,
-        `ad_photo_played_75percent_ratio`,
-        `key_action_ratio`,
-        `event_ad_watch_times_cost`,
-        `event_add_shopping_cart`,
-        `key_action`,
-        `event_multi_conversion`,
-        `event_wechat_connected`,
-        `event_dsp_gift_form`,
-        `event_intention_confirmed`,
-        `event_phone_get_through`,
-        `event_multi_conversion_ratio`,
-        `event_measurement_house`,
-        `ad_photo_played_2s_ratio`,
-        `event_outbound_call_ratio`,
-        `event_ad_watch_times`
-        )
-        values
-        <foreach collection="addList" item="add" separator=",">
-            (
-            #{add.advertiserId},
-            #{add.statDate},
-            #{add.adScene},
-            #{add.photoId},
-            #{add.photoUrl},
-            #{add.coverUrl},
-            #{add.imageToken},
-            #{add.photoCaption},
-            #{add.charge},
-            #{add.show},
-            #{add.photoClick},
-            #{add.aclick},
-            #{add.bclick},
-            #{add.photoClickRatio},
-            #{add.play3sRatio},
-            #{add.actionRatio},
-            #{add.impression1kCost},
-            #{add.photoClickCost},
-            #{add.actionCost},
-            #{add.share},
-            #{add.comment},
-            #{add.like},
-            #{add.follow},
-            #{add.cancelFollow},
-            #{add.report},
-            #{add.block},
-            #{add.negative},
-            #{add.submit},
-            #{add.downloadStarted},
-            #{add.downloadCompleted},
-            #{add.activation},
-            #{add.eventPayFirstDay},
-            #{add.eventPayPurchaseAmountFirstDay},
-            #{add.eventPayFirstDayRoi},
-            #{add.eventPay},
-            #{add.eventPayPurchaseAmount},
-            #{add.eventPayRoi},
-            #{add.eventRegister},
-            #{add.eventRegisterCost},
-            #{add.eventRegisterRatio},
-            #{add.eventJinJianApp},
-            #{add.eventJinJianAppCost},
-            #{add.eventCreditGrantApp},
-            #{add.eventCreditGrantAppCost},
-            #{add.eventCreditGrantAppRatio},
-            #{add.eventOrderPaid},
-            #{add.eventOrderPaidPurchaseAmount},
-            #{add.eventOrderPaidCost},
-            #{add.eventNextDayStay},
-            #{add.eventNextDayStayCost},
-            #{add.eventNextDayStayRatio},
-            #{add.formCount},
-            #{add.formCost},
-            #{add.formActionRatio},
-            #{add.eventJinJianLandingPage},
-            #{add.eventJinJianLandingPageCost},
-            #{add.eventCreditGrantLandingPage},
-            #{add.eventCreditGrantLandingPageCost},
-            #{add.eventCreditGrantLandingPageRatio},
-            #{add.eventValidClues},
-            #{add.eventValidCluesCost},
-            #{add.eventAddWechat},
-            #{add.eventAddWechatCost},
-            #{add.eventAddWechatRatio},
-            #{add.eventGetThrough},
-            #{add.eventGetThroughCost},
-            #{add.eventGetThroughRatio},
-            #{add.eventAppInvoked},
-            #{add.eventAppInvokedCost},
-            #{add.eventAppInvokedRatio},
-            #{add.eventCreditGrantLandingRatio},
-            #{add.play5sRatio},
-            #{add.playEndRatio},
-            #{add.eventNewUserPay},
-            #{add.eventNewUserPayCost},
-            #{add.eventNewUserPayRatio},
-            #{add.click1kCost},
-            #{add.adProductCnt},
-            #{add.eventGoodsView},
-            #{add.merchantRecoFans},
-            #{add.eventOrderAmountRoi},
-            #{add.eventGoodsViewCost},
-            #{add.merchantRecoFansCost},
-            #{add.eventButtonClick},
-            #{add.eventButtonClickCost},
-            #{add.eventButtonClickRatio},
-            #{add.eventOrderPaidRoi},
-            #{add.eventNewUserJinjianApp},
-            #{add.eventNewUserJinjianAppCost},
-            #{add.eventNewUserJinjianAppRoi},
-            #{add.eventNewUserCreditGrantApp},
-            #{add.eventNewUserCreditGrantAppCost},
-            #{add.eventNewUserCreditGrantAppRoi},
-            #{add.eventNewUserJinjianPage},
-            #{add.eventNewUserJinjianPageCost},
-            #{add.eventNewUserJinjianPageRoi},
-            #{add.eventNewUserCreditGrantPage},
-            #{add.eventNewUserCreditGrantPageCost},
-            #{add.eventNewUserCreditGrantPageRoi},
-            #{add.eventAppointForm},
-            #{add.eventAppointFormCost},
-            #{add.eventAppointFormRatio},
-            #{add.eventAppointJumpClick},
-            #{add.eventAppointJumpClickCost},
-            #{add.eventAppointJumpClickRatio},
-            #{add.unionEventPayPurchaseAmount7d},
-            #{add.unionEventPayPurchaseAmount7dRoi},
-            #{add.placementType},
-            #{add.eventOrderSuccessed},
-            #{add.adPhotoPlayed10sRatio},
-            #{add.keyActionCost},
-            #{add.eventAddShoppingCartCost},
-            #{add.eventAdWatchTimesRatio},
-            #{add.eventOutboundCallCost},
-            #{add.eventOutboundCall},
-            #{add.actionNewRatio},
-            #{add.eventWatchAppAd},
-            #{add.eventMultiConversionCost},
-            #{add.eventPhoneCardActivate},
-            #{add.adPhotoPlayed75percentRatio},
-            #{add.keyActionRatio},
-            #{add.eventAdWatchTimesCost},
-            #{add.eventAddShoppingCart},
-            #{add.keyAction},
-            #{add.eventMultiConversion},
-            #{add.eventWechatConnected},
-            #{add.eventDspGiftForm},
-            #{add.eventIntentionConfirmed},
-            #{add.eventPhoneGetThrough},
-            #{add.eventMultiConversionRatio},
-            #{add.eventMeasurementHouse},
-            #{add.adPhotoPlayed2sRatio},
-            #{add.eventOutboundCallRatio},
-            #{add.eventAdWatchTimes}
-            )
-        </foreach>
-    </insert>
 </mapper>
 </mapper>

+ 32 - 139
job-kuaishou/src/main/java/cn/com/ctop/job/kuaishou/data/service/impl/KuaishouMaterialVideoReportDailyServiceImpl.java

@@ -1,20 +1,25 @@
 package cn.com.ctop.job.kuaishou.data.service.impl;
 package cn.com.ctop.job.kuaishou.data.service.impl;
 
 
 import cn.com.ctop.job.kuaishou.data.constant.KuaishouConstant;
 import cn.com.ctop.job.kuaishou.data.constant.KuaishouConstant;
+import cn.com.ctop.job.kuaishou.data.entity.KuaishouMaterialImageReportDaily;
 import cn.com.ctop.job.kuaishou.data.entity.KuaishouMaterialVideoReportDaily;
 import cn.com.ctop.job.kuaishou.data.entity.KuaishouMaterialVideoReportDaily;
+import cn.com.ctop.job.kuaishou.data.mapper.KuaishouMaterialImageReportDailyMapper;
 import cn.com.ctop.job.kuaishou.data.mapper.KuaishouMaterialVideoReportDailyMapper;
 import cn.com.ctop.job.kuaishou.data.mapper.KuaishouMaterialVideoReportDailyMapper;
 import cn.com.ctop.job.kuaishou.data.service.IKuaishouMaterialVideoReportDailyService;
 import cn.com.ctop.job.kuaishou.data.service.IKuaishouMaterialVideoReportDailyService;
+import cn.com.ctop.job.kuaishou.data.utils.Check;
 import cn.com.ctop.job.kuaishou.data.utils.DateUtils;
 import cn.com.ctop.job.kuaishou.data.utils.DateUtils;
 import cn.com.ctop.job.kuaishou.data.utils.HttpUtils;
 import cn.com.ctop.job.kuaishou.data.utils.HttpUtils;
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 import com.alibaba.fastjson.JSONObject;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import lombok.extern.slf4j.Slf4j;
 import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.BeanUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
 
 
 import java.util.ArrayList;
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.HashMap;
 import java.util.HashMap;
 import java.util.List;
 import java.util.List;
 import java.util.Map;
 import java.util.Map;
@@ -31,6 +36,9 @@ public class KuaishouMaterialVideoReportDailyServiceImpl extends ServiceImpl<Kua
 
 
     @Autowired
     @Autowired
     private KuaishouMaterialVideoReportDailyMapper videoReportDailyMapper;
     private KuaishouMaterialVideoReportDailyMapper videoReportDailyMapper;
+
+    @Autowired
+    private KuaishouMaterialImageReportDailyMapper imageReportDailyMapper;
     @Value("${api.kuaishou.postUrl}")
     @Value("${api.kuaishou.postUrl}")
     private String postUrl;
     private String postUrl;
 
 
@@ -219,12 +227,15 @@ public class KuaishouMaterialVideoReportDailyServiceImpl extends ServiceImpl<Kua
         param.put("advertiser_id", advertiserId);
         param.put("advertiser_id", advertiserId);
         param.put("temporal_granularity", "DAILY");
         param.put("temporal_granularity", "DAILY");
         param.put("view_type", 16);
         param.put("view_type", 16);
+        param.put("report_dims", Arrays.asList("adScene"));
         Integer page_size = 1000;
         Integer page_size = 1000;
         param.put("page_size", page_size);
         param.put("page_size", page_size);
         param.put("page", page);
         param.put("page", page);
+//        System.out.println("入参:"+param);
         String result = HttpUtils.httpPostRequest(url, param, headers);
         String result = HttpUtils.httpPostRequest(url, param, headers);
         JSONObject resultJson = JSONObject.parseObject(result);
         JSONObject resultJson = JSONObject.parseObject(result);
         JSONArray details = resultJson.getJSONArray("details");
         JSONArray details = resultJson.getJSONArray("details");
+//        System.out.println("结果:"+details);
         if (null == details || details.size() <= 0) {
         if (null == details || details.size() <= 0) {
             log.error("快手图片日报返回详情为空,accountId:{}", advertiserId);
             log.error("快手图片日报返回详情为空,accountId:{}", advertiserId);
             return;
             return;
@@ -233,151 +244,33 @@ public class KuaishouMaterialVideoReportDailyServiceImpl extends ServiceImpl<Kua
         if (details.size() < page_size) {
         if (details.size() < page_size) {
             toGet = false;
             toGet = false;
         }
         }
-        List<KuaishouMaterialVideoReportDaily> addList = new ArrayList<>();
+        List<KuaishouMaterialImageReportDaily> addList = new ArrayList<>();
         for (int i = 0; i < details.size(); i++) {
         for (int i = 0; i < details.size(); i++) {
-            JSONObject returnJson = details.getJSONObject(i);
-            KuaishouMaterialVideoReportDaily reportDaily = new KuaishouMaterialVideoReportDaily();
-            reportDaily.setAdvertiserId(advertiserId);
-            reportDaily.setStatDate(DateUtils.getDateInteger(returnJson.getString("stat_date")));
-            reportDaily.setPhotoId(returnJson.getString("photo_id"));
-            reportDaily.setAdScene(returnJson.getString("ad_scene"));
-            reportDaily.setPhotoUrl(returnJson.getString("photo_url"));
-            reportDaily.setCoverUrl(returnJson.getString("cover_url"));
-            reportDaily.setImageToken(returnJson.getString("image_token"));
-            reportDaily.setPhotoCaption(returnJson.getString("photo_caption"));
-            reportDaily.setCharge(returnJson.getBigDecimal("charge"));
-            reportDaily.setShow(returnJson.getLong("show"));
-            reportDaily.setPhotoClick(returnJson.getLong("photo_click"));
-            reportDaily.setAclick(returnJson.getLong("aclick"));
-            reportDaily.setBclick(returnJson.getLong("bclick"));
-            reportDaily.setPhotoClickRatio(returnJson.getBigDecimal("photo_click_ratio"));
-            reportDaily.setPlay3sRatio(returnJson.getBigDecimal("play_3s_ratio"));
-            reportDaily.setActionRatio(returnJson.getBigDecimal("action_ratio"));
-            reportDaily.setImpression1kCost(returnJson.getBigDecimal("impression_1k_cost"));
-            reportDaily.setPhotoClickCost(returnJson.getBigDecimal("photo_click_cost"));
-            reportDaily.setActionCost(returnJson.getBigDecimal("action_cost"));
-            reportDaily.setShare(returnJson.getLong("share"));
-            reportDaily.setComment(returnJson.getLong("comment"));
-            reportDaily.setLike(returnJson.getLong("like"));
-            reportDaily.setFollow(returnJson.getLong("follow"));
-            reportDaily.setCancelFollow(returnJson.getLong("cancel_follow"));
-            reportDaily.setReport(returnJson.getLong("report"));
-            reportDaily.setBlock(returnJson.getLong("block"));
-            reportDaily.setNegative(returnJson.getLong("negative"));
-            reportDaily.setSubmit(returnJson.getLong("submit"));
-            reportDaily.setDownloadStarted(returnJson.getLong("download_started"));
-            reportDaily.setDownloadCompleted(returnJson.getLong("download_completed"));
-            reportDaily.setActivation(returnJson.getLong("activation"));
-            reportDaily.setEventPayFirstDay(returnJson.getLong("event_pay_first_day"));
-            reportDaily.setEventPayPurchaseAmountFirstDay(returnJson.getBigDecimal("event_pay_purchase_amount_first_day"));
-            reportDaily.setEventPayFirstDayRoi(returnJson.getBigDecimal("event_pay_first_day_roi"));
-            reportDaily.setEventPay(returnJson.getLong("event_pay"));
-            reportDaily.setEventPayPurchaseAmount(returnJson.getBigDecimal("event_pay_purchase_amount"));
-            reportDaily.setEventPayRoi(returnJson.getBigDecimal("event_pay_roi"));
-            reportDaily.setEventRegister(returnJson.getLong("event_register"));
-            reportDaily.setEventRegisterCost(returnJson.getBigDecimal("event_register_cost"));
-            reportDaily.setEventRegisterRatio(returnJson.getBigDecimal("event_register_ratio"));
-            reportDaily.setEventJinJianApp(returnJson.getLong("event_jin_jian_app"));
-            reportDaily.setEventJinJianAppCost(returnJson.getBigDecimal("event_jin_jian_app_cost"));
-            reportDaily.setEventCreditGrantApp(returnJson.getLong("event_credit_grant_app"));
-            reportDaily.setEventCreditGrantAppCost(returnJson.getBigDecimal("event_credit_grant_app_cost"));
-            reportDaily.setEventCreditGrantAppRatio(returnJson.getBigDecimal("event_credit_grant_app_ratio"));
-            reportDaily.setEventOrderPaid(returnJson.getLong("event_order_paid"));
-            reportDaily.setEventOrderPaidPurchaseAmount(returnJson.getBigDecimal("event_order_paid_purchase_amount"));
-            reportDaily.setEventOrderPaidCost(returnJson.getBigDecimal("event_order_paid_cost"));
-            reportDaily.setEventNextDayStay(returnJson.getLong("event_next_day_stay"));
-            reportDaily.setEventNextDayStayCost(returnJson.getBigDecimal("event_next_day_stay_cost"));
-            reportDaily.setEventNextDayStayRatio(returnJson.getBigDecimal("event_next_day_stay_ratio"));
-            reportDaily.setFormCount(returnJson.getLong("form_count"));
-            reportDaily.setFormCost(returnJson.getBigDecimal("form_cost"));
-            reportDaily.setFormActionRatio(returnJson.getBigDecimal("form_action_ratio"));
-            reportDaily.setEventJinJianLandingPage(returnJson.getLong("event_jin_jian_landing_page"));
-            reportDaily.setEventJinJianLandingPageCost(returnJson.getBigDecimal("event_jin_jian_landing_page_cost"));
-            reportDaily.setEventCreditGrantLandingPage(returnJson.getLong("event_credit_grant_landing_page"));
-            reportDaily.setEventCreditGrantLandingPageCost(returnJson.getBigDecimal("event_credit_grant_landing_page_cost"));
-            reportDaily.setEventCreditGrantLandingPageRatio(returnJson.getBigDecimal("event_credit_grant_landing_page_ratio"));
-            reportDaily.setEventValidClues(returnJson.getLong("event_valid_clues"));
-            reportDaily.setEventValidCluesCost(returnJson.getBigDecimal("event_valid_clues_cost"));
-            reportDaily.setEventAddWechat(returnJson.getLong("event_add_wechat"));
-            reportDaily.setEventAddWechatCost(returnJson.getBigDecimal("event_add_wechat_cost"));
-            reportDaily.setEventAddWechatRatio(returnJson.getBigDecimal("event_add_wechat_ratio"));
-            reportDaily.setEventGetThrough(returnJson.getLong("event_get_through"));
-            reportDaily.setEventGetThroughCost(returnJson.getBigDecimal("event_get_through_cost"));
-            reportDaily.setEventGetThroughRatio(returnJson.getBigDecimal("event_get_through_ratio"));
-            reportDaily.setEventAppInvoked(returnJson.getLong("event_app_invoked"));
-            reportDaily.setEventAppInvokedCost(returnJson.getBigDecimal("event_app_invoked_cost"));
-            reportDaily.setEventAppInvokedRatio(returnJson.getBigDecimal("event_app_invoked_ratio"));
-            reportDaily.setEventCreditGrantLandingRatio(returnJson.getBigDecimal("event_credit_grant_landing_ratio"));
-            reportDaily.setPlay5sRatio(returnJson.getBigDecimal("play_5s_ratio"));
-            reportDaily.setPlayEndRatio(returnJson.getBigDecimal("play_end_ratio"));
-            reportDaily.setEventNewUserPay(returnJson.getBigDecimal("event_new_user_pay"));
-            reportDaily.setEventNewUserPayCost(returnJson.getBigDecimal("event_new_user_pay_cost"));
-            reportDaily.setEventNewUserPayRatio(returnJson.getBigDecimal("event_new_user_pay_ratio"));
-            reportDaily.setClick1kCost(returnJson.getBigDecimal("click_1k_cost"));
-            reportDaily.setAdProductCnt(returnJson.getLong("ad_product_cnt"));
-            reportDaily.setEventGoodsView(returnJson.getLong("event_goods_view"));
-            reportDaily.setMerchantRecoFans(returnJson.getLong("merchant_reco_fans"));
-            reportDaily.setEventGoodsViewCost(returnJson.getBigDecimal("event_goods_view_cost"));
-            reportDaily.setMerchantRecoFansCost(returnJson.getBigDecimal("merchant_reco_fans_cost"));
-            reportDaily.setEventOrderAmountRoi(returnJson.getBigDecimal("event_order_amount_roi"));
-            reportDaily.setEventButtonClick(returnJson.getLong("event_button_click"));
-            reportDaily.setEventButtonClickCost(returnJson.getBigDecimal("event_button_click_cost"));
-            reportDaily.setEventButtonClickRatio(returnJson.getBigDecimal("event_button_click_ratio"));
-            reportDaily.setEventOrderPaidRoi(returnJson.getBigDecimal("event_order_paid_roi"));
-            reportDaily.setEventNewUserJinjianApp(returnJson.getLong("event_new_user_jinjian_app"));
-            reportDaily.setEventNewUserJinjianAppCost(returnJson.getBigDecimal("event_new_user_jinjian_app_cost"));
-            reportDaily.setEventNewUserJinjianAppRoi(returnJson.getBigDecimal("event_new_user_jinjian_app_roi"));
-            reportDaily.setEventNewUserCreditGrantApp(returnJson.getLong("event_new_user_credit_grant_app"));
-            reportDaily.setEventNewUserCreditGrantAppCost(returnJson.getBigDecimal("event_new_user_credit_grant_app_cost"));
-            reportDaily.setEventNewUserCreditGrantAppRoi(returnJson.getBigDecimal("event_new_user_credit_grant_app_roi"));
-            reportDaily.setEventNewUserJinjianPage(returnJson.getLong("event_new_user_jinjian_page"));
-            reportDaily.setEventNewUserJinjianPageCost(returnJson.getBigDecimal("event_new_user_jinjian_page_cost"));
-            reportDaily.setEventNewUserJinjianPageRoi(returnJson.getBigDecimal("event_new_user_jinjian_page_roi"));
-            reportDaily.setEventNewUserCreditGrantPage(returnJson.getLong("event_new_user_credit_grant_page"));
-            reportDaily.setEventNewUserCreditGrantPageCost(returnJson.getBigDecimal("event_new_user_credit_grant_page_cost"));
-            reportDaily.setEventNewUserCreditGrantPageRoi(returnJson.getBigDecimal("event_new_user_credit_grant_page_roi"));
-            reportDaily.setEventAppointForm(returnJson.getLong("event_appoint_form"));
-            reportDaily.setEventAppointFormCost(returnJson.getBigDecimal("event_appoint_form_cost"));
-            reportDaily.setEventAppointFormRatio(returnJson.getBigDecimal("event_appoint_form_ratio"));
-            reportDaily.setEventAppointJumpClick(returnJson.getLong("event_appoint_jump_click"));
-            reportDaily.setEventAppointJumpClickCost(returnJson.getBigDecimal("event_appoint_jump_click_cost"));
-            reportDaily.setEventAppointJumpClickRatio(returnJson.getBigDecimal("event_appoint_jump_click_ratio"));
-            reportDaily.setUnionEventPayPurchaseAmount7d(returnJson.getLong("union_event_pay_purchase_amount_7d"));
-            reportDaily.setUnionEventPayPurchaseAmount7dRoi(returnJson.getBigDecimal("union_event_pay_purchase_amount_7d_roi"));
-            reportDaily.setPlacementType(returnJson.getString("placement_type"));
-            reportDaily.setEventOrderSuccessed(returnJson.getLong("event_order_successed"));
-            reportDaily.setAdPhotoPlayed10sRatio(returnJson.getBigDecimal("ad_photo_played_10s_ratio"));
-            reportDaily.setKeyActionCost(returnJson.getBigDecimal("key_action_cost"));
-            reportDaily.setEventAddShoppingCartCost(returnJson.getBigDecimal("event_add_shopping_cart_cost"));
-            reportDaily.setEventAdWatchTimesRatio(returnJson.getBigDecimal("event_ad_watch_times_ratio"));
-            reportDaily.setEventOutboundCallCost(returnJson.getBigDecimal("event_outbound_call_cost"));
-            reportDaily.setEventOutboundCall(returnJson.getLong("event_outbound_call"));
-            reportDaily.setActionNewRatio(returnJson.getBigDecimal("action_new_ratio"));
-            reportDaily.setEventWatchAppAd(returnJson.getLong("event_watch_app_ad"));
-            reportDaily.setEventMultiConversionCost(returnJson.getBigDecimal("event_multi_conversion_cost"));
-            reportDaily.setEventPhoneCardActivate(returnJson.getLong("event_phone_card_activate"));
-            reportDaily.setAdPhotoPlayed75percentRatio(returnJson.getBigDecimal("ad_photo_played_75percent_ratio"));
-            //  reportDaily.setKeyActionRatio(returnJson.getBigDecimal("key_action_ratio"));
-            reportDaily.setEventAdWatchTimesCost(returnJson.getBigDecimal("event_ad_watch_times_cost"));
-            reportDaily.setEventAddShoppingCart(returnJson.getLong("event_add_shopping_cart"));
-            reportDaily.setKeyAction(returnJson.getLong("key_action"));
-            reportDaily.setEventMultiConversion(returnJson.getLong("event_multi_conversion"));
-            reportDaily.setEventWechatConnected(returnJson.getLong("event_wechat_connected"));
-            reportDaily.setEventDspGiftForm(returnJson.getLong("event_dsp_gift_form"));
-            reportDaily.setEventIntentionConfirmed(returnJson.getLong("event_intention_confirmed"));
-            reportDaily.setEventPhoneGetThrough(returnJson.getLong("event_phone_get_through"));
-            reportDaily.setEventMultiConversionRatio(returnJson.getBigDecimal("event_multi_conversion_ratio"));
-            reportDaily.setEventMeasurementHouse(returnJson.getBigDecimal("event_measurement_house"));
-            reportDaily.setAdPhotoPlayed2sRatio(returnJson.getBigDecimal("ad_photo_played_2s_ratio"));
-            reportDaily.setEventOutboundCallRatio(returnJson.getBigDecimal("event_outbound_call_ratio"));
-            reportDaily.setEventAdWatchTimes(returnJson.getLong("event_ad_watch_times"));
-            addList.add(reportDaily);
+            JSONObject jsonObject = details.getJSONObject(i);
+            KuaishouMaterialImageReportDaily imageReportDaily = JSONObject.parseObject(jsonObject.toJSONString(), KuaishouMaterialImageReportDaily.class);
+            if (Check.isNull(imageReportDaily.getPicSignature())) {
+                continue;
+            }
+            /*System.out.println("---> 账户:"+advertiserId+",PicSignature:"+
+                    imageReportDaily.getPicSignature()+",PicId:"+
+                    imageReportDaily.getPicId()+",AdScene:"+
+                    imageReportDaily.getAdScene()+",StatDate:"+
+                    imageReportDaily.getStatDate()+",Charge:"+
+                    imageReportDaily.getCharge()+",ImageUrls:"+
+                    imageReportDaily.getImageUrls()
+                    );*/
+            imageReportDaily.setStatDate(DateUtils.getDateInteger(jsonObject.getString("stat_date"))+"");
+            imageReportDaily.setAdvertiserId(advertiserId);
+            addList.add(imageReportDaily);
+        }
+        if (!addList.isEmpty()) {
+            imageReportDailyMapper.replaceBatchImage(addList);
         }
         }
-        videoReportDailyMapper.replaceBatchImage(addList);
         if (toGet) {
         if (toGet) {
             getVideoReportDaily(advertiserId, accessToken, startDate, endDate, page + 1);
             getVideoReportDaily(advertiserId, accessToken, startDate, endDate, page + 1);
         } else {
         } else {
             log.info("图片日报数据获取完成:accountId:{}", advertiserId);
             log.info("图片日报数据获取完成:accountId:{}", advertiserId);
         }
         }
     }
     }
+
 }
 }