package com.jcdm.main.em.inspectionItems.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.inspectionItems.mapper.EmInspectionItemsMapper;
|
import com.jcdm.main.em.inspectionItems.domain.EmInspectionItems;
|
import com.jcdm.main.em.inspectionItems.service.IEmInspectionItemsService;
|
|
/**
|
* 点检保养项目Service业务层处理
|
*
|
* @author Yi
|
* @date 2024-03-08
|
*/
|
@Service
|
public class EmInspectionItemsServiceImpl extends ServiceImpl<EmInspectionItemsMapper,EmInspectionItems> implements IEmInspectionItemsService
|
{
|
@Autowired
|
private EmInspectionItemsMapper emInspectionItemsMapper;
|
|
/**
|
* 查询点检保养项目
|
*
|
* @param id 点检保养项目主键
|
* @return 点检保养项目
|
*/
|
@Override
|
public EmInspectionItems selectEmInspectionItemsById(Long id)
|
{
|
return emInspectionItemsMapper.selectEmInspectionItemsById(id);
|
}
|
|
/**
|
* 查询点检保养项目列表
|
*
|
* @param emInspectionItems 点检保养项目
|
* @return 点检保养项目
|
*/
|
@Override
|
public List<EmInspectionItems> selectEmInspectionItemsList(EmInspectionItems emInspectionItems)
|
{
|
return emInspectionItemsMapper.selectEmInspectionItemsList(emInspectionItems);
|
}
|
|
/**
|
* 新增点检保养项目
|
*
|
* @param emInspectionItems 点检保养项目
|
* @return 结果
|
*/
|
@Override
|
public int insertEmInspectionItems(EmInspectionItems emInspectionItems)
|
{
|
emInspectionItems.setCreateTime(DateUtils.getNowDate());
|
return emInspectionItemsMapper.insertEmInspectionItems(emInspectionItems);
|
}
|
|
/**
|
* 修改点检保养项目
|
*
|
* @param emInspectionItems 点检保养项目
|
* @return 结果
|
*/
|
@Override
|
public int updateEmInspectionItems(EmInspectionItems emInspectionItems)
|
{
|
emInspectionItems.setUpdateTime(DateUtils.getNowDate());
|
return emInspectionItemsMapper.updateEmInspectionItems(emInspectionItems);
|
}
|
|
/**
|
* 批量删除点检保养项目
|
*
|
* @param ids 需要删除的点检保养项目主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteEmInspectionItemsByIds(Long[] ids)
|
{
|
return emInspectionItemsMapper.deleteEmInspectionItemsByIds(ids);
|
}
|
|
/**
|
* 删除点检保养项目信息
|
*
|
* @param id 点检保养项目主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteEmInspectionItemsById(Long id)
|
{
|
return emInspectionItemsMapper.deleteEmInspectionItemsById(id);
|
}
|
}
|