TbDemoVideoServiceImpl.java 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. package com.ruoyi.asset.service.impl;
  2. import java.util.List;
  3. import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
  4. import com.ruoyi.common.utils.DateUtils;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.stereotype.Service;
  7. import com.ruoyi.asset.mapper.TbDemoVideoMapper;
  8. import com.ruoyi.asset.domain.TbDemoVideo;
  9. import com.ruoyi.asset.service.ITbDemoVideoService;
  10. /**
  11. * 演示视频Service业务层处理
  12. *
  13. * @author 原动力
  14. * @date 2023-05-06
  15. */
  16. @Service
  17. public class TbDemoVideoServiceImpl extends ServiceImpl<TbDemoVideoMapper, TbDemoVideo> implements ITbDemoVideoService
  18. {
  19. @Autowired
  20. private TbDemoVideoMapper tbDemoVideoMapper;
  21. /**
  22. * 查询演示视频
  23. *
  24. * @param id 演示视频主键
  25. * @return 演示视频
  26. */
  27. @Override
  28. public TbDemoVideo selectTbDemoVideoById(Long id)
  29. {
  30. return tbDemoVideoMapper.selectTbDemoVideoById(id);
  31. }
  32. /**
  33. * 查询演示视频列表
  34. *
  35. * @param tbDemoVideo 演示视频
  36. * @return 演示视频
  37. */
  38. @Override
  39. public List<TbDemoVideo> selectTbDemoVideoList(TbDemoVideo tbDemoVideo)
  40. {
  41. return tbDemoVideoMapper.selectTbDemoVideoList(tbDemoVideo);
  42. }
  43. /**
  44. * 新增演示视频
  45. *
  46. * @param tbDemoVideo 演示视频
  47. * @return 结果
  48. */
  49. @Override
  50. public int insertTbDemoVideo(TbDemoVideo tbDemoVideo)
  51. {
  52. tbDemoVideo.setCreateTime(DateUtils.getNowDate());
  53. return tbDemoVideoMapper.insertTbDemoVideo(tbDemoVideo);
  54. }
  55. /**
  56. * 修改演示视频
  57. *
  58. * @param tbDemoVideo 演示视频
  59. * @return 结果
  60. */
  61. @Override
  62. public int updateTbDemoVideo(TbDemoVideo tbDemoVideo)
  63. {
  64. tbDemoVideo.setUpdateTime(DateUtils.getNowDate());
  65. return tbDemoVideoMapper.updateTbDemoVideo(tbDemoVideo);
  66. }
  67. /**
  68. * 批量删除演示视频
  69. *
  70. * @param ids 需要删除的演示视频主键
  71. * @return 结果
  72. */
  73. @Override
  74. public int deleteTbDemoVideoByIds(Long[] ids)
  75. {
  76. return tbDemoVideoMapper.deleteTbDemoVideoByIds(ids);
  77. }
  78. /**
  79. * 删除演示视频信息
  80. *
  81. * @param id 演示视频主键
  82. * @return 结果
  83. */
  84. @Override
  85. public int deleteTbDemoVideoById(Long id)
  86. {
  87. return tbDemoVideoMapper.deleteTbDemoVideoById(id);
  88. }
  89. }