package com.jcdm.main.em.inspectionPlanItems.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.inspectionPlanItems.mapper.EmInspectionPlanItemsMapper;
|
import com.jcdm.main.em.inspectionPlanItems.domain.EmInspectionPlanItems;
|
import com.jcdm.main.em.inspectionPlanItems.service.IEmInspectionPlanItemsService;
|
|
/**
|
* 点检保养计划点检项目子Service业务层处理
|
*
|
* @author Yi
|
* @date 2024-03-13
|
*/
|
@Service
|
public class EmInspectionPlanItemsServiceImpl implements IEmInspectionPlanItemsService
|
{
|
@Autowired
|
private EmInspectionPlanItemsMapper emInspectionPlanItemsMapper;
|
|
/**
|
* 查询点检保养计划点检项目子
|
*
|
* @param id 点检保养计划点检项目子主键
|
* @return 点检保养计划点检项目子
|
*/
|
@Override
|
public EmInspectionPlanItems selectEmInspectionPlanItemsById(Long id)
|
{
|
return emInspectionPlanItemsMapper.selectEmInspectionPlanItemsById(id);
|
}
|
|
/**
|
* 查询点检保养计划点检项目子列表
|
*
|
* @param emInspectionPlanItems 点检保养计划点检项目子
|
* @return 点检保养计划点检项目子
|
*/
|
@Override
|
public List<EmInspectionPlanItems> selectEmInspectionPlanItemsList(EmInspectionPlanItems emInspectionPlanItems)
|
{
|
return emInspectionPlanItemsMapper.selectEmInspectionPlanItemsList(emInspectionPlanItems);
|
}
|
|
/**
|
* 新增点检保养计划点检项目子
|
*
|
* @param emInspectionPlanItems 点检保养计划点检项目子
|
* @return 结果
|
*/
|
@Override
|
public int insertEmInspectionPlanItems(EmInspectionPlanItems emInspectionPlanItems)
|
{
|
emInspectionPlanItems.setCreateTime(DateUtils.getNowDate());
|
return emInspectionPlanItemsMapper.insertEmInspectionPlanItems(emInspectionPlanItems);
|
}
|
|
/**
|
* 修改点检保养计划点检项目子
|
*
|
* @param emInspectionPlanItems 点检保养计划点检项目子
|
* @return 结果
|
*/
|
@Override
|
public int updateEmInspectionPlanItems(EmInspectionPlanItems emInspectionPlanItems)
|
{
|
emInspectionPlanItems.setUpdateTime(DateUtils.getNowDate());
|
return emInspectionPlanItemsMapper.updateEmInspectionPlanItems(emInspectionPlanItems);
|
}
|
|
/**
|
* 批量删除点检保养计划点检项目子
|
*
|
* @param ids 需要删除的点检保养计划点检项目子主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteEmInspectionPlanItemsByIds(Long[] ids)
|
{
|
return emInspectionPlanItemsMapper.deleteEmInspectionPlanItemsByIds(ids);
|
}
|
|
/**
|
* 删除点检保养计划点检项目子信息
|
*
|
* @param id 点检保养计划点检项目子主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteEmInspectionPlanItemsById(Long id)
|
{
|
return emInspectionPlanItemsMapper.deleteEmInspectionPlanItemsById(id);
|
}
|
}
|