package com.jcdm.main.om.workReport.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.om.workReport.mapper.OmWorkReportMapper;
|
import com.jcdm.main.om.workReport.domain.OmWorkReport;
|
import com.jcdm.main.om.workReport.service.IOmWorkReportService;
|
|
/**
|
* 报工记录 表Service业务层处理
|
*
|
* @author Yi
|
* @date 2023-12-12
|
*/
|
@Service
|
public class OmWorkReportServiceImpl implements IOmWorkReportService
|
{
|
@Autowired
|
private OmWorkReportMapper omWorkReportMapper;
|
|
/**
|
* 查询报工记录 表
|
*
|
* @param id 报工记录 表主键
|
* @return 报工记录 表
|
*/
|
@Override
|
public OmWorkReport selectOmWorkReportById(Long id)
|
{
|
return omWorkReportMapper.selectOmWorkReportById(id);
|
}
|
|
/**
|
* 查询报工记录 表列表
|
*
|
* @param omWorkReport 报工记录 表
|
* @return 报工记录 表
|
*/
|
@Override
|
public List<OmWorkReport> selectOmWorkReportList(OmWorkReport omWorkReport)
|
{
|
return omWorkReportMapper.selectOmWorkReportList(omWorkReport);
|
}
|
|
/**
|
* 新增报工记录 表
|
*
|
* @param omWorkReport 报工记录 表
|
* @return 结果
|
*/
|
@Override
|
public int insertOmWorkReport(OmWorkReport omWorkReport)
|
{
|
omWorkReport.setCreateTime(DateUtils.getNowDate());
|
return omWorkReportMapper.insertOmWorkReport(omWorkReport);
|
}
|
|
/**
|
* 修改报工记录 表
|
*
|
* @param omWorkReport 报工记录 表
|
* @return 结果
|
*/
|
@Override
|
public int updateOmWorkReport(OmWorkReport omWorkReport)
|
{
|
omWorkReport.setUpdateTime(DateUtils.getNowDate());
|
return omWorkReportMapper.updateOmWorkReport(omWorkReport);
|
}
|
|
/**
|
* 批量删除报工记录 表
|
*
|
* @param ids 需要删除的报工记录 表主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteOmWorkReportByIds(Long[] ids)
|
{
|
return omWorkReportMapper.deleteOmWorkReportByIds(ids);
|
}
|
|
/**
|
* 删除报工记录 表信息
|
*
|
* @param id 报工记录 表主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteOmWorkReportById(Long id)
|
{
|
return omWorkReportMapper.deleteOmWorkReportById(id);
|
}
|
}
|