package com.jcdm.main.rm.repairRecord.service.impl;
|
|
import java.util.List;
|
import com.jcdm.common.utils.DateUtils;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import com.jcdm.main.rm.repairRecord.mapper.RmRepairRecordMapper;
|
import com.jcdm.main.rm.repairRecord.domain.RmRepairRecord;
|
import com.jcdm.main.rm.repairRecord.service.IRmRepairRecordService;
|
|
/**
|
* 返修记录Service业务层处理
|
*
|
* @author Yi
|
* @date 2023-12-22
|
*/
|
@Service
|
public class RmRepairRecordServiceImpl implements IRmRepairRecordService
|
{
|
@Autowired
|
private RmRepairRecordMapper rmRepairRecordMapper;
|
|
/**
|
* 查询返修记录
|
*
|
* @param id 返修记录主键
|
* @return 返修记录
|
*/
|
@Override
|
public RmRepairRecord selectRmRepairRecordById(Long id)
|
{
|
return rmRepairRecordMapper.selectRmRepairRecordById(id);
|
}
|
|
/**
|
* 查询返修记录列表
|
*
|
* @param rmRepairRecord 返修记录
|
* @return 返修记录
|
*/
|
@Override
|
public List<RmRepairRecord> selectRmRepairRecordList(RmRepairRecord rmRepairRecord)
|
{
|
return rmRepairRecordMapper.selectRmRepairRecordList(rmRepairRecord);
|
}
|
|
/**
|
* 新增返修记录
|
*
|
* @param rmRepairRecord 返修记录
|
* @return 结果
|
*/
|
@Override
|
public int insertRmRepairRecord(RmRepairRecord rmRepairRecord)
|
{
|
rmRepairRecord.setCreateTime(DateUtils.getNowDate());
|
return rmRepairRecordMapper.insertRmRepairRecord(rmRepairRecord);
|
}
|
|
/**
|
* 修改返修记录
|
*
|
* @param rmRepairRecord 返修记录
|
* @return 结果
|
*/
|
@Override
|
public int updateRmRepairRecord(RmRepairRecord rmRepairRecord)
|
{
|
rmRepairRecord.setUpdateTime(DateUtils.getNowDate());
|
return rmRepairRecordMapper.updateRmRepairRecord(rmRepairRecord);
|
}
|
|
/**
|
* 批量删除返修记录
|
*
|
* @param ids 需要删除的返修记录主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteRmRepairRecordByIds(Long[] ids)
|
{
|
return rmRepairRecordMapper.deleteRmRepairRecordByIds(ids);
|
}
|
|
/**
|
* 删除返修记录信息
|
*
|
* @param id 返修记录主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteRmRepairRecordById(Long id)
|
{
|
return rmRepairRecordMapper.deleteRmRepairRecordById(id);
|
}
|
}
|