package com.jcdm.main.rm.repairData.service.impl;
|
|
import com.jcdm.common.utils.DateUtils;
|
import com.jcdm.main.rm.repairData.domain.RmRepairData;
|
import com.jcdm.main.rm.repairData.mapper.RmRepairDataMapper;
|
import com.jcdm.main.rm.repairData.service.IRmRepairDataService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
/**
|
* 返修数据Service业务层处理
|
*
|
* @author Yi
|
* @date 2023-12-22
|
*/
|
@Service
|
public class RmRepairDataServiceImpl implements IRmRepairDataService
|
{
|
@Autowired
|
private RmRepairDataMapper rmRepairDataMapper;
|
|
/**
|
* 查询返修数据
|
*
|
* @param id 返修数据主键
|
* @return 返修数据
|
*/
|
@Override
|
public RmRepairData selectRmRepairDataById(Long id)
|
{
|
return rmRepairDataMapper.selectRmRepairDataById(id);
|
}
|
|
/**
|
* 查询返修数据列表
|
*
|
* @param rmRepairData 返修数据
|
* @return 返修数据
|
*/
|
@Override
|
public List<RmRepairData> selectRmRepairDataList(RmRepairData rmRepairData)
|
{
|
return rmRepairDataMapper.selectRmRepairDataList(rmRepairData);
|
}
|
|
/**
|
* 新增返修数据
|
*
|
* @param rmRepairData 返修数据
|
* @return 结果
|
*/
|
@Override
|
public int insertRmRepairData(RmRepairData rmRepairData)
|
{
|
rmRepairData.setCreateTime(DateUtils.getNowDate());
|
return rmRepairDataMapper.insertRmRepairData(rmRepairData);
|
}
|
|
/**
|
* 修改返修数据
|
*
|
* @param rmRepairData 返修数据
|
* @return 结果
|
*/
|
@Override
|
public int updateRmRepairData(RmRepairData rmRepairData)
|
{
|
rmRepairData.setUpdateTime(DateUtils.getNowDate());
|
return rmRepairDataMapper.updateRmRepairData(rmRepairData);
|
}
|
|
/**
|
* 批量删除返修数据
|
*
|
* @param ids 需要删除的返修数据主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteRmRepairDataByIds(Long[] ids)
|
{
|
return rmRepairDataMapper.deleteRmRepairDataByIds(ids);
|
}
|
|
/**
|
* 删除返修数据信息
|
*
|
* @param id 返修数据主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteRmRepairDataById(Long id)
|
{
|
return rmRepairDataMapper.deleteRmRepairDataById(id);
|
}
|
}
|