增加车辆查询接口
This commit is contained in:
@ -5,6 +5,7 @@ import com.sczx.car.common.Result;
|
|||||||
import com.sczx.car.dto.CarDTO;
|
import com.sczx.car.dto.CarDTO;
|
||||||
import com.sczx.car.dto.RentCarRuleDTO;
|
import com.sczx.car.dto.RentCarRuleDTO;
|
||||||
import com.sczx.car.dto.req.CarQueryConditionReq;
|
import com.sczx.car.dto.req.CarQueryConditionReq;
|
||||||
|
import com.sczx.car.service.CarService;
|
||||||
import com.sczx.car.service.RentCarRuleService;
|
import com.sczx.car.service.RentCarRuleService;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
@ -26,12 +27,12 @@ import org.springframework.web.bind.annotation.*;
|
|||||||
public class CarController {
|
public class CarController {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private RentCarRuleService rentCarRuleService;
|
private CarService carService;
|
||||||
|
|
||||||
|
|
||||||
@ApiOperation(value = "根据查询条件查询车辆")
|
@ApiOperation(value = "根据查询条件查询车辆")
|
||||||
@GetMapping("/getCarByCarCondition")
|
@GetMapping("/getCarByCarCondition")
|
||||||
public Result<CarDTO> getCarByCarCondition(@RequestBody CarQueryConditionReq req){
|
public Result<CarDTO> getCarByCarCondition(@RequestBody CarQueryConditionReq req){
|
||||||
return Result.ok(rentCarRuleService.getRentCarRuleByCarRuleId(carRuleId));
|
return Result.ok(carService.getCarByCondition(req));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user