liusuyi
2026-05-12 9f327c33730ba10cb2d89aff99b727502232e968
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
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<ArdCarouselWindow> 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);
    }
}