ICustomerVideoWatchesService.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. package com.ruoyi.mingxue.service;
  2. import com.ruoyi.mingxue.domain.CustomerVideoWatches;
  3. import java.util.Date;
  4. import java.util.List;
  5. /**
  6. * 客户观看视频记录Service接口
  7. *
  8. * @author mingxue
  9. * @date 2021-07-28
  10. */
  11. public interface ICustomerVideoWatchesService
  12. {
  13. /**
  14. * 查询客户观看视频记录
  15. *
  16. * @param id 客户观看视频记录ID
  17. * @return 客户观看视频记录
  18. */
  19. public CustomerVideoWatches selectCustomerVideoWatchesById(Long id);
  20. /**
  21. * 查询客户观看视频记录列表
  22. *
  23. * @param customerVideoWatches 客户观看视频记录
  24. * @return 客户观看视频记录集合
  25. */
  26. public List<CustomerVideoWatches> selectCustomerVideoWatchesList(CustomerVideoWatches customerVideoWatches);
  27. /**
  28. * 新增客户观看视频记录
  29. *
  30. * @param customerVideoWatches 客户观看视频记录
  31. * @return 结果
  32. */
  33. public int insertCustomerVideoWatches(CustomerVideoWatches customerVideoWatches);
  34. /**
  35. * 修改客户观看视频记录
  36. *
  37. * @param customerVideoWatches 客户观看视频记录
  38. * @return 结果
  39. */
  40. public int updateCustomerVideoWatches(CustomerVideoWatches customerVideoWatches);
  41. /**
  42. * 批量删除客户观看视频记录
  43. *
  44. * @param ids 需要删除的客户观看视频记录ID
  45. * @return 结果
  46. */
  47. public int deleteCustomerVideoWatchesByIds(Long[] ids);
  48. /**
  49. * 删除客户观看视频记录信息
  50. *
  51. * @param id 客户观看视频记录ID
  52. * @return 结果
  53. */
  54. public int deleteCustomerVideoWatchesById(Long id);
  55. public int countVideoWatchCount(String customerCode);
  56. public int countVideoWatchDuration(String customerCode);
  57. public List<CustomerVideoWatches> countDurationByDate(String customerCode, Date start, Date end);
  58. public List<CustomerVideoWatches> selectByDate(String customerCode, Date start, Date end);
  59. public List<CustomerVideoWatches> countDurationByDateAndSubject(String customerCode, Date start, Date end);
  60. public CustomerVideoWatches selectTodayBySection(String customerCode, Integer type, String sectionId);
  61. }