|
|
@ -22,6 +22,7 @@ import springfox.documentation.annotations.ApiIgnore; |
|
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
import javax.validation.Valid; |
|
|
|
import javax.validation.Valid; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -119,9 +120,11 @@ public class CarController extends BladeController { |
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/carMaintenancePage") |
|
|
|
@GetMapping("/carMaintenancePage") |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParams({ |
|
|
|
|
|
|
|
@ApiImplicitParam(name = "carId", value = "车辆id", dataType = "query", paramType = "string"), |
|
|
|
|
|
|
|
@ApiImplicitParam(name = "unit", value = "单位", dataType = "query", paramType = "string"), |
|
|
|
|
|
|
|
@ApiImplicitParam(name = "plateNumber", value = "车牌号", dataType = "query", paramType = "string"), |
|
|
|
@ApiImplicitParam(name = "startTime", value = "开始时间", dataType = "query", paramType = "string"), |
|
|
|
@ApiImplicitParam(name = "startTime", value = "开始时间", dataType = "query", paramType = "string"), |
|
|
|
@ApiImplicitParam(name = "endTime", value = "结束时间", dataType = "query", paramType = "string"), |
|
|
|
@ApiImplicitParam(name = "endTime", value = "结束时间", dataType = "query", paramType = "string") |
|
|
|
@ApiImplicitParam(name = "carId", value = "车辆id", dataType = "query", paramType = "string") |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
@ApiOperation(value = "车辆维保记录分页") |
|
|
|
@ApiOperation(value = "车辆维保记录分页") |
|
|
|
@ApiOperationSupport(order = 10) |
|
|
|
@ApiOperationSupport(order = 10) |
|
|
@ -148,7 +151,7 @@ public class CarController extends BladeController { |
|
|
|
@ApiOperation(value = "修改用车记录") |
|
|
|
@ApiOperation(value = "修改用车记录") |
|
|
|
@ApiOperationSupport(order = 13) |
|
|
|
@ApiOperationSupport(order = 13) |
|
|
|
public R updateCarUsedRecord(@Valid @RequestBody CarUsedRecordEntity carUsedRecordEntity) { |
|
|
|
public R updateCarUsedRecord(@Valid @RequestBody CarUsedRecordEntity carUsedRecordEntity) { |
|
|
|
return R.status(carUsedRecordService.updateCarUsedRecord(carUsedRecordEntity)); |
|
|
|
return carUsedRecordService.updateCarUsedRecord(carUsedRecordEntity); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/removeCarUsedRecord") |
|
|
|
@PostMapping("/removeCarUsedRecord") |
|
|
@ -167,7 +170,11 @@ public class CarController extends BladeController { |
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/carUsedRecordPage") |
|
|
|
@GetMapping("/carUsedRecordPage") |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParam(name = "carId", value = "车辆id", dataType = "query", paramType = "string") |
|
|
|
@ApiImplicitParam(name = "carId", value = "车辆id", dataType = "query", paramType = "string"), |
|
|
|
|
|
|
|
@ApiImplicitParam(name = "unit", value = "单位", dataType = "query", paramType = "string"), |
|
|
|
|
|
|
|
@ApiImplicitParam(name = "plateNumber", value = "车牌号", dataType = "query", paramType = "string"), |
|
|
|
|
|
|
|
@ApiImplicitParam(name = "startTime", value = "开始时间", dataType = "query", paramType = "string"), |
|
|
|
|
|
|
|
@ApiImplicitParam(name = "endTime", value = "结束时间", dataType = "query", paramType = "string") |
|
|
|
}) |
|
|
|
}) |
|
|
|
@ApiOperation(value = "用车记录分页") |
|
|
|
@ApiOperation(value = "用车记录分页") |
|
|
|
@ApiOperationSupport(order = 16) |
|
|
|
@ApiOperationSupport(order = 16) |
|
|
@ -221,8 +228,11 @@ public class CarController extends BladeController { |
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/carCheckRecordPage") |
|
|
|
@GetMapping("/carCheckRecordPage") |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParams({ |
|
|
|
|
|
|
|
@ApiImplicitParam(name = "carId", value = "车辆id", dataType = "query", paramType = "string"), |
|
|
|
@ApiImplicitParam(name = "unit", value = "单位", dataType = "query", paramType = "string"), |
|
|
|
@ApiImplicitParam(name = "unit", value = "单位", dataType = "query", paramType = "string"), |
|
|
|
@ApiImplicitParam(name = "carId", value = "车辆id", dataType = "query", paramType = "string") |
|
|
|
@ApiImplicitParam(name = "plateNumber", value = "车牌号", dataType = "query", paramType = "string"), |
|
|
|
|
|
|
|
@ApiImplicitParam(name = "startTime", value = "开始时间", dataType = "query", paramType = "string"), |
|
|
|
|
|
|
|
@ApiImplicitParam(name = "endTime", value = "结束时间", dataType = "query", paramType = "string") |
|
|
|
}) |
|
|
|
}) |
|
|
|
@ApiOperation(value = "车检记录分页") |
|
|
|
@ApiOperation(value = "车检记录分页") |
|
|
|
@ApiOperationSupport(order = 23) |
|
|
|
@ApiOperationSupport(order = 23) |
|
|
@ -295,7 +305,9 @@ public class CarController extends BladeController { |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParam(name = "carId", value = "车辆id", dataType = "query", paramType = "string"), |
|
|
|
@ApiImplicitParam(name = "carId", value = "车辆id", dataType = "query", paramType = "string"), |
|
|
|
@ApiImplicitParam(name = "unit", value = "单位", dataType = "query", paramType = "string"), |
|
|
|
@ApiImplicitParam(name = "unit", value = "单位", dataType = "query", paramType = "string"), |
|
|
|
@ApiImplicitParam(name = "annualInspectionTime", value = "年检时间", dataType = "query", paramType = "string") |
|
|
|
@ApiImplicitParam(name = "plateNumber", value = "车牌号", dataType = "query", paramType = "string"), |
|
|
|
|
|
|
|
@ApiImplicitParam(name = "startTime", value = "开始时间", dataType = "query", paramType = "string"), |
|
|
|
|
|
|
|
@ApiImplicitParam(name = "endTime", value = "结束时间", dataType = "query", paramType = "string") |
|
|
|
}) |
|
|
|
}) |
|
|
|
@ApiOperation(value = "年检记录分页") |
|
|
|
@ApiOperation(value = "年检记录分页") |
|
|
|
@ApiOperationSupport(order = 32) |
|
|
|
@ApiOperationSupport(order = 32) |
|
|
@ -334,8 +346,11 @@ public class CarController extends BladeController { |
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/carInsurancePage") |
|
|
|
@GetMapping("/carInsurancePage") |
|
|
|
@ApiImplicitParams({ |
|
|
|
@ApiImplicitParams({ |
|
|
|
|
|
|
|
@ApiImplicitParam(name = "carId", value = "车辆id", dataType = "query", paramType = "string"), |
|
|
|
@ApiImplicitParam(name = "unit", value = "单位", dataType = "query", paramType = "string"), |
|
|
|
@ApiImplicitParam(name = "unit", value = "单位", dataType = "query", paramType = "string"), |
|
|
|
@ApiImplicitParam(name = "carId", value = "车辆id", dataType = "query", paramType = "string") |
|
|
|
@ApiImplicitParam(name = "plateNumber", value = "车牌号", dataType = "query", paramType = "string"), |
|
|
|
|
|
|
|
@ApiImplicitParam(name = "startTime", value = "开始时间", dataType = "query", paramType = "string"), |
|
|
|
|
|
|
|
@ApiImplicitParam(name = "endTime", value = "结束时间", dataType = "query", paramType = "string") |
|
|
|
}) |
|
|
|
}) |
|
|
|
@ApiOperation(value = "车保记录分页") |
|
|
|
@ApiOperation(value = "车保记录分页") |
|
|
|
@ApiOperationSupport(order = 37) |
|
|
|
@ApiOperationSupport(order = 37) |
|
|
@ -343,4 +358,12 @@ public class CarController extends BladeController { |
|
|
|
IPage<CarInsurancePageVO> page = carInsuranceService.getCarInsurancePage(param, query); |
|
|
|
IPage<CarInsurancePageVO> page = carInsuranceService.getCarInsurancePage(param, query); |
|
|
|
return R.data(page); |
|
|
|
return R.data(page); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/carList") |
|
|
|
|
|
|
|
@ApiOperation(value = "查询车辆列表") |
|
|
|
|
|
|
|
@ApiOperationSupport(order = 38) |
|
|
|
|
|
|
|
public R<List<CarEntity>> carList(String plateNumber) { |
|
|
|
|
|
|
|
List<CarEntity> list = carService.getCarListByPlateNumber(plateNumber); |
|
|
|
|
|
|
|
return R.data(list); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|