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);
|
}
|
}
|