1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- package com.ruoyi.asset.service.impl;
- import java.util.List;
- import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
- import com.ruoyi.common.utils.DateUtils;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.stereotype.Service;
- import com.ruoyi.asset.mapper.TbDemoVideoMapper;
- import com.ruoyi.asset.domain.TbDemoVideo;
- import com.ruoyi.asset.service.ITbDemoVideoService;
- /**
- * 演示视频Service业务层处理
- *
- * @author 原动力
- * @date 2023-05-06
- */
- @Service
- public class TbDemoVideoServiceImpl extends ServiceImpl<TbDemoVideoMapper, TbDemoVideo> implements ITbDemoVideoService
- {
- @Autowired
- private TbDemoVideoMapper tbDemoVideoMapper;
- /**
- * 查询演示视频
- *
- * @param id 演示视频主键
- * @return 演示视频
- */
- @Override
- public TbDemoVideo selectTbDemoVideoById(Long id)
- {
- return tbDemoVideoMapper.selectTbDemoVideoById(id);
- }
- /**
- * 查询演示视频列表
- *
- * @param tbDemoVideo 演示视频
- * @return 演示视频
- */
- @Override
- public List<TbDemoVideo> selectTbDemoVideoList(TbDemoVideo tbDemoVideo)
- {
- return tbDemoVideoMapper.selectTbDemoVideoList(tbDemoVideo);
- }
- /**
- * 新增演示视频
- *
- * @param tbDemoVideo 演示视频
- * @return 结果
- */
- @Override
- public int insertTbDemoVideo(TbDemoVideo tbDemoVideo)
- {
- tbDemoVideo.setCreateTime(DateUtils.getNowDate());
- return tbDemoVideoMapper.insertTbDemoVideo(tbDemoVideo);
- }
- /**
- * 修改演示视频
- *
- * @param tbDemoVideo 演示视频
- * @return 结果
- */
- @Override
- public int updateTbDemoVideo(TbDemoVideo tbDemoVideo)
- {
- tbDemoVideo.setUpdateTime(DateUtils.getNowDate());
- return tbDemoVideoMapper.updateTbDemoVideo(tbDemoVideo);
- }
- /**
- * 批量删除演示视频
- *
- * @param ids 需要删除的演示视频主键
- * @return 结果
- */
- @Override
- public int deleteTbDemoVideoByIds(Long[] ids)
- {
- return tbDemoVideoMapper.deleteTbDemoVideoByIds(ids);
- }
- /**
- * 删除演示视频信息
- *
- * @param id 演示视频主键
- * @return 结果
- */
- @Override
- public int deleteTbDemoVideoById(Long id)
- {
- return tbDemoVideoMapper.deleteTbDemoVideoById(id);
- }
- }
|