监控点信息以及预警信息
This commit is contained in:
parent
d66d807faf
commit
042100b245
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.dkl.large.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.dkl.large.domain.DklWarningInformation;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 预警信息Service接口
|
||||||
|
*
|
||||||
|
* @author Dkl
|
||||||
|
* @date 2025-06-16
|
||||||
|
*/
|
||||||
|
public interface IDklWarningInformationService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询预警信息
|
||||||
|
*
|
||||||
|
* @param id 预警信息主键
|
||||||
|
* @return 预警信息
|
||||||
|
*/
|
||||||
|
public DklWarningInformation selectDklWarningInformationById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询预警信息列表
|
||||||
|
*
|
||||||
|
* @param dklWarningInformation 预警信息
|
||||||
|
* @return 预警信息集合
|
||||||
|
*/
|
||||||
|
public List<DklWarningInformation> selectDklWarningInformationList(DklWarningInformation dklWarningInformation);
|
||||||
|
public List<DklWarningInformation> selectDklWarningInformationLists(DklWarningInformation dklWarningInformation);
|
||||||
|
/**
|
||||||
|
* 新增预警信息
|
||||||
|
*
|
||||||
|
* @param dklWarningInformation 预警信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertDklWarningInformation(DklWarningInformation dklWarningInformation);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改预警信息
|
||||||
|
*
|
||||||
|
* @param dklWarningInformation 预警信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateDklWarningInformation(DklWarningInformation dklWarningInformation);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除预警信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的预警信息主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDklWarningInformationByIds(int[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除预警信息信息
|
||||||
|
*
|
||||||
|
* @param id 预警信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDklWarningInformationById(int id);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,99 @@
|
||||||
|
package com.dkl.large.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.dkl.common.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.dkl.large.mapper.DklWarningInformationMapper;
|
||||||
|
import com.dkl.large.domain.DklWarningInformation;
|
||||||
|
import com.dkl.large.service.IDklWarningInformationService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 预警信息Service业务层处理
|
||||||
|
*
|
||||||
|
* @author Dkl
|
||||||
|
* @date 2025-06-16
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class DklWarningInformationServiceImpl implements IDklWarningInformationService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private DklWarningInformationMapper dklWarningInformationMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询预警信息
|
||||||
|
*
|
||||||
|
* @param id 预警信息主键
|
||||||
|
* @return 预警信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public DklWarningInformation selectDklWarningInformationById(Long id)
|
||||||
|
{
|
||||||
|
return dklWarningInformationMapper.selectDklWarningInformationById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询预警信息列表
|
||||||
|
*
|
||||||
|
* @param dklWarningInformation 预警信息
|
||||||
|
* @return 预警信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<DklWarningInformation> selectDklWarningInformationList(DklWarningInformation dklWarningInformation)
|
||||||
|
{
|
||||||
|
return dklWarningInformationMapper.selectDklWarningInformationList(dklWarningInformation);
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public List<DklWarningInformation> selectDklWarningInformationLists(DklWarningInformation dklWarningInformation)
|
||||||
|
{
|
||||||
|
return dklWarningInformationMapper.selectDklWarningInformationLists(dklWarningInformation);
|
||||||
|
} /**
|
||||||
|
* 新增预警信息
|
||||||
|
*
|
||||||
|
* @param dklWarningInformation 预警信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertDklWarningInformation(DklWarningInformation dklWarningInformation)
|
||||||
|
{
|
||||||
|
dklWarningInformation.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return dklWarningInformationMapper.insertDklWarningInformation(dklWarningInformation);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改预警信息
|
||||||
|
*
|
||||||
|
* @param dklWarningInformation 预警信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateDklWarningInformation(DklWarningInformation dklWarningInformation)
|
||||||
|
{
|
||||||
|
dklWarningInformation.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return dklWarningInformationMapper.updateDklWarningInformation(dklWarningInformation);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除预警信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的预警信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteDklWarningInformationByIds(int[] ids)
|
||||||
|
{
|
||||||
|
return dklWarningInformationMapper.deleteDklWarningInformationByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除预警信息信息
|
||||||
|
*
|
||||||
|
* @param id 预警信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteDklWarningInformationById(int id)
|
||||||
|
{
|
||||||
|
return dklWarningInformationMapper.deleteDklWarningInformationById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue