package com.jcdm.main.em.inspectionPlanInfo.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.em.inspectionPlanInfo.mapper.EmInspectionPlanInfoMapper;
|
import com.jcdm.main.em.inspectionPlanInfo.domain.EmInspectionPlanInfo;
|
import com.jcdm.main.em.inspectionPlanInfo.service.IEmInspectionPlanInfoService;
|
|
/**
|
* 设备点检保养计划Service业务层处理
|
*
|
* @author Yi
|
* @date 2024-03-19
|
*/
|
@Service
|
public class EmInspectionPlanInfoServiceImpl implements IEmInspectionPlanInfoService
|
{
|
@Autowired
|
private EmInspectionPlanInfoMapper emInspectionPlanInfoMapper;
|
|
/**
|
* 查询设备点检保养计划
|
*
|
* @param id 设备点检保养计划主键
|
* @return 设备点检保养计划
|
*/
|
@Override
|
public EmInspectionPlanInfo selectEmInspectionPlanInfoById(Long id)
|
{
|
return emInspectionPlanInfoMapper.selectEmInspectionPlanInfoById(id);
|
}
|
|
/**
|
* 查询设备点检保养计划列表
|
*
|
* @param emInspectionPlanInfo 设备点检保养计划
|
* @return 设备点检保养计划
|
*/
|
@Override
|
public List<EmInspectionPlanInfo> selectEmInspectionPlanInfoList(EmInspectionPlanInfo emInspectionPlanInfo)
|
{
|
return emInspectionPlanInfoMapper.selectEmInspectionPlanInfoList(emInspectionPlanInfo);
|
}
|
|
/**
|
* 新增设备点检保养计划
|
*
|
* @param emInspectionPlanInfo 设备点检保养计划
|
* @return 结果
|
*/
|
@Override
|
public int insertEmInspectionPlanInfo(EmInspectionPlanInfo emInspectionPlanInfo)
|
{
|
emInspectionPlanInfo.setCreateTime(DateUtils.getNowDate());
|
return emInspectionPlanInfoMapper.insertEmInspectionPlanInfo(emInspectionPlanInfo);
|
}
|
|
/**
|
* 修改设备点检保养计划
|
*
|
* @param emInspectionPlanInfo 设备点检保养计划
|
* @return 结果
|
*/
|
@Override
|
public int updateEmInspectionPlanInfo(EmInspectionPlanInfo emInspectionPlanInfo)
|
{
|
emInspectionPlanInfo.setUpdateTime(DateUtils.getNowDate());
|
return emInspectionPlanInfoMapper.updateEmInspectionPlanInfo(emInspectionPlanInfo);
|
}
|
|
/**
|
* 批量删除设备点检保养计划
|
*
|
* @param ids 需要删除的设备点检保养计划主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteEmInspectionPlanInfoByIds(Long[] ids)
|
{
|
return emInspectionPlanInfoMapper.deleteEmInspectionPlanInfoByIds(ids);
|
}
|
|
/**
|
* 删除设备点检保养计划信息
|
*
|
* @param id 设备点检保养计划主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteEmInspectionPlanInfoById(Long id)
|
{
|
return emInspectionPlanInfoMapper.deleteEmInspectionPlanInfoById(id);
|
}
|
}
|