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