package com.jcdm.main.em.inspectionPlanItemsProject.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.inspectionPlanItemsProject.mapper.EmInspectionPlanItemsProjectMapper;
|
import com.jcdm.main.em.inspectionPlanItemsProject.domain.EmInspectionPlanItemsProject;
|
import com.jcdm.main.em.inspectionPlanItemsProject.service.IEmInspectionPlanItemsProjectService;
|
|
/**
|
* 点检任务-项目Service业务层处理
|
*
|
* @author Yi
|
* @date 2024-03-23
|
*/
|
@Service
|
public class EmInspectionPlanItemsProjectServiceImpl extends ServiceImpl<EmInspectionPlanItemsProjectMapper,EmInspectionPlanItemsProject> implements IEmInspectionPlanItemsProjectService
|
{
|
@Autowired
|
private EmInspectionPlanItemsProjectMapper emInspectionPlanItemsProjectMapper;
|
|
/**
|
* 查询点检任务-项目
|
*
|
* @param id 点检任务-项目主键
|
* @return 点检任务-项目
|
*/
|
@Override
|
public EmInspectionPlanItemsProject selectEmInspectionPlanItemsProjectById(Long id)
|
{
|
return emInspectionPlanItemsProjectMapper.selectEmInspectionPlanItemsProjectById(id);
|
}
|
|
/**
|
* 查询点检任务-项目列表
|
*
|
* @param emInspectionPlanItemsProject 点检任务-项目
|
* @return 点检任务-项目
|
*/
|
@Override
|
public List<EmInspectionPlanItemsProject> selectEmInspectionPlanItemsProjectList(EmInspectionPlanItemsProject emInspectionPlanItemsProject)
|
{
|
return emInspectionPlanItemsProjectMapper.selectEmInspectionPlanItemsProjectList(emInspectionPlanItemsProject);
|
}
|
|
/**
|
* 新增点检任务-项目
|
*
|
* @param emInspectionPlanItemsProject 点检任务-项目
|
* @return 结果
|
*/
|
@Override
|
public int insertEmInspectionPlanItemsProject(EmInspectionPlanItemsProject emInspectionPlanItemsProject)
|
{
|
emInspectionPlanItemsProject.setCreateTime(DateUtils.getNowDate());
|
return emInspectionPlanItemsProjectMapper.insertEmInspectionPlanItemsProject(emInspectionPlanItemsProject);
|
}
|
|
/**
|
* 修改点检任务-项目
|
*
|
* @param emInspectionPlanItemsProject 点检任务-项目
|
* @return 结果
|
*/
|
@Override
|
public int updateEmInspectionPlanItemsProject(EmInspectionPlanItemsProject emInspectionPlanItemsProject)
|
{
|
emInspectionPlanItemsProject.setUpdateTime(DateUtils.getNowDate());
|
return emInspectionPlanItemsProjectMapper.updateEmInspectionPlanItemsProject(emInspectionPlanItemsProject);
|
}
|
|
/**
|
* 批量删除点检任务-项目
|
*
|
* @param ids 需要删除的点检任务-项目主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteEmInspectionPlanItemsProjectByIds(Long[] ids)
|
{
|
return emInspectionPlanItemsProjectMapper.deleteEmInspectionPlanItemsProjectByIds(ids);
|
}
|
|
/**
|
* 删除点检任务-项目信息
|
*
|
* @param id 点检任务-项目主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteEmInspectionPlanItemsProjectById(Long id)
|
{
|
return emInspectionPlanItemsProjectMapper.deleteEmInspectionPlanItemsProjectById(id);
|
}
|
}
|