package com.jcdm.main.em.inspectionPlanArchives.service.impl;
|
|
import java.util.List;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.jcdm.common.utils.DateUtils;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import com.jcdm.main.em.inspectionPlanArchives.mapper.EmInspectionPlanArchivesMapper;
|
import com.jcdm.main.em.inspectionPlanArchives.domain.EmInspectionPlanArchives;
|
import com.jcdm.main.em.inspectionPlanArchives.service.IEmInspectionPlanArchivesService;
|
|
/**
|
* 点检保养计划设备清单Service业务层处理
|
*
|
* @author Yi
|
* @date 2024-03-14
|
*/
|
@Service
|
public class EmInspectionPlanArchivesServiceImpl extends ServiceImpl<EmInspectionPlanArchivesMapper,EmInspectionPlanArchives> implements IEmInspectionPlanArchivesService
|
{
|
@Autowired
|
private EmInspectionPlanArchivesMapper emInspectionPlanArchivesMapper;
|
|
/**
|
* 查询点检保养计划设备清单
|
*
|
* @param id 点检保养计划设备清单主键
|
* @return 点检保养计划设备清单
|
*/
|
@Override
|
public EmInspectionPlanArchives selectEmInspectionPlanArchivesById(Long id)
|
{
|
return emInspectionPlanArchivesMapper.selectEmInspectionPlanArchivesById(id);
|
}
|
|
/**
|
* 查询点检保养计划设备清单列表
|
*
|
* @param emInspectionPlanArchives 点检保养计划设备清单
|
* @return 点检保养计划设备清单
|
*/
|
@Override
|
public List<EmInspectionPlanArchives> selectEmInspectionPlanArchivesList(EmInspectionPlanArchives emInspectionPlanArchives)
|
{
|
return emInspectionPlanArchivesMapper.selectEmInspectionPlanArchivesList(emInspectionPlanArchives);
|
}
|
|
/**
|
* 新增点检保养计划设备清单
|
*
|
* @param emInspectionPlanArchives 点检保养计划设备清单
|
* @return 结果
|
*/
|
@Override
|
public int insertEmInspectionPlanArchives(EmInspectionPlanArchives emInspectionPlanArchives)
|
{
|
emInspectionPlanArchives.setCreateTime(DateUtils.getNowDate());
|
return emInspectionPlanArchivesMapper.insertEmInspectionPlanArchives(emInspectionPlanArchives);
|
}
|
|
/**
|
* 修改点检保养计划设备清单
|
*
|
* @param emInspectionPlanArchives 点检保养计划设备清单
|
* @return 结果
|
*/
|
@Override
|
public int updateEmInspectionPlanArchives(EmInspectionPlanArchives emInspectionPlanArchives)
|
{
|
emInspectionPlanArchives.setUpdateTime(DateUtils.getNowDate());
|
return emInspectionPlanArchivesMapper.updateEmInspectionPlanArchives(emInspectionPlanArchives);
|
}
|
|
/**
|
* 批量删除点检保养计划设备清单
|
*
|
* @param ids 需要删除的点检保养计划设备清单主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteEmInspectionPlanArchivesByIds(Long[] ids)
|
{
|
return emInspectionPlanArchivesMapper.deleteEmInspectionPlanArchivesByIds(ids);
|
}
|
|
/**
|
* 删除点检保养计划设备清单信息
|
*
|
* @param id 点检保养计划设备清单主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteEmInspectionPlanArchivesById(Long id)
|
{
|
return emInspectionPlanArchivesMapper.deleteEmInspectionPlanArchivesById(id);
|
}
|
}
|