yyt
2024-06-26 0cceb649e1dc443c2a91d26d81eacb0867c96db3
提交 | 用户 | 时间
0cceb6 1 package com.jcdm.main.sc.stationConf.service.impl;
Y 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.sc.stationConf.mapper.ScStationConfMapper;
8 import com.jcdm.main.sc.stationConf.domain.ScStationConf;
9 import com.jcdm.main.sc.stationConf.service.IScStationConfService;
10
11 /**
12  * 工位终端配置Service业务层处理
13  * 
14  * @author Yi
15  * @date 2024-01-06
16  */
17 @Service
18 public class ScStationConfServiceImpl implements IScStationConfService 
19 {
20     @Autowired
21     private ScStationConfMapper scStationConfMapper;
22
23     /**
24      * 查询工位终端配置
25      * 
26      * @param id 工位终端配置主键
27      * @return 工位终端配置
28      */
29     @Override
30     public ScStationConf selectScStationConfById(Long id)
31     {
32         return scStationConfMapper.selectScStationConfById(id);
33     }
34
35     /**
36      * 查询工位终端配置列表
37      * 
38      * @param scStationConf 工位终端配置
39      * @return 工位终端配置
40      */
41     @Override
42     public List<ScStationConf> selectScStationConfList(ScStationConf scStationConf)
43     {
44         return scStationConfMapper.selectScStationConfList(scStationConf);
45     }
46
47     /**
48      * 新增工位终端配置
49      * 
50      * @param scStationConf 工位终端配置
51      * @return 结果
52      */
53     @Override
54     public int insertScStationConf(ScStationConf scStationConf)
55     {
56         scStationConf.setCreateTime(DateUtils.getNowDate());
57         return scStationConfMapper.insertScStationConf(scStationConf);
58     }
59
60     /**
61      * 修改工位终端配置
62      * 
63      * @param scStationConf 工位终端配置
64      * @return 结果
65      */
66     @Override
67     public int updateScStationConf(ScStationConf scStationConf)
68     {
69         scStationConf.setUpdateTime(DateUtils.getNowDate());
70         return scStationConfMapper.updateScStationConf(scStationConf);
71     }
72
73     /**
74      * 批量删除工位终端配置
75      * 
76      * @param ids 需要删除的工位终端配置主键
77      * @return 结果
78      */
79     @Override
80     public int deleteScStationConfByIds(Long[] ids)
81     {
82         return scStationConfMapper.deleteScStationConfByIds(ids);
83     }
84
85     /**
86      * 删除工位终端配置信息
87      * 
88      * @param id 工位终端配置主键
89      * @return 结果
90      */
91     @Override
92     public int deleteScStationConfById(Long id)
93     {
94         return scStationConfMapper.deleteScStationConfById(id);
95     }
96 }