package com.jcdm.main.em.inspectionPlanTask.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.inspectionPlanTask.mapper.EmInspectionPlanTaskMapper;
|
import com.jcdm.main.em.inspectionPlanTask.domain.EmInspectionPlanTask;
|
import com.jcdm.main.em.inspectionPlanTask.service.IEmInspectionPlanTaskService;
|
|
/**
|
* 点检任务Service业务层处理
|
*
|
* @author Yi
|
* @date 2024-03-23
|
*/
|
@Service
|
public class EmInspectionPlanTaskServiceImpl extends ServiceImpl<EmInspectionPlanTaskMapper,EmInspectionPlanTask> implements IEmInspectionPlanTaskService
|
{
|
@Autowired
|
private EmInspectionPlanTaskMapper emInspectionPlanTaskMapper;
|
|
/**
|
* 查询点检任务
|
*
|
* @param id 点检任务主键
|
* @return 点检任务
|
*/
|
@Override
|
public EmInspectionPlanTask selectEmInspectionPlanTaskById(Long id)
|
{
|
return emInspectionPlanTaskMapper.selectEmInspectionPlanTaskById(id);
|
}
|
|
/**
|
* 查询点检任务列表
|
*
|
* @param emInspectionPlanTask 点检任务
|
* @return 点检任务
|
*/
|
@Override
|
public List<EmInspectionPlanTask> selectEmInspectionPlanTaskList(EmInspectionPlanTask emInspectionPlanTask)
|
{
|
return emInspectionPlanTaskMapper.selectEmInspectionPlanTaskList(emInspectionPlanTask);
|
}
|
|
/**
|
* 新增点检任务
|
*
|
* @param emInspectionPlanTask 点检任务
|
* @return 结果
|
*/
|
@Override
|
public int insertEmInspectionPlanTask(EmInspectionPlanTask emInspectionPlanTask)
|
{
|
emInspectionPlanTask.setCreateTime(DateUtils.getNowDate());
|
return emInspectionPlanTaskMapper.insertEmInspectionPlanTask(emInspectionPlanTask);
|
}
|
|
/**
|
* 修改点检任务
|
*
|
* @param emInspectionPlanTask 点检任务
|
* @return 结果
|
*/
|
@Override
|
public int updateEmInspectionPlanTask(EmInspectionPlanTask emInspectionPlanTask)
|
{
|
emInspectionPlanTask.setUpdateTime(DateUtils.getNowDate());
|
return emInspectionPlanTaskMapper.updateEmInspectionPlanTask(emInspectionPlanTask);
|
}
|
|
/**
|
* 批量删除点检任务
|
*
|
* @param ids 需要删除的点检任务主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteEmInspectionPlanTaskByIds(Long[] ids)
|
{
|
return emInspectionPlanTaskMapper.deleteEmInspectionPlanTaskByIds(ids);
|
}
|
|
/**
|
* 删除点检任务信息
|
*
|
* @param id 点检任务主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteEmInspectionPlanTaskById(Long id)
|
{
|
return emInspectionPlanTaskMapper.deleteEmInspectionPlanTaskById(id);
|
}
|
}
|