admin
2024-01-08 f1836e2107bdb13687dddb94de72b91efb49a393
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.jcdm.main.bs.beatSetting.service.impl;
 
import java.util.List;
import com.jcdm.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jcdm.main.bs.beatSetting.mapper.BsBeatSettingMapper;
import com.jcdm.main.bs.beatSetting.domain.BsBeatSetting;
import com.jcdm.main.bs.beatSetting.service.IBsBeatSettingService;
 
/**
 * 节拍设置Service业务层处理
 * 
 * @author Yi
 * @date 2024-01-05
 */
@Service
public class BsBeatSettingServiceImpl implements IBsBeatSettingService 
{
    @Autowired
    private BsBeatSettingMapper bsBeatSettingMapper;
 
    /**
     * 查询节拍设置
     * 
     * @param id 节拍设置主键
     * @return 节拍设置
     */
    @Override
    public BsBeatSetting selectBsBeatSettingById(Long id)
    {
        return bsBeatSettingMapper.selectBsBeatSettingById(id);
    }
 
    /**
     * 查询节拍设置列表
     * 
     * @param bsBeatSetting 节拍设置
     * @return 节拍设置
     */
    @Override
    public List<BsBeatSetting> selectBsBeatSettingList(BsBeatSetting bsBeatSetting)
    {
        return bsBeatSettingMapper.selectBsBeatSettingList(bsBeatSetting);
    }
 
    /**
     * 新增节拍设置
     * 
     * @param bsBeatSetting 节拍设置
     * @return 结果
     */
    @Override
    public int insertBsBeatSetting(BsBeatSetting bsBeatSetting)
    {
        bsBeatSetting.setCreateTime(DateUtils.getNowDate());
        return bsBeatSettingMapper.insertBsBeatSetting(bsBeatSetting);
    }
 
    /**
     * 修改节拍设置
     * 
     * @param bsBeatSetting 节拍设置
     * @return 结果
     */
    @Override
    public int updateBsBeatSetting(BsBeatSetting bsBeatSetting)
    {
        bsBeatSetting.setUpdateTime(DateUtils.getNowDate());
        return bsBeatSettingMapper.updateBsBeatSetting(bsBeatSetting);
    }
 
    /**
     * 批量删除节拍设置
     * 
     * @param ids 需要删除的节拍设置主键
     * @return 结果
     */
    @Override
    public int deleteBsBeatSettingByIds(Long[] ids)
    {
        return bsBeatSettingMapper.deleteBsBeatSettingByIds(ids);
    }
 
    /**
     * 删除节拍设置信息
     * 
     * @param id 节拍设置主键
     * @return 结果
     */
    @Override
    public int deleteBsBeatSettingById(Long id)
    {
        return bsBeatSettingMapper.deleteBsBeatSettingById(id);
    }
}