소스 검색

删除遗留的无用实体类

syh 4 년 전
부모
커밋
7996e59a86

+ 4 - 2
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/report/service/impl/KuaiShouYiCheReportServiceImpl.java

@@ -114,9 +114,11 @@ public class KuaiShouYiCheReportServiceImpl implements IKuaiShouYiCheReportServi
             returnJson.put("android", androidReport);
             returnJson.remove("systemType");
             JSONObject directApplicationReport = kuaiShouYiCheReportMapper.getDirectApplicationReportByMap(requestMap);
-            returnJson.put("directApplication", directApplicationReport); // 应用直达
+            // 应用直达
+            returnJson.put("directApplication", directApplicationReport);
             List<JSONObject> channelSubcontractingReport = kuaiShouYiCheReportMapper.getChannelSubcontractingReportByMap(requestMap);
-            returnJson.put("channelSubcontracting", channelSubcontractingReport); // 渠道包分析
+            // 渠道包分析
+            returnJson.put("channelSubcontracting", channelSubcontractingReport);
 
         } catch (Exception e) {
             e.printStackTrace();

+ 4 - 17
module-toutiao/src/main/java/cn/com/ctop/toutiao/modules/report/mapper/xml/ByteDanceVideoReportDailyMapper.xml

@@ -252,10 +252,9 @@
                 a.advertiser_id as advertiserId,
                 a.advertiser_name as advertiserName,
                 a.stat_datetime as statDatetime,
-                sum(a.cost) as cost,  -- 消耗
+                sum(a.cost) as cost,
                 a.video_url as videoUrl,
                 (select info.url from ctop_material_info info where info.code = a.signature limit 1) as url,
-                -- huanbi as huanbi,
                 signature as signature
 
         from ctop_bytedance_video_report_daily a
@@ -263,9 +262,6 @@
         where
         stat_datetime &gt;= #{startDate}
         and stat_datetime &lt;= #{endDate}
-<!--        <if test=" role != 'admin' ">
-            and a.company_id = #{companyId}
-        </if>-->
         <if test="accountIds != null">
             and a.account_id in
             <foreach item="item" index="index" collection="accountIds" open="(" separator="," close=")">
@@ -285,10 +281,9 @@
         a.advertiser_id as advertiserId,
         a.advertiser_name as advertiserName,
         a.stat_datetime as statDatetime,
-        sum(a.cost) as cost,  -- 消耗
+        sum(a.cost) as cost,
         a.video_url as videoUrl,
         (select info.url from ctop_material_info info where info.code = a.signature limit 1) as url,
-        -- huanbi as huanbi,
         signature as signature
 
         from ctop_bytedance_video_report_daily a
@@ -296,7 +291,6 @@
         where
         stat_datetime &gt;= #{startDate}
         and stat_datetime &lt;= #{endDate}
-        <!-- and a.company_id = #{companyId} -->
         <if test="accountIds != null">
         and a.account_id in
             <foreach item="item" index="index" collection="accountIds" open="(" separator="," close=")">
@@ -316,10 +310,9 @@
         a.advertiser_id as advertiserId,
         a.advertiser_name as advertiserName,
         a.stat_datetime as statDatetime,
-        sum(a.cost) as cost,  -- 消耗
+        sum(a.cost) as cost,
         a.video_url as videoUrl,
         (select info.url from ctop_material_info info where info.code = a.signature limit 1) as url,
-        -- huanbi as huanbi,
         signature as signature
 
         from ctop_bytedance_video_report_daily a
@@ -327,7 +320,6 @@
         where
         stat_datetime &gt;= #{startDate}
         and stat_datetime &lt;= #{endDate}
-        <!-- and a.company_id = #{companyId} -->
         <if test="accountIds != null">
             and a.account_id in
             <foreach item="item" index="index" collection="accountIds" open="(" separator="," close=")">
@@ -347,10 +339,9 @@
         a.advertiser_id as advertiserId,
         a.advertiser_name as advertiserName,
         a.stat_datetime as statDatetime,
-        sum(a.cost) as cost,  -- 消耗
+        sum(a.cost) as cost,
         a.video_url as videoUrl,
         (select info.url from ctop_material_info info where info.code = a.signature limit 1) as url,
-        -- huanbi as huanbi,
         signature as signature
 
         from ctop_bytedance_video_report_daily a
@@ -1092,7 +1083,6 @@
         left join (select material_id,clip_id,shot_id,plan_id,plane_id from ctop_material_ascription group by material_id) f on a.signature = f.material_id
         where stat_datetime &gt;= #{startDate}
         and stat_datetime &lt;= #{endDate}
-        <!-- and a.company_id = #{companyId}  -->
         and f.material_id is not null
         and f.shot_id = #{userId}
         <if test="accountIds != null">
@@ -1194,7 +1184,6 @@
         left join (select material_id,clip_id,shot_id,plan_id,plane_id from ctop_material_ascription group by material_id) f on a.signature = f.material_id
         where stat_datetime &gt;= #{startDate}
         and stat_datetime &lt;= #{endDate}
-        <!-- and a.company_id = #{companyId}  -->
         and f.material_id is not null
         and f.plan_id = #{userId}
         <if test="accountIds != null">
@@ -1220,7 +1209,6 @@
         left join (select material_id,clip_id,shot_id,plan_id,plane_id from ctop_material_ascription group by material_id) f on a.signature = f.material_id
         where stat_datetime &gt;= #{startDate}
         and stat_datetime &lt;= #{endDate}
-        <!-- and a.company_id = #{companyId}  -->
         and f.material_id is not null
         and f.clip_id = #{userId}
         <if test="accountIds != null">
@@ -1268,5 +1256,4 @@
             </foreach>
         )
     </select>
-
 </mapper>

+ 0 - 261
performance-appraisal/src/main/java/cn/com/ctop/huananvideoreport/controller/HuananVideoReportController.java

@@ -1,261 +0,0 @@
-package cn.com.ctop.huananvideoreport.controller;
-
-import cn.com.ctop.common.module.annotation.AutoLog;
-import cn.com.ctop.huananvideoreport.entity.HuananVideoReport;
-import cn.com.ctop.huananvideoreport.service.IHuananVideoReportService;
-import cn.com.ctop.userefficientvideomap.entity.UserDto2;
-import com.alibaba.fastjson.JSON;
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
-import com.baomidou.mybatisplus.core.metadata.IPage;
-import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
-import lombok.extern.slf4j.Slf4j;
-import org.jeecg.common.api.vo.Result;
-import org.jeecg.common.system.query.QueryGenerator;
-import org.jeecg.common.util.oConvertUtils;
-import org.jeecgframework.poi.excel.ExcelImportUtil;
-import org.jeecgframework.poi.excel.def.NormalExcelConstants;
-import org.jeecgframework.poi.excel.entity.ExportParams;
-import org.jeecgframework.poi.excel.entity.ImportParams;
-import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.*;
-import org.springframework.web.multipart.MultipartFile;
-import org.springframework.web.multipart.MultipartHttpServletRequest;
-import org.springframework.web.servlet.ModelAndView;
-
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import java.io.IOException;
-import java.io.UnsupportedEncodingException;
-import java.net.URLDecoder;
-import java.text.ParseException;
-import java.util.Arrays;
-import java.util.List;
-import java.util.Map;
-
-/**
- * 华南视频报表类
- *
- * @author jeecg-boot
- * @version V1.0
- * @date 2020-04-28
- */
-@Slf4j
-@Api(tags = "华南视频报表类")
-@RestController
-@RequestMapping("/huananvideoreport/huananVideoReport")
-public class HuananVideoReportController {
-    @Autowired
-    private IHuananVideoReportService huananVideoReportService;
-
-    /**
-     * 分页列表查询
-     *
-     * @param huananVideoReport
-     * @param pageNo
-     * @param pageSize
-     * @param req
-     * @return
-     */
-    @AutoLog(value = "华南视频报表类-分页列表查询")
-    @ApiOperation(value = "华南视频报表类-分页列表查询", notes = "华南视频报表类-分页列表查询")
-    @GetMapping(value = "/list")
-    public Result<IPage<HuananVideoReport>> queryPageList(HuananVideoReport huananVideoReport,
-                                                          @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
-                                                          @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
-                                                          HttpServletRequest req) {
-        Result<IPage<HuananVideoReport>> result = new Result<IPage<HuananVideoReport>>();
-        QueryWrapper<HuananVideoReport> queryWrapper = QueryGenerator.initQueryWrapper(huananVideoReport, req.getParameterMap());
-        Page<HuananVideoReport> page = new Page<HuananVideoReport>(pageNo, pageSize);
-        IPage<HuananVideoReport> pageList = huananVideoReportService.page(page, queryWrapper);
-        result.setSuccess(true);
-        result.setResult(pageList);
-        return result;
-    }
-
-    /**
-     * 添加
-     *
-     * @param huananVideoReport
-     * @return
-     */
-    @AutoLog(value = "华南视频报表类-添加")
-    @ApiOperation(value = "华南视频报表类-添加", notes = "华南视频报表类-添加")
-    @PostMapping(value = "/add")
-    public Result<HuananVideoReport> add(@RequestBody HuananVideoReport huananVideoReport) {
-        Result<HuananVideoReport> result = new Result<HuananVideoReport>();
-        try {
-            huananVideoReportService.save(huananVideoReport);
-            result.success("添加成功!");
-        } catch (Exception e) {
-            log.error(e.getMessage(), e);
-            result.error500("操作失败");
-        }
-        return result;
-    }
-
-    /**
-     * 编辑
-     *
-     * @param huananVideoReport
-     * @return
-     */
-    @AutoLog(value = "华南视频报表类-编辑")
-    @ApiOperation(value = "华南视频报表类-编辑", notes = "华南视频报表类-编辑")
-    @PutMapping(value = "/edit")
-    public Result<HuananVideoReport> edit(@RequestBody HuananVideoReport huananVideoReport) {
-        Result<HuananVideoReport> result = new Result<HuananVideoReport>();
-        HuananVideoReport huananVideoReportEntity = huananVideoReportService.getById(huananVideoReport.getId());
-        if (huananVideoReportEntity == null) {
-            result.error500("未找到对应实体");
-        } else {
-            boolean ok = huananVideoReportService.updateById(huananVideoReport);
-            if (ok) {
-                result.success("修改成功!");
-            }
-        }
-
-        return result;
-    }
-
-    /**
-     * 通过id删除
-     *
-     * @param id
-     * @return
-     */
-    @AutoLog(value = "华南视频报表类-通过id删除")
-    @ApiOperation(value = "华南视频报表类-通过id删除", notes = "华南视频报表类-通过id删除")
-    @DeleteMapping(value = "/delete")
-    public Result<?> delete(@RequestParam(name = "id", required = true) String id) {
-        try {
-            huananVideoReportService.removeById(id);
-        } catch (Exception e) {
-            log.error("删除失败", e.getMessage());
-            return Result.error("删除失败!");
-        }
-        return Result.ok("删除成功!");
-    }
-
-    /**
-     * 批量删除
-     *
-     * @param ids
-     * @return
-     */
-    @AutoLog(value = "华南视频报表类-批量删除")
-    @ApiOperation(value = "华南视频报表类-批量删除", notes = "华南视频报表类-批量删除")
-    @DeleteMapping(value = "/deleteBatch")
-    public Result<HuananVideoReport> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
-        Result<HuananVideoReport> result = new Result<HuananVideoReport>();
-        if (ids == null || "".equals(ids.trim())) {
-            result.error500("参数不识别!");
-        } else {
-            this.huananVideoReportService.removeByIds(Arrays.asList(ids.split(",")));
-            result.success("删除成功!");
-        }
-        return result;
-    }
-
-    /**
-     * 通过id查询
-     *
-     * @param id
-     * @return
-     */
-    @AutoLog(value = "华南视频报表类-通过id查询")
-    @ApiOperation(value = "华南视频报表类-通过id查询", notes = "华南视频报表类-通过id查询")
-    @GetMapping(value = "/queryById")
-    public Result<HuananVideoReport> queryById(@RequestParam(name = "id", required = true) String id) {
-        Result<HuananVideoReport> result = new Result<HuananVideoReport>();
-        HuananVideoReport huananVideoReport = huananVideoReportService.getById(id);
-        if (huananVideoReport == null) {
-            result.error500("未找到对应实体");
-        } else {
-            result.setResult(huananVideoReport);
-            result.setSuccess(true);
-        }
-        return result;
-    }
-
-    /**
-     * 导出excel
-     *
-     * @param request
-     * @param response
-     */
-    @RequestMapping(value = "/exportXls")
-    public ModelAndView exportXls(HttpServletRequest request, HttpServletResponse response) {
-        // Step.1 组装查询条件
-        QueryWrapper<HuananVideoReport> queryWrapper = null;
-        try {
-            String paramsStr = request.getParameter("paramsStr");
-            if (oConvertUtils.isNotEmpty(paramsStr)) {
-                String deString = URLDecoder.decode(paramsStr, "UTF-8");
-                HuananVideoReport huananVideoReport = JSON.parseObject(deString, HuananVideoReport.class);
-                queryWrapper = QueryGenerator.initQueryWrapper(huananVideoReport, request.getParameterMap());
-            }
-        } catch (UnsupportedEncodingException e) {
-            e.printStackTrace();
-        }
-
-        //Step.2 AutoPoi 导出Excel
-        ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
-        List<HuananVideoReport> pageList = huananVideoReportService.list(queryWrapper);
-        //导出文件名称
-        mv.addObject(NormalExcelConstants.FILE_NAME, "华南视频报表类列表");
-        mv.addObject(NormalExcelConstants.CLASS, HuananVideoReport.class);
-        mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("华南视频报表类列表数据", "导出人:Jeecg", "导出信息"));
-        mv.addObject(NormalExcelConstants.DATA_LIST, pageList);
-        return mv;
-    }
-
-    /**
-     * 通过excel导入数据
-     *
-     * @param request
-     * @param response
-     * @return
-     */
-    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
-    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
-        MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
-        Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
-        for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
-            MultipartFile file = entity.getValue();
-            ImportParams params = new ImportParams();
-            params.setTitleRows(2);
-            params.setHeadRows(1);
-            params.setNeedSave(true);
-            try {
-                List<HuananVideoReport> listHuananVideoReports = ExcelImportUtil.importExcel(file.getInputStream(), HuananVideoReport.class, params);
-                huananVideoReportService.saveBatch(listHuananVideoReports);
-                return Result.ok("文件导入成功!数据行数:" + listHuananVideoReports.size());
-            } catch (Exception e) {
-                log.error(e.getMessage(), e);
-                return Result.error("文件导入失败:" + e.getMessage());
-            } finally {
-                try {
-                    file.getInputStream().close();
-                } catch (IOException e) {
-                    e.printStackTrace();
-                }
-            }
-        }
-        return Result.ok("文件导入失败!");
-    }
-
-
-    @AutoLog(value = "头条优化季度绩效报表")
-    @ApiOperation(value = "头条优化季度绩效报表", notes = "头条优化季度绩效报表")
-    @PostMapping(value = "/getHuananMaterialInfo")
-    public Result getHuananMaterialInfo(HttpServletRequest req) throws ParseException {
-        Result<List<UserDto2>> result = new Result<List<UserDto2>>();
-        huananVideoReportService.getHuananMaterialInfo("2020-05-01", "2020-05-07");
-        result.setSuccess(true);
-        return result;
-    }
-
-}

+ 0 - 17
performance-appraisal/src/main/java/cn/com/ctop/huananvideoreport/dto/HuananVideoReportDTO.java

@@ -1,17 +0,0 @@
-package cn.com.ctop.huananvideoreport.dto;
-
-import lombok.Data;
-
-/**
- * 华南视频报表类
- *
- * @author jeecg-boot
- * @version V1.0
- * @date 2020-04-28
- */
-@Data
-public class HuananVideoReportDTO {
-
-    private String accountId;
-    private String authName;
-}

+ 0 - 121
performance-appraisal/src/main/java/cn/com/ctop/huananvideoreport/entity/HuananVideoReport.java

@@ -1,121 +0,0 @@
-package cn.com.ctop.huananvideoreport.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;
-
-import java.util.Date;
-
-/**
- * 华南视频报表类
- *
- * @author jeecg-boot
- * @version V1.0
- * @date 2020-04-28
- */
-@Data
-@TableName("bytedance_huanan_video_report")
-@EqualsAndHashCode(callSuper = false)
-@Accessors(chain = true)
-@ApiModel(value = "bytedance_huanan_video_report对象", description = "华南视频报表类")
-public class HuananVideoReport {
-
-    /**
-     * id
-     */
-    @TableId(type = IdType.AUTO)
-    @ApiModelProperty(value = "id")
-    private Integer id;
-    /**
-     * accountId
-     */
-    @Excel(name = "accountId", width = 15)
-    @ApiModelProperty(value = "accountId")
-    private String accountId;
-    /**
-     * authName
-     */
-    @Excel(name = "authName", width = 15)
-    @ApiModelProperty(value = "authName")
-    private String authName;
-    /**
-     * projectId
-     */
-    @Excel(name = "projectId", width = 15)
-    @ApiModelProperty(value = "projectId")
-    private Integer projectId;
-    /**
-     * projectName
-     */
-    @Excel(name = "projectName", width = 15)
-    @ApiModelProperty(value = "projectName")
-    private String projectName;
-    /**
-     * advertiserId
-     */
-    @Excel(name = "advertiserId", width = 15)
-    @ApiModelProperty(value = "advertiserId")
-    private String advertiserId;
-    /**
-     * advertiserName
-     */
-    @Excel(name = "advertiserName", width = 15)
-    @ApiModelProperty(value = "advertiserName")
-    private String advertiserName;
-    /**
-     * cost
-     */
-    @Excel(name = "cost", width = 15)
-    @ApiModelProperty(value = "cost")
-    private java.math.BigDecimal cost;
-    /**
-     * signature
-     */
-    @Excel(name = "signature", width = 15)
-    @ApiModelProperty(value = "signature")
-    private String signature;
-    /**
-     * videoUrl
-     */
-    @Excel(name = "videoUrl", width = 15)
-    @ApiModelProperty(value = "videoUrl")
-    private String videoUrl;
-    /**
-     * 环比
-     */
-    @Excel(name = "环比", width = 15)
-    @ApiModelProperty(value = "环比")
-    private java.math.BigDecimal huanbi;
-    /**
-     * 素材名称
-     */
-    @Excel(name = "素材名称", width = 15)
-    @ApiModelProperty(value = "素材名称")
-    private String materialName;
-    /**
-     * 1头条2快手
-     */
-    @Excel(name = "1头条2快手", width = 15)
-    @ApiModelProperty(value = "1头条2快手")
-    private Integer appType;
-    /**
-     * createTime
-     */
-    @ApiModelProperty(value = "createTime")
-    private Date createTime;
-    /**
-     * updateTime
-     */
-    @ApiModelProperty(value = "updateTime")
-    private Date updateTime;
-
-    private Long materialId;
-
-    private String statDatetime;
-}

+ 0 - 24
performance-appraisal/src/main/java/cn/com/ctop/huananvideoreport/mapper/HuananVideoReportMapper.java

@@ -1,24 +0,0 @@
-package cn.com.ctop.huananvideoreport.mapper;
-
-import java.util.List;
-
-import cn.com.ctop.huananvideoreport.dto.HuananVideoReportDTO;
-import org.apache.ibatis.annotations.Param;
-import cn.com.ctop.huananvideoreport.entity.HuananVideoReport;
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
-
-/**
- * 华南视频报表类
- *
- * @author: jeecg-boot
- * @date: 2020-04-28
- * @cersion: V1.0
- */
-public interface HuananVideoReportMapper extends BaseMapper<HuananVideoReport> {
-
-    List<HuananVideoReport> getHuananMaterialInfo(@Param("startDate") String startDate, @Param("endDate") String endDate);
-
-    HuananVideoReport selectByDateAndId(@Param("materialId") Long materialId, @Param("statDate") String statDate);
-
-    HuananVideoReportDTO getAccountConcatInfo(@Param("materialId") Long materialId);
-}

+ 0 - 301
performance-appraisal/src/main/java/cn/com/ctop/huananvideoreport/mapper/xml/HuananVideoReportMapper.xml

@@ -1,305 +0,0 @@
-<?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.huananvideoreport.mapper.HuananVideoReportMapper">
-
-
-    <select id="getHuananMaterialInfo" resultType="cn.com.ctop.huananvideoreport.entity.HuananVideoReport">
-        select
-        a.material_id as materialId,
-        b.project_id as projectId,
-        b.project_name as projectName,
-        b.advertiser_id as advertiserId,
-        b.advertiser_name as advertiserName,
-        a.stat_datetime as statDatetime,
-        sum(a.cost) as cost,
-        d.signature as signature,
-        d.video_url as video_url,
-        e.url as url,
-        e.material_name as materialName,
-        1 as appType
-        from ctop_bytedance_report_material_daily a
-        left join ctop_user_allocation b on a.account_id = b.account_id
-        left join user_company c on b.user_id = c.user_id
-        left join ctop_bytedance_video_info d on a.material_id = d.material_id
-        left join (select code,url,material_name from ctop_material_info group by code) e on d.signature = e.code
-        where c.company_id = '6608ed13c0dd42de93c790dbdf124234'
-        and a.image_mode in ('CREATIVE_IMAGE_MODE_VIDEO',
-        'CREATIVE_IMAGE_MODE_VIDEO_VERTICAL')
-        and date_format(stat_datetime,'%Y-%m-%d') &gt;= #{startDate}
-        and date_format(stat_datetime,'%Y-%m-%d') &lt;= #{endDate}
-        group by `statDatetime`,`materialId`
-        order by `statDatetime`,`projectId`,`materialId`
-    </select>
-
-    <select id="selectByDateAndId" resultType="cn.com.ctop.huananvideoreport.entity.HuananVideoReport">
-        select
-        *
-        from
-        bytedance_huanan_video_report
-        where material_id = #{materialId}
-        and stat_datetime = #{statDate}
-
-    </select>
-
-    <select id="getAccountConcatInfo" resultType="cn.com.ctop.huananvideoreport.dto.HuananVideoReportDTO">
-        select
-        group_concat(distinct(b.account_id)) as accountId,
-        group_concat(distinct(b.auth_name)) as authName
-        from
-        ctop_bytedance_report_material_daily a
-        left join ctop_user_allocation b on a.account_id = b.account_id
-        where a.material_id = #{materialId}
-    </select>
-
-    <select id="getHuananVideoInfo" resultType="cn.com.ctop.huananvideoreport.entity.HuananVideoReport">
-        select
-        a.material_id as materialId,
-        b.project_id as projectId,
-        b.project_name as projectName,
-        b.advertiser_id as advertiserId,
-        b.advertiser_name as advertiserName,
-        a.stat_datetime as statDatetime,
-        sum(a.cost) as cost,
-        d.signature as signature,
-        d.video_url as video_url,
-        e.url as url,
-        e.material_name as materialName,
-        1 as appType
-        from ctop_bytedance_report_material_daily a
-        left join ctop_user_allocation b on a.account_id = b.account_id
-        left join user_company c on b.user_id = c.user_id
-        left join ctop_bytedance_video_info d on a.material_id = d.material_id
-        left join (select code,url,material_name from ctop_material_info group by code) e on d.signature = e.code
-        where c.company_id = '6608ed13c0dd42de93c790dbdf124234'
-        and a.image_mode in ('CREATIVE_IMAGE_MODE_VIDEO',
-        'CREATIVE_IMAGE_MODE_VIDEO_VERTICAL')
-        and date_format(stat_datetime,'%Y-%m-%d') &gt;= #{startDate}
-        and date_format(stat_datetime,'%Y-%m-%d') &lt;= #{endDate}
-        group by `statDatetime`,`signature`
-        order by `statDatetime`,`projectId`,`materialId`
-    </select>
-
-    <select id="videoInfoList" resultType="cn.com.ctop.huananvideoreport.entity.HuananVideoReport">
-        select
-        a.material_id as materialId,
-        --         a.account_id as accountId,
-        --         b.auth_name as authName,
-        b.project_id as projectId,
-        b.project_name as projectName,
-        b.advertiser_id as advertiserId,
-        b.advertiser_name as advertiserName,
-        a.stat_datetime as statDatetime,
-        sum(a.cost) as cost,  -- 消耗
-        d.signature as signature,
-        d.video_url as videoUrl,
-        e.url as url,
-        e.material_name as materialName,
-        1 as appType,
-        sum(a.click) as click,   -- 点击数
-
-        case
-        when sum(a.total_play) != 0
-        then sum(a.play25_feed_break)/sum(a.total_play)
-        else 0 end as play25FeedBreakRate,  -- 25%进度播放率
-
-        case
-        when sum(a.total_play) != 0
-        then sum(a.play_over)/sum(a.total_play)
-        else 0 end as playOverRate,  -- 整体完播率
-
-        case
-        when sum(a.click) != 0
-        then sum(a.convert_material)/sum(a.click)
-        else 0 end as convertRate,  -- 转化率  转化数/点击数*100% !
-        sum(a.active) as active, -- 应用下载-激活
-        sum(a.download_finish) as downloadFinish, -- 应用下载-安卓下载完成
-        sum(a.download_start) as downloadStart, -- 应用下载-安卓下载开始
-        sum(a.install_finish) as installFinish, -- 应用下载-安卓安装完成
-        sum(a.register) as register, -- 应用下载-注册
-        sum(a.pay_count) as payCount, -- 应用下载-付费数
-        sum(a.in_app_uv) as inAppUv, -- 应用下载-到达uv
-        sum(a.in_app_detail_uv) as inAppDetailUv, -- 应用下载-详情页到站uv
-        sum(a.in_app_cart) as inAppCart, -- 应用下载-加入购物车
-        sum(a.in_app_order) as inAppOrder, -- 应用下载-提交订单
-        sum(a.in_app_pay) as inAppPay, -- 应用下载-付费
-        sum(a.phone) as phone, -- 落地页-电话拨打数
-        sum(a.form) as form, --  表单提交数
-        sum(a.map_search) as mapSearch, --落地页-地图搜索
-        sum(a.button) as button, --落地页-按钮button
-        sum(a.view_material) as viewMaterial, --落地页-关键页面浏览
-        sum(a.qq) as qq, --落地页-QQ咨询数
-        sum(a.lottery) as lottery, --落地页-抽奖数
-        sum(a.vote) as vote, --落地页-投票
-        sum(a.redirect) as redirect, --落地页-页面跳转
-        sum(a.shopping) as shopping, --落地页-商品购买
-        sum(a.consult) as consult, --落地页-在线咨询
-        sum(a.wechat) as wechat, --落地页-微信
-        sum(a.phone_confirm) as phoneConfirm, --落地页-智能电话确认拨打
-        sum(a.phone_connect) as phoneConnect, --落地页-智能电话确认接通
-        sum(a.consult_effective) as consultEffective, --落地页-智能电话有效咨询
-        sum(a.total_play) as totalPlay, --视频-总播放
-        sum(a.valid_play) as validPlay, --视频-有效播放
-        sum(a.wifi_play) as wifiPlay, --视频-wifi播放
-        <!-- sum(a.play_duration_sum) as play_duration_sum, --> --视频-播放时长,单位ms
-        sum(a.play25_feed_break) as play25FeedBreak, --视频-播放25%进度总数
-        sum(a.play50_feed_break) as play50FeedBreak, --视频-播放50%进度总数
-        sum(a.play75_feed_break) as play75FeedBreak, --视频-播放75%进度总数
-        sum(a.play100_feed_break) as play100FeedBreak, --视频-播放100%进度总数
-        sum(a.advanced_creative_phone_click) as advancedCreativePhoneClick, --附加创意-电话按钮
-        sum(a.vanced_creative_counsel_click) as vancedCreativeCounselClick, --附加创意-在线咨询
-        sum(a.advanced_creative_form_click) as advancedCreativeFormClick, --附加创意-表单提交
-        sum(a.share_material) as shareMaterial, --互动数据-分享数
-        sum(a.comment_material) as commentMaterial, --互动数据-评论数
-        sum(a.follow) as follow, --互动数据-新增关注数
-        sum(a.home_visited) as homeVisited, --互动数据-主页访问量
-        sum(a.ies_challenge_click) as iesChallengeClick, --互动数据-挑战赛查看数
-        sum(a.ies_music_click) as iesMusicClick, --互动数据-音乐查看数
-        sum(a.next_day_open) as nextDayOpen, --次留数
-        case
-        when sum(a.active) != 0
-        then sum(a.next_day_open)/sum(a.active)
-        else 0 end as nextDayOpenRate, --次留率 = 次留数/激活数
-
-        case
-        when sum(a.next_day_open) != 0
-        then sum(a.cost)/sum(a.next_day_open)
-        else 0 end as nextDayOpenCost, --次留成本 = 消耗/次留数
-
-        sum(a.active_pay_amount) as activePayAmount, -- 应用下载广告数据-付费次数
-
-        case
-        when sum(a.cost) != 0
-        then sum(a.cost)/sum(a.valid_play)
-        else 0 end validPlayCost, --视频数据-有效播放成本  计算公式:总花费/有效播放数,当天数据可能会有波动,次日早8点后稳定。
-        sum(a.advanced_creative_coupon_addition) as advancedCreativeCouponAddition, --附加创意-附加创意卡券领取
-        sum(a.convert_material) as convertMaterial, --转化数据-转化数
-
-        case
-        when sum(a.cost) != 0
-        then sum(a.cost)/sum(a.active_pay_amount)
-        else 0 end as activePayCost, --应用下载广告数据-付费成本 = 消耗/付费次数
-        sum(a.download) as download, --落地页转化数据-下载开始
-        <!--sum(a.cpa) as cpa, -->--
-        sum(a.cpc) as cpc, --平均点击单价
-        sum(a.location_click) as locationClick, --互动数据-POI点击数
-        sum(a.play_over_rate) as playOverRate, --视频数据-播完率
-
-        case
-        when sum(a.show_material) != 0
-        then sum(a.click)/sum(a.show_material)
-        else 0 end as ctr, --展现数据-点击率   广告被点击的次数占展示次数的百分比。计算方法:点击数/展示数*100%
-
-        case
-        when sum(a.cost) != 0
-        then sum(a.cost)/sum(a.show_material)*1000
-        else 0 end cpm, --平均千次展现费用  广告平均每一千次展现所付出的费用,计算公式是:总花费/展示数*1000。
-        sum(a.wifi_play_rate) as wifiPlayRate, --视频数据-WiFi播放占比
-        sum(a.like_material) as likeMaterial, --互动数据-点赞数
-        <!--  sum(a.active_pay_rate) as activePayRate,--> --应用下载广告数据-付费率
-
-        case
-        when sum(a.cost) != 0
-        then sum(a.cost)/sum(a.active)
-        else 0 end activeCost, --应用下载广告数据-激活成本  计算方式:总花费/激活数。
-
-        case
-        when sum(a.cost) != 0
-        then sum(a.cost)/sum(a.game_addiction)
-        else 0 end as gameAddictionCost, --应用下载广告数据-关键行为成本  广告主为每个有APP内关键行为的用户所付出的成本,计算公式是总花费/关键行为数。当天数据可能会有波动,次日早8点后稳定。
-        sum(a.game_addiction) as gameAddiction, --应用下载广告数据-关键行为数
-
-        case
-        when sum(a.active) != 0
-        then sum(a.active)/sum(a.click)
-        else 0 end as activeRate, --应用下载广告数据-激活率   计算方式:激活数/点击数*100%
-        <!-- sum(a.play_duration_10s) as playDuration10s,--> --
-        <!-- sum(a.phone_effective) as phone_effective,--> --
-
-        case
-        when sum(a.active) != 0
-        then sum(a.game_addiction)/sum(a.active)
-        else 0 end gameAddictionRate, --应用下载广告数据-关键行为率  关键行为用户占激活用户的比例
-
-        case
-        when sum(a.active) != 0
-        then sum(a.register)/sum(a.active)
-        else 0 end as activeRegisterRate, --应用下载广告数据-注册率   注册用户占激活用户的比例
-        <!-- sum(a.average_video_play) as averageVideoPlay,--> --
-
-        case
-        when sum(a.download_finish) != 0
-        then sum(a.cost)/sum(a.download_finish)
-        else 0 end as downloadFinishCost, --应用下载广告数据-安卓下载完成成本 计算方式:总花费/安卓下载完成数。
-        <!--sum(a.play_duration_3s) as playDuration3s,--> --
-
-        case
-        when sum(a.register) != 0
-        then sum(a.cost)/sum(a.register)
-        else 0 end as activeRegisterCost, --应用下载广告数据-注册成本  总花费/注册数,当天数据可能会有波动,次日早8点后稳定。
-        sum(a.show_material) as showMaterial, --展现数据-展示数
-
-        case
-        when sum(a.click) != 0
-        then sum(a.convert_material)/sum(a.click)
-        else 0 end as convertRate, --转化数据-转化率  计算方式:转化数/点击数*100%
-
-        case
-        when sum(a.download_start) != 0
-        then sum(a.download_finish)/sum(a.download_start)
-        else 0 end as downloadFinishRate, --应用下载广告数据-安卓下载完成率  计算方式:安卓下载完成数/安卓下载开始数
-
-        case
-        when sum(a.download_finish) != 0
-        then sum(a.install_finish)/sum(a.download_finish)
-        else 0 end as installFinishRate, --应用下载广告数据-安卓安装完成率  计算方式:安卓安装完成数/安卓下载完成数
-        sum(a.coupon) as coupon, --落地页转化数据-建站卡券领取
-        sum(a.coupon_single_page) as couponSinglePage, --落地页转化数据-卡券页领取
-        sum(a.play_over) as playOver, -- 完播数
-
-        case
-        when sum(a.download_start) != 0
-        then sum(a.cost)/sum(a.download_start)
-        else 0 end as downloadStartCost, --应用下载广告数据-安卓下载开始成本  计算方法:总花费/安卓下载开始数。
-        sum(a.message) as message, --落地页转化数据-短信咨询  用户点击短信咨询的次数
-        <!-- sum(a.play_duration) as playDuration, --> --
-
-        case
-        when sum(a.valid_play) != 0
-        then sum(a.valid_play)/sum(a.show_material)
-        else 0 end as validPlayRate, --视频数据-有效播放率  有效播放数/展示数
-        sum(a.average_play_time_per_play) as averagePlayTimePerPlay, --视频数据-平均单次播放时长
-
-        case
-        when sum(a.convert_material) != 0
-        then sum(a.cost)/sum(a.convert_material)
-        else 0 end as convertCost, --转化数据-转化成本=总花费/转化数
-        <!--  sum(a.convert_show_rate) as convert_show_rate, --> --
-
-        case
-        when sum(a.install_finish) != 0
-        then sum(a.cost)/sum(a.install_finish)
-        else 0 end as installFinishCost, --应用下载广告数据-安卓安装完成成本  计算方式:总花费/安卓安装完成数
-
-        case
-        when sum(a.click) != 0
-        then sum(a.download_start)/sum(a.click)
-        else 0 end as downloadStartRate, --应用下载广告数据-安卓下载开始率  计算方法:安卓下载开始数/点击数
-        from ctop_bytedance_report_material_daily a
-        left join ctop_user_allocation b on a.account_id = b.account_id
-        left join user_company c on b.user_id = c.user_id
-        left join ctop_bytedance_video_info d on a.material_id = d.material_id
-        left join (select code,url,material_name from ctop_material_info group by code) e on d.signature = e.code
-        where c.company_id = '6608ed13c0dd42de93c790dbdf124234'
-        and a.image_mode in ('CREATIVE_IMAGE_MODE_VIDEO',
-        'CREATIVE_IMAGE_MODE_VIDEO_VERTICAL')
-        and date_format(stat_datetime,'%Y-%m-%d') &gt;= #{startDate}
-        and date_format(stat_datetime,'%Y-%m-%d') &lt;= #{endDate}
-        group by `statDatetime`,`signature`
-        order by `statDatetime`,`projectId`,`signature`
-    </select>
-
-</mapper>

+ 0 - 17
performance-appraisal/src/main/java/cn/com/ctop/huananvideoreport/service/IHuananVideoReportService.java

@@ -1,17 +0,0 @@
-package cn.com.ctop.huananvideoreport.service;
-
-import cn.com.ctop.huananvideoreport.entity.HuananVideoReport;
-import com.baomidou.mybatisplus.extension.service.IService;
-
-import java.text.ParseException;
-
-/**
- * 华南视频报表类
- *
- * @author jeecg-boot
- * @version V1.0
- * @date 2020-04-28
- */
-public interface IHuananVideoReportService extends IService<HuananVideoReport> {
-    void getHuananMaterialInfo(String startDate, String endDate) throws ParseException;
-}

+ 0 - 65
performance-appraisal/src/main/java/cn/com/ctop/huananvideoreport/service/impl/HuananVideoReportServiceImpl.java

@@ -1,65 +0,0 @@
-package cn.com.ctop.huananvideoreport.service.impl;
-
-import cn.com.ctop.common.module.entity.MaterialInfo;
-import cn.com.ctop.huananvideoreport.dto.HuananVideoReportDTO;
-import cn.com.ctop.huananvideoreport.entity.HuananVideoReport;
-import cn.com.ctop.huananvideoreport.mapper.HuananVideoReportMapper;
-import cn.com.ctop.huananvideoreport.service.IHuananVideoReportService;
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
-import org.assertj.core.util.DateUtil;
-import org.jeecg.common.util.DateUtils;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-
-import java.math.BigDecimal;
-import java.text.ParseException;
-import java.util.List;
-
-/**
- * 华南视频报表类
- *
- * @author jeecg-boot
- * @version V1.0
- * @date 2020-04-28
- */
-@Service
-public class HuananVideoReportServiceImpl extends ServiceImpl<HuananVideoReportMapper, HuananVideoReport> implements IHuananVideoReportService {
-
-    @Autowired
-    private HuananVideoReportMapper huananVideoReportMapper;
-
-    public void getHuananMaterialInfo(String startDate, String endDate) throws ParseException {
-
-        List<HuananVideoReport> mList = huananVideoReportMapper.getHuananMaterialInfo(startDate, endDate);
-
-        for (HuananVideoReport m : mList) {
-            huananVideoReportMapper.insert(m);
-        }
-
-
-        QueryWrapper<HuananVideoReport> queryWrapper = new QueryWrapper<>();
-        List<HuananVideoReport> mList2 = huananVideoReportMapper.selectList(queryWrapper);
-
-        for (HuananVideoReport m : mList2) {
-            String statDate = DateUtils.addDay(m.getStatDatetime(), -1);
-            HuananVideoReport mb = huananVideoReportMapper.selectByDateAndId(m.getMaterialId(), statDate);
-
-            BigDecimal huanbi = BigDecimal.ZERO;
-            if (mb != null && mb.getCost().compareTo(BigDecimal.ZERO) > 0) {
-                huanbi = m.getCost().subtract(mb.getCost()).divide(mb.getCost(), 7, BigDecimal.ROUND_HALF_UP);
-            }
-            HuananVideoReportDTO accountConcatInfo = huananVideoReportMapper.getAccountConcatInfo(m.getMaterialId());
-
-            m.setAccountId(accountConcatInfo.getAccountId());
-            m.setAuthName(accountConcatInfo.getAuthName());
-            m.setHuanbi(huanbi);
-            huananVideoReportMapper.updateById(m);
-        }
-
-
-    }
-
-
-}

+ 61 - 91
performance-appraisal/src/main/java/cn/com/ctop/userefficientvideomap/mapper/xml/UserEfficientVideoMapMapper.xml

@@ -339,12 +339,12 @@
             resultType="cn.com.ctop.userefficientvideomap.entity.DesignMaterialInfo">    <!-- 素材、素材跑量、封面点击数、封面曝光数、行为数 -->
         select
         b.id as id,
-        b.url as videoUrl, <!-- 素材url -->
-        sum(a.photo_show) as pageExposureCount, <!-- 封面曝光数 -->
-        sum(a.photo_click) as pageClickCount, <!-- 封面点击数 -->
-        sum(a.aclick) as materialExposureCount, <!-- 素材曝光数 -->
-        sum(a.bclick) as behaviorCount,<!-- 行为数 -->
-        sum(a.charge) as totalCost <!-- 素材跑量 -->
+        b.url as videoUrl,
+        sum(a.photo_show) as pageExposureCount,
+        sum(a.photo_click) as pageClickCount,
+        sum(a.aclick) as materialExposureCount,
+        sum(a.bclick) as behaviorCount,
+        sum(a.charge) as totalCost
         from
         ctop_material_info b
         left join ctop_material_ascription c on b.id = c.material_id
@@ -371,7 +371,6 @@
             resultType="cn.com.ctop.userefficientvideomap.entity.DesignMaterialInfo">
         select
         a.account_id as accountId,
-        <!-- a.account_name as accountName, -->
         '快手' as platform,
         sum(charge) as totalCost
         from
@@ -456,9 +455,9 @@
         select
         user_id
         from sys_user_role
-        WHERE role_id = '8d3e2ed58bdedf17716f698ea674da27'   <!-- 设计师 -->
+        WHERE role_id = '8d3e2ed58bdedf17716f698ea674da27'
         )
-        and b.parent_id = '4e939124a5f541c88838e49d2a3ea72b'  <!-- 快手设计部 -->
+        and b.parent_id = '4e939124a5f541c88838e49d2a3ea72b'
     </select>
 
     <!-- 获取快手编导列表 -->
@@ -476,9 +475,9 @@
         select
         user_id
         from sys_user_role
-        WHERE role_id = '0214283aa16f943efbb149ea4bb18f18'    <!-- 编导 -->
+        WHERE role_id = '0214283aa16f943efbb149ea4bb18f18'
         )
-        and b.parent_id = '4e939124a5f541c88838e49d2a3ea72b'  <!-- 快手设计部 -->
+        and b.parent_id = '4e939124a5f541c88838e49d2a3ea72b'
     </select>
 
     <!-- 获取快手拍摄列表 -->
@@ -496,9 +495,9 @@
         select
         user_id
         from sys_user_role
-        WHERE role_id = '7bff9afed625aeeabca6bffe3c189183'   <!-- 拍摄 -->
+        WHERE role_id = '7bff9afed625aeeabca6bffe3c189183'
         )
-        and b.parent_id = '4e939124a5f541c88838e49d2a3ea72b'   <!-- 快手设计部 -->
+        and b.parent_id = '4e939124a5f541c88838e49d2a3ea72b'
     </select>
 
     <!-- 获取快手剪辑列表 -->
@@ -516,9 +515,9 @@
         select
         user_id
         from sys_user_role
-        WHERE role_id = 'f38d8d70cf7ec50d5357a749e4dbf8ee'   <!-- 拍摄 -->
+        WHERE role_id = 'f38d8d70cf7ec50d5357a749e4dbf8ee'
         )
-        and b.parent_id = '4e939124a5f541c88838e49d2a3ea72b'   <!-- 快手设计部 -->
+        and b.parent_id = '4e939124a5f541c88838e49d2a3ea72b'
     </select>
 
     <!-- 根据部门id -->
@@ -561,9 +560,9 @@
         select
         user_id
         from sys_user_role
-        WHERE role_id = '8d3e2ed58bdedf17716f698ea674da27'   <!-- 设计师 -->
+        WHERE role_id = '8d3e2ed58bdedf17716f698ea674da27'
         )
-        and b.parent_id = '26c10ecb5e0d416bb01f8ff983f4588c'  <!-- 头条设计部 -->
+        and b.parent_id = '26c10ecb5e0d416bb01f8ff983f4588c'
     </select>
 
     <!-- 获取toutiao编导列表 -->
@@ -581,9 +580,9 @@
         select
         user_id
         from sys_user_role
-        WHERE role_id = '0214283aa16f943efbb149ea4bb18f18'    <!-- 编导 -->
+        WHERE role_id = '0214283aa16f943efbb149ea4bb18f18'
         )
-        and b.parent_id = '26c10ecb5e0d416bb01f8ff983f4588c'  <!-- 头条设计部 -->
+        and b.parent_id = '26c10ecb5e0d416bb01f8ff983f4588c'
     </select>
 
     <!-- 获取toutiao拍摄列表 -->
@@ -601,9 +600,9 @@
         select
         user_id
         from sys_user_role
-        WHERE role_id = '7bff9afed625aeeabca6bffe3c189183'   <!-- 拍摄 -->
+        WHERE role_id = '7bff9afed625aeeabca6bffe3c189183'
         )
-        and b.parent_id = '26c10ecb5e0d416bb01f8ff983f4588c'   <!-- 头条设计部 -->
+        and b.parent_id = '26c10ecb5e0d416bb01f8ff983f4588c'
     </select>
 
     <!-- 获取toutiao剪辑列表 -->
@@ -621,16 +620,16 @@
         select
         user_id
         from sys_user_role
-        WHERE role_id = 'f38d8d70cf7ec50d5357a749e4dbf8ee'   <!-- 拍摄 -->
+        WHERE role_id = 'f38d8d70cf7ec50d5357a749e4dbf8ee'
         )
-        and b.parent_id = '26c10ecb5e0d416bb01f8ff983f4588c'   <!-- 头条设计部 -->
+        and b.parent_id = '26c10ecb5e0d416bb01f8ff983f4588c'
     </select>
 
     <!-- 头条有效视频用户关系绑定 -->
     <select id="getToutiaoUserVideoMap" resultType="cn.com.ctop.userefficientvideomap.entity.EffiVideoDTO">
         select
         c.signature as signature,
-        sum(a.cost) as charge, <!-- 总花费 -->
+        sum(a.cost) as charge,
         f1.id as clipId,
         f1.realname as clipName,
         f2.id as shotId,
@@ -914,7 +913,7 @@
         left join sys_user u on ud.user_id = u.id
         left join sys_user_role ur on u.id = ur.user_id
         left join sys_role r on ur.role_id = r.id
-        WHERE b.parent_id = '4e939124a5f541c88838e49d2a3ea72b'  <!-- 快手设计部 -->
+        WHERE b.parent_id = '4e939124a5f541c88838e49d2a3ea72b'
         and r.role_code in ('plan','clip','shot')
     </select>
 
@@ -931,7 +930,7 @@
         left join sys_user u on ud.user_id = u.id
         left join sys_user_role ur on u.id = ur.user_id
         left join sys_role r on ur.role_id = r.id
-        WHERE b.parent_id = '4e939124a5f541c88838e49d2a3ea72b'  <!-- 快手设计部 -->
+        WHERE b.parent_id = '4e939124a5f541c88838e49d2a3ea72b'
     </select>
 
     <!-- 获取北京头条设计部所有编导、剪辑、拍摄的信息 -->
@@ -946,7 +945,7 @@
         left join sys_user u on ud.user_id = u.id
         left join sys_user_role ur on u.id = ur.user_id
         left join sys_role r on ur.role_id = r.id
-        WHERE b.parent_id = '26c10ecb5e0d416bb01f8ff983f4588c'  <!-- 头条设计部 -->
+        WHERE b.parent_id = '26c10ecb5e0d416bb01f8ff983f4588c'
         and r.role_code in ('plan','clip','shot')
     </select>
 
@@ -962,7 +961,7 @@
         left join sys_user u on ud.user_id = u.id
         left join sys_user_role ur on u.id = ur.user_id
         left join sys_role r on ur.role_id = r.id
-        WHERE b.parent_id = '26c10ecb5e0d416bb01f8ff983f4588c'  <!-- 头条设计部 -->
+        WHERE b.parent_id = '26c10ecb5e0d416bb01f8ff983f4588c'
     </select>
 
     <!-- 获取北京快手运营部所有优化师得信息 -->
@@ -977,7 +976,7 @@
         left join sys_user u on ud.user_id = u.id
         left join sys_user_role ur on u.id = ur.user_id
         left join sys_role r on ur.role_id = r.id
-        WHERE b.parent_id = '024b0dc0840045afb048022a8c61253f'  <!-- 快手运营部 -->
+        WHERE b.parent_id = '024b0dc0840045afb048022a8c61253f'
         and (r.role_code in ('operator','kuaishouOperationManager','operationAssistant')
         or realname = '郭浩')
     </select>
@@ -994,24 +993,11 @@
         left join sys_user u on ud.user_id = u.id
         left join sys_user_role ur on u.id = ur.user_id
         left join sys_role r on ur.role_id = r.id
-        WHERE b.parent_id = '024b0dc0840045afb048022a8c61253f'  <!-- 快手运营部 -->
+        WHERE b.parent_id = '024b0dc0840045afb048022a8c61253f'
     </select>
 
     <!-- 获取北京头条运营部所有优化师得信息 -->
     <select id="getToutiaoYunyingDepartUserInfo" resultType="cn.com.ctop.userefficientvideomap.entity.UserDto2">
-        <!-- select u.id as userId,
-         u.realname as realname,
-         r.role_name as roleName,
-         r.role_code as roleCode,
-         r.id as roleId
-         FROM sys_user_depart ud
-         left join sys_depart b on ud.dep_id = b.id
-         left join sys_user u on ud.user_id = u.id
-         left join sys_user_role ur on u.id = ur.user_id
-         left join sys_role r on ur.role_id = r.id
-         WHERE b.parent_id = 'c869de6bedc44a50803e45a4611df05e'
-         and r.role_code = 'operator' -->
-
         select u.id as userId,
         u.realname as realname,
         r.role_name as roleName,
@@ -1022,7 +1008,7 @@
         left join sys_user u on ud.user_id = u.id
         left join sys_user_role ur on u.id = ur.user_id
         left join sys_role r on ur.role_id = r.id
-        WHERE b.parent_id = 'c869de6bedc44a50803e45a4611df05e'  <!-- 头条运营部 -->
+        WHERE b.parent_id = 'c869de6bedc44a50803e45a4611df05e'
         and r.role_code in ('operator','kuaishouOperationManager','operationAssistant')
     </select>
 
@@ -1038,7 +1024,7 @@
         left join sys_user u on ud.user_id = u.id
         left join sys_user_role ur on u.id = ur.user_id
         left join sys_role r on ur.role_id = r.id
-        WHERE b.parent_id = 'c869de6bedc44a50803e45a4611df05e'  <!-- 头条运营部 -->
+        WHERE b.parent_id = 'c869de6bedc44a50803e45a4611df05e'
     </select>
 
     <!-- 获取快手单个优化师当前账户下的总消耗 -->
@@ -1080,12 +1066,12 @@
     <!-- 获取头条单个优化师其下所有的账户下当前的消耗 -->
     <select id="getToutiaoAccountTotalCost" resultType="cn.com.ctop.userefficientvideomap.entity.AccountDTO">
         select
-        SUM(dailiAccount.cost) as totalCost,  <!-- 账户当前消耗 -->
-        allocation.account_id as accountId,  <!-- 账户id -->
-        allocation.user_name as userName,  <!-- 优化师 -->
-        allocation.advertiser_name as advertiserName,  <!-- 广告主名称 -->
-        allocation.project_name as projectName,  <!-- 项目名称 -->
-        allocation.auth_name as authName <!-- 授权名称 -->
+        SUM(dailiAccount.cost) as totalCost,
+        allocation.account_id as accountId,
+        allocation.user_name as userName,
+        allocation.advertiser_name as advertiserName,
+        allocation.project_name as projectName,
+        allocation.auth_name as authName
         from
         ctop_bytedance_report_advertiser_daily dailiAccount
         LEFT JOIN
@@ -1104,12 +1090,12 @@
     <!-- 获取快手单个优化师其下所有账户下当前的消耗 -->
     <select id="getKuaishouAccountTotalCost" resultType="cn.com.ctop.userefficientvideomap.entity.AccountDTO">
         SELECT
-        SUM(dailiAccount.charge) as totalCost,  <!-- 账户当前消耗 -->
-        allocation.account_id as accountId,  <!-- 账户id -->
-        allocation.user_name as userName,  <!-- 优化师 -->
-        allocation.advertiser_name as advertiserName,  <!-- 广告主名称 -->
-        allocation.project_name as projectName,  <!-- 项目名称 -->
-        allocation.auth_name as authName <!-- 授权名称 -->
+        SUM(dailiAccount.charge) as totalCost,
+        allocation.account_id as accountId,
+        allocation.user_name as userName,
+        allocation.advertiser_name as advertiserName,
+        allocation.project_name as projectName,
+        allocation.auth_name as authName
         FROM
         ctop_kuaishou_report_daily_account dailiAccount
         LEFT JOIN
@@ -1132,7 +1118,6 @@
         from
         ctop_user_efficient_video_map
         where user_id = #{userId}
-        <!-- and role_id = #{roleId}  -->
         and app_type = #{appType}
         and calc_date &lt;= #{endDate}
         and calc_date &gt;= #{startDate}
@@ -1146,8 +1131,8 @@
         i.url as url,
         i.material_name as materialName,
         i.watermark_material_name as watermarkMaterialName,
-        m.role_id as videoRoleCode,  <!-- 拍摄时候担任的角色 -->
-        r.role_name as originRoleName  <!-- 原本的角色 -->
+        m.role_id as videoRoleCode,
+        r.role_name as originRoleName
         from
         ctop_user_efficient_video_map m
         left join (select id,code,url,material_name,watermark_material_name from ctop_material_info group by code) i on
@@ -1169,8 +1154,8 @@
         i.url as url,
         i.material_name as materialName,
         i.watermark_material_name as watermarkMaterialName,
-        m.role_id as videoRoleCode,  <!-- 拍摄时候担任的角色 -->
-        r.role_name as originRoleName,  <!-- 原本的角色 -->
+        m.role_id as videoRoleCode,
+        r.role_name as originRoleName,
         su.realname as realname
         from
         ctop_user_efficient_video_map m
@@ -1305,20 +1290,6 @@
 
     <!-- 按时间段获取视频总量 -->
     <select id="getVideoByDates" resultType="string">
-        <!-- select
-         code
-         from (
-             select
-             code,
-             create_time
-             from
-             ctop_material_info
-             where
-             date_format(create_time, '%Y-%m-%d') &gt;= #{startDate} and
-             date_format(create_time, '%Y-%m-%d') &lt;= #{endDate}
-             order by create_time
-             ) a
-         group by code -->
         select
         b.signature
         from ctop_kuaishou_creative a
@@ -1405,8 +1376,8 @@
         i.url as url,
         i.material_name as materialName,
         i.watermark_material_name as watermarkMaterialName,
-        m.role_id as videoRoleCode,  <!-- 拍摄时候担任的角色 -->
-        r.role_name as originRoleName  <!-- 原本的角色 -->
+        m.role_id as videoRoleCode,
+        r.role_name as originRoleName
         from
         ctop_user_video_map m
         left join (
@@ -1490,7 +1461,7 @@
         left join sys_user u on ud.user_id = u.id
         left join sys_user_role ur on u.id = ur.user_id
         left join sys_role r on ur.role_id = r.id
-        WHERE b.parent_id = '024b0dc0840045afb048022a8c61253f'  <!-- 快手运营部 -->
+        WHERE b.parent_id = '024b0dc0840045afb048022a8c61253f'
         and r.role_code = 'kuaishouOperationManager'
     </select>
 
@@ -1507,7 +1478,7 @@
         left join sys_user u on ud.user_id = u.id
         left join sys_user_role ur on u.id = ur.user_id
         left join sys_role r on ur.role_id = r.id
-        WHERE b.parent_id = 'c869de6bedc44a50803e45a4611df05e'  <!-- 头条运营部 -->
+        WHERE b.parent_id = 'c869de6bedc44a50803e45a4611df05e'
         and r.role_code = 'toutiaoOperationManager'
     </select>
 
@@ -1604,9 +1575,9 @@
         select
         id as projectId,
         project_name as projectName,
-        advertiser_name as advertiserName,  <!-- 广告主 -->
-        responsible_name as responsibleName,  <!-- 负责人名称 -->
-        design_responsible_name as designResponsibleName, <!-- 设计负责人名称 -->
+        advertiser_name as advertiserName,
+        responsible_name as responsibleName,
+        design_responsible_name as designResponsibleName,
         (select sum(cost) from ctop_performance_account where account_id in (
         select
         account_id
@@ -1678,12 +1649,11 @@
         d4.realname as clip,
         d4.id as clipId
         from
-        (
-        select signature, sum(charge) as charge from ctop_kuaishou_report_daily_creative where creative_id in (
+        (select signature, sum(charge) as charge from ctop_kuaishou_report_daily_creative where creative_id in (
         select creative_id from ctop_kuaishou_creative where photo_id != 0 and account_id = #{accountId}
         )
-        and stat_date &gt;= #{startDate} and stat_date &lt;= #{endDate} <!-- and signature is not null --> group by
-        signature
+        and stat_date &gt;= #{startDate} and stat_date &lt;= #{endDate}
+         group by signature
         ) a
         left join (select id,url,code from ctop_material_info group by code) b on a.signature = b.code
         left join ctop_material_ascription c on b.id = c.material_id
@@ -1691,7 +1661,7 @@
         left join sys_user d2 on d2.id = c.plan_id
         left join sys_user d3 on d3.id = c.plane_id
         left join sys_user d4 on d4.id = c.clip_id
-        where b.url is not null <!-- TODO delete -->
+        where b.url is not null
     </select>
 
     <!-- 头条根据账户获取其下视频制作信息以及消耗 -->
@@ -1717,7 +1687,7 @@
         )
         and date_format(stat_datetime,'%Y-%m-%d') &gt;= #{startDate}
         and date_format(stat_datetime,'%Y-%m-%d') &lt;= #{endDate}
-        <!--and  signature is not null --> group by signature
+        group by signature
         ) a
         left join (select id,url,code from ctop_material_info group by code) b on a.signature = b.code
         left join ctop_material_ascription c on b.id = c.material_id
@@ -1725,7 +1695,7 @@
         left join sys_user d2 on d2.id = c.plan_id
         left join sys_user d3 on d3.id = c.plane_id
         left join sys_user d4 on d4.id = c.clip_id
-        where b.url is not null <!-- TODO delete -->
+        where b.url is not null
     </select>
 
     <!-- 根据设计师组员姓名获取组长姓名 -->
@@ -1737,7 +1707,7 @@
         left join sys_user_depart b on a.id = b.user_id
         left join sys_user_role c on a.id = c.user_id
         where b.dep_id = (select dep_id from sys_user_depart where user_id = #{userId})
-        and c.role_id = '8d3e2ed58bdedf17716f698ea674da27' <!-- 设计组长roleid -->
+        and c.role_id = '8d3e2ed58bdedf17716f698ea674da27'
     </select>
 
     <select id="getUserQuarterVideo" resultType="cn.com.ctop.userefficientvideomap.entity.VideoDTO">