风险预警信息实现类
This commit is contained in:
parent
e9fdd5a876
commit
4abfba7a2e
|
|
@ -0,0 +1,97 @@
|
|||
package com.dkl.large.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.dkl.common.utils.DateUtils;
|
||||
import com.dkl.large.domain.DklWeather;
|
||||
import com.dkl.large.mapper.DklWeatherMapper;
|
||||
import com.dkl.large.service.IDklWeatherService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* 天气信息Service业务层处理
|
||||
*
|
||||
* @author Dkl
|
||||
* @date 2025-11-03
|
||||
*/
|
||||
@Service
|
||||
public class DklWeatherServiceImpl implements IDklWeatherService
|
||||
{
|
||||
@Autowired
|
||||
private DklWeatherMapper dklWeatherMapper;
|
||||
|
||||
/**
|
||||
* 查询天气信息
|
||||
*
|
||||
* @param id 天气信息主键
|
||||
* @return 天气信息
|
||||
*/
|
||||
@Override
|
||||
public DklWeather selectDklWeatherById(Long id)
|
||||
{
|
||||
return dklWeatherMapper.selectDklWeatherById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询天气信息列表
|
||||
*
|
||||
* @param dklWeather 天气信息
|
||||
* @return 天气信息
|
||||
*/
|
||||
@Override
|
||||
public List<DklWeather> selectDklWeatherList(DklWeather dklWeather)
|
||||
{
|
||||
return dklWeatherMapper.selectDklWeatherList(dklWeather);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增天气信息
|
||||
*
|
||||
* @param dklWeather 天气信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDklWeather(DklWeather dklWeather)
|
||||
{
|
||||
dklWeather.setCreateTime(DateUtils.getNowDate());
|
||||
return dklWeatherMapper.insertDklWeather(dklWeather);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改天气信息
|
||||
*
|
||||
* @param dklWeather 天气信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDklWeather(DklWeather dklWeather)
|
||||
{
|
||||
dklWeather.setUpdateTime(DateUtils.getNowDate());
|
||||
return dklWeatherMapper.updateDklWeather(dklWeather);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除天气信息
|
||||
*
|
||||
* @param ids 需要删除的天气信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDklWeatherByIds(Long[] ids)
|
||||
{
|
||||
return dklWeatherMapper.deleteDklWeatherByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除天气信息信息
|
||||
*
|
||||
* @param id 天气信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDklWeatherById(Long id)
|
||||
{
|
||||
return dklWeatherMapper.deleteDklWeatherById(id);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue