修改mapper
This commit is contained in:
@ -2,6 +2,7 @@ package com.ruoyi.web.controller.yada;
|
||||
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.system.domain_yada.CityVo;
|
||||
import com.ruoyi.system.domain_yada.OrientationVO;
|
||||
import com.ruoyi.system.service_yada.ICityService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
@ -17,12 +18,15 @@ import java.util.List;
|
||||
* 城市
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping(value = "/business-service/api/City")
|
||||
@RequestMapping(value = "/business-service/api/City", produces = "application/json;charset=UTF-8")
|
||||
@Api(tags = "城市")
|
||||
public class CityController
|
||||
{
|
||||
@Resource
|
||||
private ICityService cityService;
|
||||
|
||||
|
||||
|
||||
@RequestMapping(value = "/getImpervious",method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "不透水面面积",httpMethod = "GET")
|
||||
public AjaxResult getImpervious(String city,String country)
|
||||
@ -30,4 +34,13 @@ public class CityController
|
||||
List<CityVo> cityVos=cityService.selectCity(city,country);
|
||||
return AjaxResult.success(cityVos);
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(value = "/getOrientation",method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "不透水面扩张方向",httpMethod = "GET")
|
||||
public AjaxResult getOrientation(String city,String country)
|
||||
{
|
||||
List<OrientationVO> cityVos=cityService.selectOrientation(city,country);
|
||||
return AjaxResult.success(cityVos);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user