Commit 39aefde2 by 刘宇峰

新增车辆-车型管理-返回完整车型树

1 parent da9a2cfc
......@@ -176,8 +176,8 @@ public class VehicleController {
@ApiOperation(value = "车辆品牌系别查询")
@GetMapping("/brandseries")
public R<List<CarBrandSelected>> brandsSeries() {
List<CarBrandSelected> carBrandSeriesList = vehicleService.getCarBrandSeriesList();
public R<List<CarBrandSelected>> brandsSeries(@RequestParam("full") Boolean full) {
List<CarBrandSelected> carBrandSeriesList = vehicleService.getCarBrandSeriesList(full);
return R.ok().data(carBrandSeriesList);
}
......
......@@ -743,7 +743,10 @@ public class VehicleService {
return new PageInfo<>(list);
}
public List<CarBrandSelected> getCarBrandSeriesList() {
public List<CarBrandSelected> getCarBrandSeriesList(Boolean full) {
if (full) {
return carbrandService.getFullCarInfoForSelected();
}
return carbrandService.getCarInfoCompleteForSelected();
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!