package com.ard.work.carousel.service.impl; import java.util.List; import com.ard.common.core.utils.DateUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.ard.work.carousel.mapper.ArdCarouselWindowMapper; import com.ard.work.carousel.domain.ArdCarouselWindow; import com.ard.work.carousel.service.IArdCarouselWindowService; /** * 视频轮播窗口Service业务层处理 * * @author ruoyi * @date 2024-09-03 */ @Service public class ArdCarouselWindowServiceImpl implements IArdCarouselWindowService { @Autowired private ArdCarouselWindowMapper ardCarouselWindowMapper; /** * 查询视频轮播窗口 * * @param id 视频轮播窗口主键 * @return 视频轮播窗口 */ @Override public ArdCarouselWindow selectArdCarouselWindowById(String id) { return ardCarouselWindowMapper.selectArdCarouselWindowById(id); } /** * 查询视频轮播窗口列表 * * @param ardCarouselWindow 视频轮播窗口 * @return 视频轮播窗口 */ @Override public List selectArdCarouselWindowList(ArdCarouselWindow ardCarouselWindow) { return ardCarouselWindowMapper.selectArdCarouselWindowList(ardCarouselWindow); } /** * 新增视频轮播窗口 * * @param ardCarouselWindow 视频轮播窗口 * @return 结果 */ @Override public int insertArdCarouselWindow(ArdCarouselWindow ardCarouselWindow) { ardCarouselWindow.setCreateTime(DateUtils.getNowDate()); return ardCarouselWindowMapper.insertArdCarouselWindow(ardCarouselWindow); } /** * 修改视频轮播窗口 * * @param ardCarouselWindow 视频轮播窗口 * @return 结果 */ @Override public int updateArdCarouselWindow(ArdCarouselWindow ardCarouselWindow) { ardCarouselWindow.setUpdateTime(DateUtils.getNowDate()); return ardCarouselWindowMapper.updateArdCarouselWindow(ardCarouselWindow); } /** * 批量删除视频轮播窗口 * * @param ids 需要删除的视频轮播窗口主键 * @return 结果 */ @Override public int deleteArdCarouselWindowByIds(String[] ids) { return ardCarouselWindowMapper.deleteArdCarouselWindowByIds(ids); } /** * 删除视频轮播窗口信息 * * @param id 视频轮播窗口主键 * @return 结果 */ @Override public int deleteArdCarouselWindowById(String id) { return ardCarouselWindowMapper.deleteArdCarouselWindowById(id); } }