package com.jcdm.main.em.inspectionPlan.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.inspectionPlan.mapper.EmInspectionPlanMapper;
|
import com.jcdm.main.em.inspectionPlan.domain.EmInspectionPlan;
|
import com.jcdm.main.em.inspectionPlan.service.IEmInspectionPlanService;
|
|
/**
|
* 点检保养计划Service业务层处理
|
*
|
* @author Yi
|
* @date 2024-03-08
|
*/
|
@Service
|
public class EmInspectionPlanServiceImpl extends ServiceImpl<EmInspectionPlanMapper,EmInspectionPlan> implements IEmInspectionPlanService
|
{
|
@Autowired
|
private EmInspectionPlanMapper emInspectionPlanMapper;
|
|
/**
|
* 查询点检保养计划
|
*
|
* @param id 点检保养计划主键
|
* @return 点检保养计划
|
*/
|
@Override
|
public EmInspectionPlan selectEmInspectionPlanById(Long id)
|
{
|
return emInspectionPlanMapper.selectEmInspectionPlanById(id);
|
}
|
|
/**
|
* 查询点检保养计划列表
|
*
|
* @param emInspectionPlan 点检保养计划
|
* @return 点检保养计划
|
*/
|
@Override
|
public List<EmInspectionPlan> selectEmInspectionPlanList(EmInspectionPlan emInspectionPlan)
|
{
|
return emInspectionPlanMapper.selectEmInspectionPlanList(emInspectionPlan);
|
}
|
|
/**
|
* 新增点检保养计划
|
*
|
* @param emInspectionPlan 点检保养计划
|
* @return 结果
|
*/
|
@Override
|
public int insertEmInspectionPlan(EmInspectionPlan emInspectionPlan)
|
{
|
emInspectionPlan.setCreateTime(DateUtils.getNowDate());
|
return emInspectionPlanMapper.insertEmInspectionPlan(emInspectionPlan);
|
}
|
|
/**
|
* 修改点检保养计划
|
*
|
* @param emInspectionPlan 点检保养计划
|
* @return 结果
|
*/
|
@Override
|
public int updateEmInspectionPlan(EmInspectionPlan emInspectionPlan)
|
{
|
emInspectionPlan.setUpdateTime(DateUtils.getNowDate());
|
return emInspectionPlanMapper.updateEmInspectionPlan(emInspectionPlan);
|
}
|
|
/**
|
* 批量删除点检保养计划
|
*
|
* @param ids 需要删除的点检保养计划主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteEmInspectionPlanByIds(Long[] ids)
|
{
|
return emInspectionPlanMapper.deleteEmInspectionPlanByIds(ids);
|
}
|
|
/**
|
* 删除点检保养计划信息
|
*
|
* @param id 点检保养计划主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteEmInspectionPlanById(Long id)
|
{
|
return emInspectionPlanMapper.deleteEmInspectionPlanById(id);
|
}
|
}
|