package com.jcdm.main.da.paramCollectionTemp.service.impl;
|
|
import java.util.List;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.jcdm.common.utils.DateUtils;
|
import com.jcdm.main.da.paramCollection.domain.DaParamCollection;
|
import com.jcdm.main.da.paramCollection.mapper.DaParamCollectionMapper;
|
import com.jcdm.main.da.paramCollection.service.IDaParamCollectionService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import com.jcdm.main.da.paramCollectionTemp.mapper.DaParamCollectionTempMapper;
|
import com.jcdm.main.da.paramCollectionTemp.domain.DaParamCollectionTemp;
|
import com.jcdm.main.da.paramCollectionTemp.service.IDaParamCollectionTempService;
|
|
/**
|
* 设备产品过程参数采集临时表Service业务层处理
|
*
|
* @author Yi
|
* @date 2024-06-13
|
*/
|
@Service
|
public class DaParamCollectionTempServiceImpl extends ServiceImpl<DaParamCollectionTempMapper, DaParamCollectionTemp> implements IDaParamCollectionTempService
|
{
|
@Autowired
|
private DaParamCollectionTempMapper daParamCollectionTempMapper;
|
|
/**
|
* 查询设备产品过程参数采集临时表
|
*
|
* @param id 设备产品过程参数采集临时表主键
|
* @return 设备产品过程参数采集临时表
|
*/
|
@Override
|
public DaParamCollectionTemp selectDaParamCollectionTempById(Long id)
|
{
|
return daParamCollectionTempMapper.selectDaParamCollectionTempById(id);
|
}
|
|
/**
|
* 查询设备产品过程参数采集临时表列表
|
*
|
* @param daParamCollectionTemp 设备产品过程参数采集临时表
|
* @return 设备产品过程参数采集临时表
|
*/
|
@Override
|
public List<DaParamCollectionTemp> selectDaParamCollectionTempList(DaParamCollectionTemp daParamCollectionTemp)
|
{
|
return daParamCollectionTempMapper.selectDaParamCollectionTempList(daParamCollectionTemp);
|
}
|
|
/**
|
* 新增设备产品过程参数采集临时表
|
*
|
* @param daParamCollectionTemp 设备产品过程参数采集临时表
|
* @return 结果
|
*/
|
@Override
|
public int insertDaParamCollectionTemp(DaParamCollectionTemp daParamCollectionTemp)
|
{
|
daParamCollectionTemp.setCreateTime(DateUtils.getNowDate());
|
return daParamCollectionTempMapper.insertDaParamCollectionTemp(daParamCollectionTemp);
|
}
|
|
/**
|
* 修改设备产品过程参数采集临时表
|
*
|
* @param daParamCollectionTemp 设备产品过程参数采集临时表
|
* @return 结果
|
*/
|
@Override
|
public int updateDaParamCollectionTemp(DaParamCollectionTemp daParamCollectionTemp)
|
{
|
daParamCollectionTemp.setUpdateTime(DateUtils.getNowDate());
|
return daParamCollectionTempMapper.updateDaParamCollectionTemp(daParamCollectionTemp);
|
}
|
|
/**
|
* 批量删除设备产品过程参数采集临时表
|
*
|
* @param ids 需要删除的设备产品过程参数采集临时表主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteDaParamCollectionTempByIds(Long[] ids)
|
{
|
return daParamCollectionTempMapper.deleteDaParamCollectionTempByIds(ids);
|
}
|
|
@Override
|
public int deleteDaParamCollectionTempBySfcCodeAndLocationCode(DaParamCollectionTemp daParamCollectionTemp) {
|
return daParamCollectionTempMapper.deleteDaParamCollectionTempBySfcCodeAndLocationCode(daParamCollectionTemp);
|
}
|
|
/**
|
* 删除设备产品过程参数采集临时表信息
|
*
|
* @param id 设备产品过程参数采集临时表主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteDaParamCollectionTempById(Long id)
|
{
|
return daParamCollectionTempMapper.deleteDaParamCollectionTempById(id);
|
}
|
}
|