cl
2024-09-06 e0391b17f64e4c79f7b1d4ffa2963772c2ebed52
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
package com.jcdm.main.da.cellData.service.impl;
 
import java.util.List;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jcdm.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jcdm.main.da.cellData.mapper.DaCellDataMapper;
import com.jcdm.main.da.cellData.domain.DaCellData;
import com.jcdm.main.da.cellData.service.IDaCellDataService;
 
/**
 * 电芯数据Service业务层处理
 * 
 * @author Yi
 * @date 2024-07-03
 */
@Service
public class DaCellDataServiceImpl extends ServiceImpl<DaCellDataMapper,DaCellData> implements IDaCellDataService
{
    @Autowired
    private DaCellDataMapper daCellDataMapper;
 
    /**
     * 查询电芯数据
     * 
     * @param id 电芯数据主键
     * @return 电芯数据
     */
    @Override
    public DaCellData selectDaCellDataById(Long id)
    {
        return daCellDataMapper.selectDaCellDataById(id);
    }
 
    /**
     * 查询电芯数据列表
     * 
     * @param daCellData 电芯数据
     * @return 电芯数据
     */
    @Override
    public List<DaCellData> selectDaCellDataList(DaCellData daCellData)
    {
        return daCellDataMapper.selectDaCellDataList(daCellData);
    }
 
    /**
     * 新增电芯数据
     * 
     * @param daCellData 电芯数据
     * @return 结果
     */
    @Override
    public int insertDaCellData(DaCellData daCellData)
    {
        daCellData.setCreateTime(DateUtils.getNowDate());
        return daCellDataMapper.insertDaCellData(daCellData);
    }
 
    /**
     * 修改电芯数据
     * 
     * @param daCellData 电芯数据
     * @return 结果
     */
    @Override
    public int updateDaCellData(DaCellData daCellData)
    {
        return daCellDataMapper.updateDaCellData(daCellData);
    }
 
    /**
     * 批量删除电芯数据
     * 
     * @param ids 需要删除的电芯数据主键
     * @return 结果
     */
    @Override
    public int deleteDaCellDataByIds(Long[] ids)
    {
        return daCellDataMapper.deleteDaCellDataByIds(ids);
    }
 
    /**
     * 删除电芯数据信息
     * 
     * @param id 电芯数据主键
     * @return 结果
     */
    @Override
    public int deleteDaCellDataById(Long id)
    {
        return daCellDataMapper.deleteDaCellDataById(id);
    }
 
    @Override
    public void insertBatch(List<DaCellData> daCellDataList) {
        try{
            this.saveBatch(daCellDataList);
        }catch (Exception e){
            return;
        }
    }
 
    @Override
    public void deleteDaCellDataByGbCellCode(String gbCellCode) {
        daCellDataMapper.deleteDaCellDataByGbCellCode(gbCellCode);
 
    }
 
    @Override
    public void deleteDaCellDataByCellSerial(String cellSerial) {
        daCellDataMapper.deleteDaCellDataByCellSerial(cellSerial);
    }
}