package com.ruoyi.project.tool.cityCode.service.impl;
|
|
import java.util.List;
|
|
import com.ruoyi.project.tool.cityCode.domain.CityCode;
|
import com.ruoyi.project.tool.cityCode.mapper.CityCodeMapper;
|
import com.ruoyi.project.tool.cityCode.service.ICityCodeService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import com.ruoyi.common.utils.text.Convert;
|
|
/**
|
* 天气接口 城市记录Service业务层处理
|
*
|
* @author wm
|
* @date 2020-07-09
|
*/
|
@Service
|
public class CityCodeServiceImpl implements ICityCodeService
|
{
|
@Autowired
|
private CityCodeMapper cityCodeMapper;
|
|
/**
|
* 查询天气接口 城市记录
|
*
|
* @param id 天气接口 城市记录ID
|
* @return 天气接口 城市记录
|
*/
|
@Override
|
public CityCode selectCityCodeById(Integer id)
|
{
|
return cityCodeMapper.selectCityCodeById(id);
|
}
|
|
/**
|
* 查询天气接口 城市记录列表
|
*
|
* @param cityCode 天气接口 城市记录
|
* @return 天气接口 城市记录
|
*/
|
@Override
|
public List<CityCode> selectCityCodeList(CityCode cityCode)
|
{
|
return cityCodeMapper.selectCityCodeList(cityCode);
|
}
|
|
/**
|
* 新增天气接口 城市记录
|
*
|
* @param cityCode 天气接口 城市记录
|
* @return 结果
|
*/
|
@Override
|
public int insertCityCode(CityCode cityCode)
|
{
|
return cityCodeMapper.insertCityCode(cityCode);
|
}
|
|
/**
|
* 修改天气接口 城市记录
|
*
|
* @param cityCode 天气接口 城市记录
|
* @return 结果
|
*/
|
@Override
|
public int updateCityCode(CityCode cityCode)
|
{
|
return cityCodeMapper.updateCityCode(cityCode);
|
}
|
|
/**
|
* 删除天气接口 城市记录对象
|
*
|
* @param ids 需要删除的数据ID
|
* @return 结果
|
*/
|
@Override
|
public int deleteCityCodeByIds(String ids)
|
{
|
return cityCodeMapper.deleteCityCodeByIds(Convert.toStrArray(ids));
|
}
|
|
/**
|
* 删除天气接口 城市记录信息
|
*
|
* @param id 天气接口 城市记录ID
|
* @return 结果
|
*/
|
@Override
|
public int deleteCityCodeById(Integer id)
|
{
|
return cityCodeMapper.deleteCityCodeById(id);
|
}
|
}
|