AdTheatreTvStatService.java 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. package com.ylcm.sys.service;
  2. import com.baomidou.mybatisplus.core.metadata.IPage;
  3. import com.baomidou.mybatisplus.extension.service.IService;
  4. import com.ylcm.sys.domain.AdTheatre;
  5. import com.ylcm.sys.domain.AdTheatreTv;
  6. import com.ylcm.sys.domain.AdTheatreTvStat;
  7. import com.ylcm.sys.form.AdTheatreAnalysisDetailQueryForm;
  8. import com.ylcm.sys.form.AdTheatreAnalysisQueryForm;
  9. import com.ylcm.sys.vo.*;
  10. import java.util.List;
  11. /**
  12. * <p>
  13. * 关联电视剧数据 服务类
  14. * </p>
  15. *
  16. * @author admin
  17. * @since 2020-07-01
  18. */
  19. public interface AdTheatreTvStatService extends IService<AdTheatreTvStat> {
  20. IPage<AdTheatreAnalysisVO> getPage(AdTheatreAnalysisQueryForm queryForm);
  21. IPage<AdTheatreAnalysisDetailVO> getDetailPage(AdTheatreAnalysisDetailQueryForm queryForm);
  22. /**
  23. * 统计频道这个季度的时间
  24. * @param mediaName
  25. * @param theatreTime
  26. * @param startDate
  27. * @param endDate
  28. * @return
  29. */
  30. AdTheatreTvStat statByMedia(String mediaName, Integer theatreTime, String startDate, String endDate);
  31. /**
  32. * 剧场电视剧收视排名
  33. * @param startDate
  34. * @param endDate
  35. * @return
  36. */
  37. List<AdTheatreTopVO> getTvTop(Integer theatreTime, String startDate, String endDate);
  38. /**
  39. * 剧场电视剧收视排名
  40. * @param name 剧名
  41. * @param theatreTime 剧场:0日间 1黄金2午夜3凌晨
  42. * @param startDate 播放时间
  43. * @param endDate 播放时间
  44. */
  45. List<AdTheatreTopVO> getMediaTop(String name, Integer theatreTime, String startDate, String endDate, Integer limitSize);
  46. /**
  47. * 电视剧收视分析
  48. * @param queryForm
  49. * @return
  50. */
  51. AdTvRatioVO getTvRatioVO(AdTheatreAnalysisDetailQueryForm queryForm);
  52. /**
  53. * 收视区域分布
  54. * @param queryForm
  55. * @return
  56. */
  57. AdTvZoneVO getTvZoneVO(AdTheatreAnalysisDetailQueryForm queryForm);
  58. /**
  59. * 电视剧产品投放分析
  60. * @param queryForm
  61. * @return
  62. */
  63. List<AdTheatreProductDistVO> getProductVO(AdTheatreAnalysisDetailQueryForm queryForm);
  64. /**
  65. * 电视剧体裁结构分析
  66. * @param queryForm
  67. * @return
  68. */
  69. List<AdThemeDistVO> getThemeDistVO(AdTheatreAnalysisDetailQueryForm queryForm);
  70. /**
  71. * 同步统计数据
  72. * @param adTheatre
  73. * @param
  74. */
  75. void saveStatByTheatreTv(AdTheatre adTheatre);
  76. /**
  77. * 剧名等基本信息修改
  78. * @param newName
  79. * @param oldName
  80. * @param firstTheme
  81. * @param oldFirstTheme
  82. */
  83. void batchUpdateByName(String newName, String oldName, String firstTheme, String oldFirstTheme, String secondTheme);
  84. }