| | |
| | | */ |
| | | Areas findById(Integer id); |
| | | |
| | | Areas getById(Integer id); |
| | | |
| | | /** |
| | | * 根据id和type查询对象信息 |
| | | * @param id |
| | |
| | | |
| | | List<Areas> getCityList(Areas areas); |
| | | |
| | | /** |
| | | * 查询已开放的城市列表(status=1,type=1),附带首字母并按首字母排序 |
| | | * |
| | | * @return 城市列表 |
| | | */ |
| | | List<Areas> getOpenCityList(); |
| | | |
| | | /** |
| | | * 根据城市名称查询已开通的城市信息 |
| | | * |
| | | * @param cityName 城市名称 |
| | | * @return 城市信息,未开通则返回null |
| | | */ |
| | | Areas getOpenedCityByName(String cityName); |
| | | |
| | | Areas getOpenedCityByCode(String code); |
| | | |
| | | /** |
| | | * 修改状态 |
| | | * |
| | | * @param areas 实体对象(id + status) |
| | | */ |
| | | void updateStatus(Areas areas); |
| | | |
| | | /** |
| | | * 一次性:为所有城市级别区划填充经纬度到info字段 |
| | | */ |
| | | String fillCityLocation(); |
| | | |
| | | } |