| | |
| | | |
| | | /** |
| | | * 1. 判断 VIN 是否为 robotaxi 车辆 |
| | | * @param vim |
| | | * @param vin |
| | | * @return |
| | | */ |
| | | @GetMapping("/isRobotaxi/{vim}") |
| | | @GetMapping("/isRobotaxi/{vin}") |
| | | @ApiOperation(value = "判断 VIN 是否为 robotaxi 车辆", notes = "客服系统对接") |
| | | @ApiImplicitParam(name = "vim", value = "VIN码", required = true, dataType = "string", paramType = "path") |
| | | public R<Boolean> isRobotaxi(@PathVariable String vim){ |
| | | XpVehicle xpVehicle = xpVehicleClient.findByVehicleVin(vim).getData(); |
| | | @ApiImplicitParam(name = "vin", value = "VIN码", required = true, dataType = "string", paramType = "path") |
| | | public R<Boolean> isRobotaxi(@PathVariable String vin){ |
| | | XpVehicle xpVehicle = xpVehicleClient.findByVehicleVin(vin).getData(); |
| | | if(null != xpVehicle){ |
| | | return R.ok(true); |
| | | } |
| | |
| | | |
| | | /** |
| | | * 2. 根据 VIN 查询在途/最近订单客户手机号 |
| | | * @param vim |
| | | * @param vin |
| | | * @return |
| | | */ |
| | | @GetMapping("/getServiceOrder/{vim}") |
| | | @GetMapping("/getServiceOrder/{vin}") |
| | | @ApiOperation(value = "根据 VIN 查询在途/最近订单客户手机号", notes = "客服系统对接") |
| | | @ApiImplicitParam(name = "vim", value = "VIN码", required = true, dataType = "string", paramType = "path") |
| | | public R<ServiceOrderVo> getServiceOrder(@PathVariable String vim){ |
| | | XpVehicle xpVehicle = xpVehicleClient.findByVehicleVin(vim).getData(); |
| | | @ApiImplicitParam(name = "vin", value = "VIN码", required = true, dataType = "string", paramType = "path") |
| | | public R<ServiceOrderVo> getServiceOrder(@PathVariable String vin){ |
| | | XpVehicle xpVehicle = xpVehicleClient.findByVehicleVin(vin).getData(); |
| | | if(null == xpVehicle){ |
| | | return R.ok(); |
| | | } |