xuhy
2025-08-12 21599e9ff5b454f7cefd14512cff1ab5f7203950
UserZYTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/api/DriverController.java
@@ -118,5 +118,28 @@
        }
    }
    /**
     * 获取空闲司机数量前十位
     * @param type 业务类型(1=专车,2=快车,3=城际,4=小件物流-同城,5=小件物流-跨城,6=公务用车)
     * @return
     */
    @ResponseBody
    @PostMapping("/base/driver/queryDriverLimitTen")
    @ApiOperation(value = "获取空闲司机数量前十位[0731]", tags = {"用户端-首页"}, notes = "")
    @ApiImplicitParams({
            @ApiImplicitParam(value = "业务类型(1=专车,2=快车,3=城际,4=小件物流-同城,5=小件物流-跨城,6=公务用车)", name = "type", required = true, dataType = "int"),
            @ApiImplicitParam(value = "乘客当前定位经度", name = "lon", required = true, dataType = "double"),
            @ApiImplicitParam(value = "乘客当前定位纬度", name = "lat", required = true, dataType = "double")
    })
    public ResultUtil<List<Driver>> queryDriverLimitTen(Integer type, Double lon, Double lat){
        try {
            List<Driver> list = driverService.queryDriverLimitTen(type, lon, lat);
            return ResultUtil.success(list);
        }catch (Exception e){
            e.printStackTrace();
            return ResultUtil.runErr();
        }
    }
}