提交 | 用户 | 时间
|
61c519
|
1 |
package com.jcdm.main.da.cellData.service.impl; |
A |
2 |
|
|
3 |
import java.util.List; |
|
4 |
|
|
5 |
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
6 |
import com.jcdm.common.utils.DateUtils; |
|
7 |
import org.springframework.beans.factory.annotation.Autowired; |
|
8 |
import org.springframework.stereotype.Service; |
|
9 |
import com.jcdm.main.da.cellData.mapper.DaCellDataMapper; |
|
10 |
import com.jcdm.main.da.cellData.domain.DaCellData; |
|
11 |
import com.jcdm.main.da.cellData.service.IDaCellDataService; |
|
12 |
|
|
13 |
/** |
|
14 |
* 电芯数据Service业务层处理 |
|
15 |
* |
|
16 |
* @author Yi |
|
17 |
* @date 2024-07-03 |
|
18 |
*/ |
|
19 |
@Service |
|
20 |
public class DaCellDataServiceImpl extends ServiceImpl<DaCellDataMapper,DaCellData> implements IDaCellDataService |
|
21 |
{ |
|
22 |
@Autowired |
|
23 |
private DaCellDataMapper daCellDataMapper; |
|
24 |
|
|
25 |
/** |
|
26 |
* 查询电芯数据 |
|
27 |
* |
|
28 |
* @param id 电芯数据主键 |
|
29 |
* @return 电芯数据 |
|
30 |
*/ |
|
31 |
@Override |
|
32 |
public DaCellData selectDaCellDataById(Long id) |
|
33 |
{ |
|
34 |
return daCellDataMapper.selectDaCellDataById(id); |
|
35 |
} |
|
36 |
|
|
37 |
/** |
|
38 |
* 查询电芯数据列表 |
|
39 |
* |
|
40 |
* @param daCellData 电芯数据 |
|
41 |
* @return 电芯数据 |
|
42 |
*/ |
|
43 |
@Override |
|
44 |
public List<DaCellData> selectDaCellDataList(DaCellData daCellData) |
|
45 |
{ |
|
46 |
return daCellDataMapper.selectDaCellDataList(daCellData); |
|
47 |
} |
|
48 |
|
|
49 |
/** |
|
50 |
* 新增电芯数据 |
|
51 |
* |
|
52 |
* @param daCellData 电芯数据 |
|
53 |
* @return 结果 |
|
54 |
*/ |
|
55 |
@Override |
|
56 |
public int insertDaCellData(DaCellData daCellData) |
|
57 |
{ |
|
58 |
daCellData.setCreateTime(DateUtils.getNowDate()); |
|
59 |
return daCellDataMapper.insertDaCellData(daCellData); |
|
60 |
} |
|
61 |
|
|
62 |
/** |
|
63 |
* 修改电芯数据 |
|
64 |
* |
|
65 |
* @param daCellData 电芯数据 |
|
66 |
* @return 结果 |
|
67 |
*/ |
|
68 |
@Override |
|
69 |
public int updateDaCellData(DaCellData daCellData) |
|
70 |
{ |
|
71 |
return daCellDataMapper.updateDaCellData(daCellData); |
|
72 |
} |
|
73 |
|
|
74 |
/** |
|
75 |
* 批量删除电芯数据 |
|
76 |
* |
|
77 |
* @param ids 需要删除的电芯数据主键 |
|
78 |
* @return 结果 |
|
79 |
*/ |
|
80 |
@Override |
|
81 |
public int deleteDaCellDataByIds(Long[] ids) |
|
82 |
{ |
|
83 |
return daCellDataMapper.deleteDaCellDataByIds(ids); |
|
84 |
} |
|
85 |
|
|
86 |
/** |
|
87 |
* 删除电芯数据信息 |
|
88 |
* |
|
89 |
* @param id 电芯数据主键 |
|
90 |
* @return 结果 |
|
91 |
*/ |
|
92 |
@Override |
|
93 |
public int deleteDaCellDataById(Long id) |
|
94 |
{ |
|
95 |
return daCellDataMapper.deleteDaCellDataById(id); |
|
96 |
} |
|
97 |
|
|
98 |
@Override |
|
99 |
public void insertBatch(List<DaCellData> daCellDataList) { |
|
100 |
try{ |
|
101 |
this.saveBatch(daCellDataList); |
|
102 |
}catch (Exception e){ |
|
103 |
return; |
|
104 |
} |
|
105 |
} |
|
106 |
|
|
107 |
@Override |
|
108 |
public void deleteDaCellDataByGbCellCode(String gbCellCode) { |
|
109 |
daCellDataMapper.deleteDaCellDataByGbCellCode(gbCellCode); |
|
110 |
|
|
111 |
} |
be28fb
|
112 |
|
C |
113 |
@Override |
|
114 |
public void deleteDaCellDataByCellSerial(String cellSerial) { |
|
115 |
daCellDataMapper.deleteDaCellDataByCellSerial(cellSerial); |
|
116 |
} |
|
117 |
|
61c519
|
118 |
} |