春风项目四线(合箱线、总装线)
wujian
2024-04-28 9bc5106810d7c0e6f27e904b584c9bbfb3725a19
提交 | 用户 | 时间
fd2207 1 package com.jcdm.main.bs.beatSetting.service.impl;
2
3 import java.util.List;
4 import com.jcdm.common.utils.DateUtils;
5 import org.springframework.beans.factory.annotation.Autowired;
6 import org.springframework.stereotype.Service;
7 import com.jcdm.main.bs.beatSetting.mapper.BsBeatSettingMapper;
8 import com.jcdm.main.bs.beatSetting.domain.BsBeatSetting;
9 import com.jcdm.main.bs.beatSetting.service.IBsBeatSettingService;
10
11 /**
12  * 节拍设置Service业务层处理
13  * 
14  * @author Yi
15  * @date 2024-01-05
16  */
17 @Service
18 public class BsBeatSettingServiceImpl implements IBsBeatSettingService 
19 {
20     @Autowired
21     private BsBeatSettingMapper bsBeatSettingMapper;
22
23     /**
24      * 查询节拍设置
25      * 
26      * @param id 节拍设置主键
27      * @return 节拍设置
28      */
29     @Override
30     public BsBeatSetting selectBsBeatSettingById(Long id)
31     {
32         return bsBeatSettingMapper.selectBsBeatSettingById(id);
33     }
34
35     /**
36      * 查询节拍设置列表
37      * 
38      * @param bsBeatSetting 节拍设置
39      * @return 节拍设置
40      */
41     @Override
42     public List<BsBeatSetting> selectBsBeatSettingList(BsBeatSetting bsBeatSetting)
43     {
44         return bsBeatSettingMapper.selectBsBeatSettingList(bsBeatSetting);
45     }
46
47     /**
48      * 新增节拍设置
49      * 
50      * @param bsBeatSetting 节拍设置
51      * @return 结果
52      */
53     @Override
54     public int insertBsBeatSetting(BsBeatSetting bsBeatSetting)
55     {
56         bsBeatSetting.setCreateTime(DateUtils.getNowDate());
57         return bsBeatSettingMapper.insertBsBeatSetting(bsBeatSetting);
58     }
59
60     /**
61      * 修改节拍设置
62      * 
63      * @param bsBeatSetting 节拍设置
64      * @return 结果
65      */
66     @Override
67     public int updateBsBeatSetting(BsBeatSetting bsBeatSetting)
68     {
69         bsBeatSetting.setUpdateTime(DateUtils.getNowDate());
70         return bsBeatSettingMapper.updateBsBeatSetting(bsBeatSetting);
71     }
72
73     /**
74      * 批量删除节拍设置
75      * 
76      * @param ids 需要删除的节拍设置主键
77      * @return 结果
78      */
79     @Override
80     public int deleteBsBeatSettingByIds(Long[] ids)
81     {
82         return bsBeatSettingMapper.deleteBsBeatSettingByIds(ids);
83     }
84
85     /**
86      * 删除节拍设置信息
87      * 
88      * @param id 节拍设置主键
89      * @return 结果
90      */
91     @Override
92     public int deleteBsBeatSettingById(Long id)
93     {
94         return bsBeatSettingMapper.deleteBsBeatSettingById(id);
95     }
96 }