AdTheatreService.java 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. package com.ylcm.sys.service;
  2. import com.baomidou.mybatisplus.core.metadata.IPage;
  3. import com.ylcm.sys.domain.AdTheatre;
  4. import com.baomidou.mybatisplus.extension.service.IService;
  5. import com.ylcm.sys.domain.AdTheatreTv;
  6. import com.ylcm.sys.form.AdTheatreForm;
  7. import com.ylcm.sys.vo.AdTheatreVO;
  8. import java.util.List;
  9. /**
  10. * <p>
  11. * 剧场管理表 服务类
  12. * </p>
  13. *
  14. * @author admin
  15. * @since 2020-07-01
  16. */
  17. public interface AdTheatreService extends IService<AdTheatre> {
  18. IPage<AdTheatreVO> page(IPage<AdTheatre> page, AdTheatreForm form);
  19. /**
  20. * 根据组合键判断是否已存在
  21. */
  22. AdTheatre getUniqu(AdTheatre form);
  23. /**
  24. * 批量添加
  25. * @param list 剧场数据
  26. * @param tvList 电视剧收视数据
  27. * @return 执行结果:errorMsg or ok
  28. */
  29. List<AdTheatre> batchAdd(List<AdTheatre> list, List<AdTheatreTv> tvList) throws Exception;
  30. String deleteById(Integer id);
  31. void saveOrUpd(AdTheatre adTheatre);
  32. /**
  33. * 栏目或者产品名修改后 同步剧场
  34. * @param type
  35. * @param oldName 旧的栏目/产品名
  36. * @param newName 新的栏目/产品名
  37. * @param newBrandName 新的内容/品牌
  38. */
  39. void updateProductName(Integer type, String oldName, String newName);
  40. /**
  41. * 电视剧修改后,同步剧场
  42. * @param oldName
  43. * @param newName
  44. * @param newName
  45. * @param newName
  46. */
  47. void updateTvName(String oldName, String newName, String newFirstTheme, String oldFirstTheme, String newSecondTheme);
  48. /**
  49. * 媒体修改后,同步剧场
  50. * @param oldName
  51. * @param newName
  52. */
  53. void updateMediaName(String oldName, String newName);
  54. /**
  55. * 统计集数
  56. * @param name
  57. * @param mediaName
  58. * @param startDate
  59. * @param endDate
  60. * @return
  61. */
  62. int countTvNum(String name, String mediaName, String startDate, String endDate);
  63. /**
  64. * 统计题材总数
  65. * @param firstTheme
  66. * @param timeQuery
  67. * @param startDate
  68. * @param endDate
  69. * @return
  70. */
  71. int countThemeNum(String firstTheme, String mediaName, String timeQuery, String startDate, String endDate);
  72. }