diff --git a/src/main/java/com/sczx/car/controller/CarModelController.java b/src/main/java/com/sczx/car/controller/CarModelController.java index 82a9161..4147b8e 100644 --- a/src/main/java/com/sczx/car/controller/CarModelController.java +++ b/src/main/java/com/sczx/car/controller/CarModelController.java @@ -44,8 +44,8 @@ public class CarModelController { @ApiOperation(value = "根据美团抖音id查询车型套餐") @GetMapping("/getCarModelByThireId") - public Result getCarModelByThireId(@RequestParam(name = "mtId") String mtId, - @RequestParam(name = "dyId") String dyId){ + public Result getCarModelByThireId(@RequestParam(name = "mtId",required = false, defaultValue = "") String mtId, + @RequestParam(name = "dyId",required = false, defaultValue = "") String dyId){ return Result.ok(carModelService.getCarModelByThireId(mtId, dyId)); } }