package com.ruoyi.project.dc.factoryEvacuation.service.impl;
|
|
import java.util.List;
|
import com.ruoyi.common.utils.DateUtils;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import com.ruoyi.project.dc.factoryEvacuation.mapper.FactoryEvacuationMapper;
|
import com.ruoyi.project.dc.factoryEvacuation.domain.FactoryEvacuation;
|
import com.ruoyi.project.dc.factoryEvacuation.service.IFactoryEvacuationService;
|
import com.ruoyi.common.utils.text.Convert;
|
|
/**
|
* 厂区疏散Service业务层处理
|
*
|
* @author wm
|
* @date 2020-12-07
|
*/
|
@Service
|
public class FactoryEvacuationServiceImpl implements IFactoryEvacuationService
|
{
|
@Autowired
|
private FactoryEvacuationMapper factoryEvacuationMapper;
|
|
/**
|
* 查询厂区疏散
|
*
|
* @param factoryEvacuationId 厂区疏散ID
|
* @return 厂区疏散
|
*/
|
@Override
|
public FactoryEvacuation selectFactoryEvacuationById(Long factoryEvacuationId)
|
{
|
return factoryEvacuationMapper.selectFactoryEvacuationById(factoryEvacuationId);
|
}
|
|
/**
|
* 查询厂区疏散列表
|
*
|
* @param factoryEvacuation 厂区疏散
|
* @return 厂区疏散
|
*/
|
@Override
|
public List<FactoryEvacuation> selectFactoryEvacuationList(FactoryEvacuation factoryEvacuation)
|
{
|
return factoryEvacuationMapper.selectFactoryEvacuationList(factoryEvacuation);
|
}
|
|
/**
|
* 新增厂区疏散
|
*
|
* @param factoryEvacuation 厂区疏散
|
* @return 结果
|
*/
|
@Override
|
public int insertFactoryEvacuation(FactoryEvacuation factoryEvacuation)
|
{
|
factoryEvacuation.setCreateTime(DateUtils.getNowDate());
|
return factoryEvacuationMapper.insertFactoryEvacuation(factoryEvacuation);
|
}
|
|
/**
|
* 修改厂区疏散
|
*
|
* @param factoryEvacuation 厂区疏散
|
* @return 结果
|
*/
|
@Override
|
public int updateFactoryEvacuation(FactoryEvacuation factoryEvacuation)
|
{
|
factoryEvacuation.setUpdateTime(DateUtils.getNowDate());
|
return factoryEvacuationMapper.updateFactoryEvacuation(factoryEvacuation);
|
}
|
|
/**
|
* 删除厂区疏散对象
|
*
|
* @param ids 需要删除的数据ID
|
* @return 结果
|
*/
|
@Override
|
public int deleteFactoryEvacuationByIds(String ids)
|
{
|
return factoryEvacuationMapper.deleteFactoryEvacuationByIds(Convert.toStrArray(ids));
|
}
|
|
/**
|
* 删除厂区疏散信息
|
*
|
* @param factoryEvacuationId 厂区疏散ID
|
* @return 结果
|
*/
|
@Override
|
public int deleteFactoryEvacuationById(Long factoryEvacuationId)
|
{
|
return factoryEvacuationMapper.deleteFactoryEvacuationById(factoryEvacuationId);
|
}
|
}
|