yanghb
2023-04-04 e6e02ec4e9c4f9ac0d66e97f5f3755687c88cfe6
UserTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/crossCity/controller/SiteController.java
@@ -35,13 +35,20 @@
    @RequestMapping(value = "/base/site/querySite", method = RequestMethod.POST)
    @ApiOperation(value = "获取起点和终点的站点", tags = {"用户端-跨城"}, notes = "")
    @ApiImplicitParams({
            @ApiImplicitParam(value = "起点站点id", name = "startSiteId", required = false, dataType = "int")
            @ApiImplicitParam(value = "起点站点id", name = "startSiteId", required = false, dataType = "int"),
            @ApiImplicitParam(value = "类型", name = "startSiteId", required = false, dataType = "int")
    })
    public ResultUtil<List<SiteWarpper>> querySite(Integer startSiteId){
    public ResultUtil<List<SiteWarpper>> querySite(Integer startSiteId,Integer type) {
        try {
            List<SiteWarpper> list = siteService.querySite(startSiteId);
            if(type == 3){
                type = 1;
            }
            if(type == 4){
                type = 2;
            }
            List<SiteWarpper> list = siteService.querySite(startSiteId, type);
            return ResultUtil.success(list);
        }catch (Exception e){
        } catch (Exception e) {
            e.printStackTrace();
            return ResultUtil.runErr();
        }