Procházet zdrojové kódy

快手运营操作记录

yangzian před 2 roky
rodič
revize
75e058e29e

+ 106 - 0
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/controller/KuaiShouOperationRecordController.java

@@ -0,0 +1,106 @@
+package org.jeecg.ctop.material.controller;
+
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.poi.hssf.usermodel.*;
+import org.apache.poi.ss.usermodel.HorizontalAlignment;
+import org.apache.poi.ss.util.CellRangeAddress;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.util.DateUtils;
+import org.jeecg.ctop.material.constants.Check;
+import org.jeecg.ctop.material.entity.vo.KuaiShouOperateAccountVo;
+import org.jeecg.ctop.material.entity.vo.KuaiShouOperateProjectVo;
+import org.jeecg.ctop.material.mapper.MaterialStareMapper;
+import org.jeecg.ctop.material.service.KuaishouOperationRecordService;
+import org.jeecg.ctop.material.service.MaterialStareService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+import javax.servlet.http.HttpServletResponse;
+import java.io.BufferedOutputStream;
+import java.io.OutputStream;
+import java.net.URLEncoder;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+/**
+ * 快手-账户操作记录
+ */
+@Slf4j
+@RestController
+@RequestMapping("/kuaiShouOpreate/kuaiShouOperationRecordController")
+public class KuaiShouOperationRecordController {
+
+
+    @Autowired
+    MaterialStareService materialStareService;
+
+    @Autowired
+    private MaterialStareMapper materialStareMapper;
+
+    @Autowired
+    private KuaishouOperationRecordService kuaishouOperationRecordService;
+
+
+
+
+    /**
+     *
+     * @description: 运营人员账户查询成功
+     *
+     * @param userId
+     * @return: org.jeecg.common.api.vo.Result
+     * @author: zianY
+     */
+    @GetMapping("/getAllSubordinateAccountByUserId")
+    public Result<JSONObject> getAllSubordinateAccountByUserId(@RequestParam(name="userId") String userId) {
+        return kuaishouOperationRecordService.getAllSubordinateAccountByUserId(userId);
+    }
+
+
+
+    /**
+     *
+     * @description: 消耗前10的广告组
+     *
+     * @param userId
+     * @param advertiserId
+     * @param startTime
+     * @param endTime
+     * @return: org.jeecg.common.api.vo.Result<com.alibaba.fastjson.JSONObject>
+     * @author: zianY
+     */
+    @GetMapping("/getKuaishouUnitChargeTopTenByAccountId")
+    public Result<JSONObject> getKuaishouUnitChargeTopTenByAccountId(@RequestParam(name="userId") String userId,
+                                                                    @RequestParam(name="advertiserId") long advertiserId,
+                                                                     @RequestParam(name="startTime") String startTime,
+                                                                     @RequestParam(name="endTime") String endTime) throws Exception{
+
+
+        return kuaishouOperationRecordService.getKuaishouUnitChargeTopTenByAccountId(userId,advertiserId,startTime,endTime);
+    }
+
+
+
+    @GetMapping("/getKuaishouOperationRecordByUnit")
+    public Result<JSONObject> getKuaishouOperationRecordByUnit(@RequestParam(name="advertiserId") long advertiserId,
+                                                                    @RequestParam(name="unitId") long unitId,
+                                                                     @RequestParam(name="startTime") String startTime,
+                                                                     @RequestParam(name="endTime") String endTime) throws Exception{
+
+
+        return kuaishouOperationRecordService.getKuaishouOperationRecordByUnit(advertiserId,unitId,startTime,endTime);
+    }
+
+
+
+
+
+
+}

+ 557 - 0
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/entity/KuaishouUnitReportDailyPojo.java

@@ -0,0 +1,557 @@
+package org.jeecg.ctop.material.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import org.jeecgframework.poi.excel.annotation.Excel;
+
+/**
+ * 快手-组-日报
+ *
+ * @author jeecg-boot
+ * @version V1.0
+ * @date 2022-02-22
+ */
+@Data
+@TableName("kuaishou_unit_report_daily")
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@ApiModel(value = "kuaishou_unit_report_daily", description = "快手-组-日报")
+public class KuaishouUnitReportDailyPojo {
+
+    /** 广告主id */
+    @Excel(name = "广告主id", width = 15)
+    @ApiModelProperty(value = "广告主id")
+    private Long advertiserId;
+    /** 数据日期,格式:YYYYMMDD */
+    @Excel(name = "数据日期,格式:YYYYMMDD", width = 15)
+    @ApiModelProperty(value = "数据日期,格式:YYYYMMDD")
+    private Integer statDate;
+    /** 广告计划ID */
+    @Excel(name = "广告计划ID", width = 15)
+    @ApiModelProperty(value = "广告计划ID")
+    private Long campaignId;
+    /** 广告计划名称 */
+    @Excel(name = "广告计划名称", width = 15)
+    @ApiModelProperty(value = "广告计划名称")
+    private String campaignName;
+    /** 广告组ID */
+    @Excel(name = "广告组ID", width = 15)
+    @ApiModelProperty(value = "广告组ID")
+    private Long unitId;
+    /** 广告组名称 */
+    @Excel(name = "广告组名称", width = 15)
+    @ApiModelProperty(value = "广告组名称")
+    private String unitName;
+    /** 花费(元) */
+    @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;
+}

+ 587 - 0
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/entity/KuaishouUnitReportHourlyPojo.java

@@ -0,0 +1,587 @@
+package org.jeecg.ctop.material.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import org.jeecgframework.poi.excel.annotation.Excel;
+
+/**
+ * 快手-组-时报
+ *
+ * @author jeecg-boot
+ * @version V1.0
+ * @date 2022-02-22
+ */
+@Data
+@TableName("kuaishou_unit_report_hourly")
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@ApiModel(value = "kuaishou_unit_report_hourly对象", description = "快手-组-时报")
+public class KuaishouUnitReportHourlyPojo {
+
+    /** 广告主id */
+    @Excel(name = "广告主id", width = 15)
+    @ApiModelProperty(value = "广告主id")
+    private Long advertiserId;
+    /** 数据日期,格式:YYYYMMDD */
+    @Excel(name = "数据日期,格式:YYYYMMDD", width = 15)
+    @ApiModelProperty(value = "数据日期,格式:YYYYMMDD")
+    private Integer statDate;
+    /** 广告计划ID */
+    @Excel(name = "广告计划ID", width = 15)
+    @ApiModelProperty(value = "广告计划ID")
+    private Long campaignId;
+    /** 广告计划名称 */
+    @Excel(name = "广告计划名称", width = 15)
+    @ApiModelProperty(value = "广告计划名称")
+    private String campaignName;
+    /** 广告组ID */
+    @Excel(name = "广告组ID", width = 15)
+    @ApiModelProperty(value = "广告组ID")
+    private Long unitId;
+    /** 广告组名称 */
+    @Excel(name = "广告组名称", width = 15)
+    @ApiModelProperty(value = "广告组名称")
+    private String unitName;
+    /** 小时 */
+    @Excel(name = "小时", width = 15)
+    @ApiModelProperty(value = "小时")
+    private Integer hour;
+    /** 花费(元) */
+    @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;
+
+    @ApiModelProperty(value = " 安卓下载开始率=安卓下载开始数/行为数")
+    private String downloadStartRate;
+
+    @ApiModelProperty(value = " 安卓下载开始单价=安卓下载开始数/行为数")
+    private String downloadStartCost;
+
+    @ApiModelProperty(value = " 安卓下载完成率=安卓下载完成数/安卓下载开始数")
+    private String downloadFinishRate;
+
+    @ApiModelProperty(value = " 安卓下载完成单价=花费/安卓下载完成数")
+    private String downloadFinishCost;
+
+    @ApiModelProperty(value = " 激活单价=花费/激活数")
+    private String activeCost;
+
+    @ApiModelProperty(value = " 下载完成激活率=激活数/安卓下载完成数")
+    private String activeRate;
+
+    @ApiModelProperty(value = " 首日付费成本=消耗/首日付费次数")
+    private String firstDayPayCost;
+
+
+
+}

+ 54 - 0
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/mapper/KuaishouOperationRecordMapper.java

@@ -0,0 +1,54 @@
+package org.jeecg.ctop.material.mapper;
+
+import com.alibaba.fastjson.JSONObject;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+import org.jeecg.ctop.material.entity.KuaishouUnitReportDailyPojo;
+import org.jeecg.ctop.material.entity.KuaishouUnitReportHourlyPojo;
+import org.jeecg.ctop.material.entity.vo.KuaiShouAccountPieVo;
+import org.jeecg.ctop.material.entity.vo.KuaiShouOperateAccountVo;
+import org.jeecg.ctop.material.entity.vo.KuaiShouOperateProjectVo;
+import org.jeecg.ctop.material.entity.vo.KuaiShouOperateVo;
+
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+@Mapper
+public interface KuaishouOperationRecordMapper {
+
+
+    /**
+     * 查询快手组 时报 消耗前10
+     * @param advertiserId
+     * @param startTime
+     * @param endTime
+     * @return
+     */
+    List<KuaishouUnitReportHourlyPojo> getKuaishouUnitReportHourly(@Param("advertiserId") long advertiserId, @Param("startTime") long startTime, @Param("endTime") long endTime);
+
+    /**
+     * 查询快手组 日报 消耗前10
+     * @param advertiserId
+     * @param startTime
+     * @param endTime
+     * @return
+     */
+    List<KuaishouUnitReportHourlyPojo> getKuaishouUnitReportDaily(@Param("advertiserId") long advertiserId, @Param("startTime") long startTime, @Param("endTime") long endTime);
+
+
+    /**
+     * 查询 账户操作类型
+     * @param advertiserId 账户id
+     * @param operationType 操作目标类型1:账户 2:计划 3:广告组 4:创意 5:视频 6:应用 7:人群包
+     *                   warning:!!!   根据磁力引擎api得知 状态为3时 字段 objectId 对应为计划id-unitId
+     *                      but but but 状态为2时 对应的是组id unitId
+     * @param objectId 操作对象id
+     * @param startTime
+     * @param endTime
+     * @return
+     */
+    List<JSONObject> getKuaishouOperationRecordByAdvertiserId(@Param("advertiserId") long advertiserId,@Param("objectId") long objectId,@Param("operationType") int operationType,  @Param("startTime") String startTime, @Param("endTime") String endTime);
+
+
+}

+ 78 - 0
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/mapper/xml/KuaishouOperationRecordMapper.xml

@@ -0,0 +1,78 @@
+<?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="org.jeecg.ctop.material.mapper.KuaishouOperationRecordMapper">
+
+
+<!-- 查询快手组 时报 消耗前10 -->
+    <select id="getKuaishouUnitReportHourly" resultType="org.jeecg.ctop.material.entity.KuaishouUnitReportHourlyPojo">
+        SELECT
+            *,
+            CONCAT(ROUND(download_started / bclick * 100,2) ,'%') as downloadStartRate,
+            ROUND(download_started / bclick * 100,2) as downloadStartCost,
+            CONCAT(ROUND(download_completed / download_started * 100,2) ,'%') as downloadFinishRate,
+            ROUND(charge / download_completed * 100,2) as downloadFinishCost,
+            ROUND(charge / activation * 100,2) as activeCost,
+            CONCAT(ROUND(activation / download_completed * 100,2) ,'%') as activeRate,
+            ROUND(charge / event_pay_first_day * 100,2) as firstDayPayCost
+        FROM
+            media_api.`kuaishou_unit_report_hourly`
+        WHERE
+         stat_date >= #{startTime}
+        AND stat_date &lt;= #{endTime}
+        AND advertiser_id = #{advertiserId}
+        ORDER BY charge DESC
+        LIMIT 10
+    </select>
+
+
+
+    <!-- 查询快手组 日报 消耗前10  -->
+    <select id="getKuaishouUnitReportDaily" resultType="org.jeecg.ctop.material.entity.KuaishouUnitReportHourlyPojo">
+        SELECT
+            *,
+            CONCAT(ROUND(download_started / bclick * 100,2) ,'%') as downloadStartRate,
+            ROUND(download_started / bclick * 100,2) as downloadStartCost,
+            CONCAT(ROUND(download_completed / download_started * 100,2) ,'%') as downloadFinishRate,
+            ROUND(charge / download_completed * 100,2) as downloadFinishCost,
+            ROUND(charge / activation * 100,2) as activeCost,
+            CONCAT(ROUND(activation / download_completed * 100,2) ,'%') as activeRate,
+            ROUND(charge / event_pay_first_day * 100,2) as firstDayPayCost
+        FROM
+            media_api.`kuaishou_unit_report_daily`
+        WHERE
+            stat_date &gt;= #{startTime}
+          AND stat_date &lt;= #{endTime}
+          AND advertiser_id = #{advertiserId}
+        ORDER BY charge DESC
+            LIMIT 10
+    </select>
+
+
+    <!-- 查看账户操作记录 -->
+    <select id="getKuaishouOperationRecordByAdvertiserId" resultType="com.alibaba.fastjson.JSONObject">
+        SELECT
+            advertiser_id,
+            object_id,
+            object_name,
+            operation_type,
+            operation_target,
+            role_type,
+            operation_time,
+            content_log,
+            create_time
+        FROM
+            media_api.`kuaishou_tools_advertiser_operation_record_list`
+        WHERE
+            advertiser_id = #{advertiserId}
+            AND operation_type = #{operationType}
+            AND object_id = #{objectId}
+            AND operation_time &gt;= #{startTime}
+            AND operation_time &lt;= #{endTime}
+
+
+    </select>
+
+
+
+
+</mapper>

+ 27 - 0
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/service/KuaishouOperationRecordService.java

@@ -0,0 +1,27 @@
+package org.jeecg.ctop.material.service;
+
+import com.alibaba.fastjson.JSONObject;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.ctop.material.entity.vo.KuaiShouOperateAccountVo;
+import org.jeecg.ctop.material.entity.vo.KuaiShouOperateProjectVo;
+import org.springframework.web.bind.annotation.RequestParam;
+
+import javax.servlet.http.HttpServletResponse;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+/**
+ * 快手-账户操作记录
+ */
+public interface KuaishouOperationRecordService {
+
+    Result getAllSubordinateAccountByUserId(String userId);
+
+    Result getKuaishouUnitChargeTopTenByAccountId(String userId,long advertiserId,String startTime,String endTime) throws NoSuchFieldException;
+
+
+    Result getKuaishouOperationRecordByUnit(long advertiserId,long unitId,String startTime,String endTime);
+
+
+}

+ 150 - 0
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/service/impl/KuaishouOperationRecordServiceImpl.java

@@ -0,0 +1,150 @@
+package org.jeecg.ctop.material.service.impl;
+
+
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.lang3.StringUtils;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.util.DateUtils;
+import org.jeecg.ctop.material.constants.Check;
+import org.jeecg.ctop.material.entity.AccountTrendPojo;
+import org.jeecg.ctop.material.entity.KuaishouUnitReportDailyPojo;
+import org.jeecg.ctop.material.entity.KuaishouUnitReportHourlyPojo;
+import org.jeecg.ctop.material.entity.vo.KuaiShouOperateProjectVo;
+import org.jeecg.ctop.material.mapper.BossDataExhibitionMapper;
+import org.jeecg.ctop.material.mapper.KuaishouOperationRecordMapper;
+import org.jeecg.ctop.material.mapper.MaterialStareMapper;
+import org.jeecg.ctop.material.service.IBossDataExhibitionService;
+import org.jeecg.ctop.material.service.KuaishouOperationRecordService;
+import org.jeecg.ctop.material.service.MaterialStareService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.*;
+import java.util.stream.Collectors;
+
+@Slf4j
+@Service
+public class KuaishouOperationRecordServiceImpl implements KuaishouOperationRecordService {
+
+
+    @Autowired
+    private KuaishouOperationRecordMapper kuaishouOperationRecordMapper;
+
+
+    @Resource
+    MaterialStareMapper materialStareMapper;
+
+
+    @Autowired
+    MaterialStareService materialStareService;
+
+
+
+    /**
+     *
+     * @description: 运营人员账户查询成功
+     *
+     * @param userId
+     * @return: org.jeecg.common.api.vo.Result
+     * @author: zianY
+     */
+    @Override
+    public Result getAllSubordinateAccountByUserId(String userId) {
+        Set<String> userIds = null;
+        //查询用户角色
+        String roleCode = materialStareMapper.getRoleCodeByUserId(userId);
+        //角色 不为 管理员
+        if (!"admin".equals(roleCode)) {
+            //获取所有下级
+            Result resultUserIds = materialStareService.getCompanyAllSubordinateByUserId(userId);
+            if (resultUserIds.isSuccess()) {
+                userIds = (Set<String>) resultUserIds.getResult();
+            }
+        }
+        //根据运营 项目 查询账户
+        List<JSONObject> jsonList = materialStareMapper.getAccountListByProjectListSubordinate(userIds,null);
+        return Result.successMsg("运营人员账户查询成功",jsonList);
+    }
+
+
+
+
+    /**
+     *
+     * @description: 消耗前10的广告组
+     *
+     * @param userId
+     * @param advertiserId
+     * @param startTime
+     * @param endTime
+     * @return: org.jeecg.common.api.vo.Result<com.alibaba.fastjson.JSONObject>
+     * @author: zianY
+     */
+    @Override
+    public Result getKuaishouUnitChargeTopTenByAccountId(String userId,long advertiserId, String startTime, String endTime) throws NoSuchFieldException {
+
+        //用户查询自定义列数据
+        JSONObject jsonObject = materialStareMapper.getColumnInfo(userId,"1111");
+        if (Check.isNull(jsonObject)){
+            return Result.errorMsg("暂无自定义列。");
+        }
+        JSONArray array = jsonObject.getJSONArray("json");
+
+        List<KuaishouUnitReportHourlyPojo> resultList = new ArrayList<>();
+        //计算两个日期的差值
+        long day = DateUtils.getDiscrepantDays(startTime,endTime);
+
+        //时间转换 2022-08-20 ===>>> 20220820
+        long stratDate = DateUtils.getDateInteger(startTime);
+        long endDate = DateUtils.getDateInteger(endTime);
+
+        //查询 日报
+        if (day != 0){
+            resultList = kuaishouOperationRecordMapper.getKuaishouUnitReportDaily(advertiserId,stratDate,endDate);
+        }
+        //查询 时报
+        resultList = kuaishouOperationRecordMapper.getKuaishouUnitReportHourly(advertiserId,stratDate,endDate);
+
+        List<Map<String,Object>> list = new ArrayList<>();
+        for (int j = 0; j < resultList.size(); j++) {
+            KuaishouUnitReportHourlyPojo unitPojo = resultList.get(j);
+            Map unitMap = Check.parseObj2Map(unitPojo);
+            Map<String,Object> map = new HashMap<>();
+            for (int k =0;k < array.size();k++) {
+                JSONObject json = (JSONObject)array.get(k);
+                String fieldName = KuaishouUnitReportHourlyPojo.class.getDeclaredField(json.getString("dataIndex")).getName();
+                unitMap.get(fieldName);
+                map.put(fieldName, unitMap.get(fieldName));
+            }
+            list.add(map);
+        }
+
+        return Result.successMsg("查询成功",list);
+    }
+
+
+
+    /**
+     *
+     * @description: 查看组的操作记录
+     *
+     * @param advertiserId
+     * @param unitId
+     * @param startTime
+     * @param endTime
+     * @return: org.jeecg.common.api.vo.Result
+     * @author: zianY
+     */
+    @Override
+    public Result getKuaishouOperationRecordByUnit(long advertiserId,long unitId,String startTime,String endTime){
+
+        List<JSONObject> list =  kuaishouOperationRecordMapper.getKuaishouOperationRecordByAdvertiserId(advertiserId,unitId,2,startTime+" 00:00:00",endTime+" 23:59:59");
+
+        return Result.successMsg("查询成功",list);
+    }
+
+
+}