|
|
|
@ -3,12 +3,16 @@ package com.hnac.hzims.safeproduct.controller;
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
|
|
|
|
import com.hnac.hzims.common.utils.Condition; |
|
|
|
|
import com.hnac.hzims.safeproduct.Constants; |
|
|
|
|
import com.hnac.hzims.safeproduct.dto.CarCheckRecordDTO; |
|
|
|
|
import com.hnac.hzims.safeproduct.dto.CarMaintenanceConfirmationDTO; |
|
|
|
|
import com.hnac.hzims.safeproduct.dto.CarUsedRecordConfirmationDTO; |
|
|
|
|
import com.hnac.hzims.safeproduct.entity.*; |
|
|
|
|
import com.hnac.hzims.safeproduct.service.*; |
|
|
|
|
import com.hnac.hzims.safeproduct.vo.*; |
|
|
|
|
import com.hnac.hzinfo.log.annotation.Business; |
|
|
|
|
import com.hnac.hzinfo.log.annotation.Operate; |
|
|
|
|
import com.hnac.hzinfo.log.contants.BusinessType; |
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
import io.swagger.annotations.ApiImplicitParam; |
|
|
|
|
import io.swagger.annotations.ApiImplicitParams; |
|
|
|
@ -34,6 +38,7 @@ import java.util.Map;
|
|
|
|
|
@RestController |
|
|
|
|
@RequestMapping("/car") |
|
|
|
|
@AllArgsConstructor |
|
|
|
|
@Business(module = Constants.APP_NAME, value = "车辆管理", ignore = false) |
|
|
|
|
@Api(value = "车辆管理", tags = "车辆管理接口") |
|
|
|
|
public class CarController extends BladeController { |
|
|
|
|
|
|
|
|
@ -52,6 +57,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@PostMapping("/saveCar") |
|
|
|
|
@ApiOperation(value = "新增车辆") |
|
|
|
|
@ApiOperationSupport(order = 1) |
|
|
|
|
@Operate(label = "新增车辆", type = BusinessType.INSERT, ignore = false) |
|
|
|
|
public R saveCar(@Valid @RequestBody CarEntity carEntity) { |
|
|
|
|
return carService.saveCar(carEntity); |
|
|
|
|
} |
|
|
|
@ -59,6 +65,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@PostMapping("/updateCar") |
|
|
|
|
@ApiOperation(value = "修改车辆") |
|
|
|
|
@ApiOperationSupport(order = 2) |
|
|
|
|
@Operate(label = "修改车辆", type = BusinessType.UPDATE, ignore = false) |
|
|
|
|
public R updateCar(@Valid @RequestBody CarEntity carEntity) { |
|
|
|
|
return carService.updateCar(carEntity); |
|
|
|
|
} |
|
|
|
@ -66,6 +73,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@PostMapping("/removeCar") |
|
|
|
|
@ApiOperation(value = "删除车辆") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@Operate(label = "删除车辆", type = BusinessType.DELETE, ignore = false) |
|
|
|
|
public R removeCar(@RequestParam Long id) { |
|
|
|
|
return R.status(carService.removeCar(id)); |
|
|
|
|
} |
|
|
|
@ -73,6 +81,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@GetMapping("/carDetail") |
|
|
|
|
@ApiOperation(value = "车辆详情") |
|
|
|
|
@ApiOperationSupport(order = 4) |
|
|
|
|
@Operate(label = "车辆详情", type = BusinessType.QUERY, ignore = false) |
|
|
|
|
public R<CarEntity> carDetail(@RequestParam Long id) { |
|
|
|
|
return R.data(carService.getById(id)); |
|
|
|
|
} |
|
|
|
@ -84,6 +93,7 @@ public class CarController extends BladeController {
|
|
|
|
|
}) |
|
|
|
|
@ApiOperation(value = "车辆分页") |
|
|
|
|
@ApiOperationSupport(order = 5) |
|
|
|
|
@Operate(label = "车辆分页", type = BusinessType.QUERY, ignore = false) |
|
|
|
|
public R<IPage<CarEntity>> carPage(@ApiIgnore @RequestParam Map<String, Object> param, Query query) { |
|
|
|
|
IPage<CarEntity> page = carService.page(Condition.getPage(query), Condition.getQueryWrapper(param, CarEntity.class) |
|
|
|
|
.lambda().orderByDesc(CarEntity::getCreateTime)); |
|
|
|
@ -93,6 +103,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@PostMapping("/saveCarMaintenance") |
|
|
|
|
@ApiOperation(value = "新增车辆维保记录") |
|
|
|
|
@ApiOperationSupport(order = 6) |
|
|
|
|
@Operate(label = "新增车辆维保记录", type = BusinessType.INSERT, ignore = false) |
|
|
|
|
public R saveCarMaintenance(@Valid @RequestBody CarMaintenanceEntity carMaintenanceEntity) { |
|
|
|
|
return R.status(carMaintenanceService.saveCarMaintenance(carMaintenanceEntity)); |
|
|
|
|
} |
|
|
|
@ -100,6 +111,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@PostMapping("/updateCarMaintenance") |
|
|
|
|
@ApiOperation(value = "修改车辆维保记录") |
|
|
|
|
@ApiOperationSupport(order = 7) |
|
|
|
|
@Operate(label = "修改车辆维保记录", type = BusinessType.UPDATE, ignore = false) |
|
|
|
|
public R updateCarMaintenance(@Valid @RequestBody CarMaintenanceEntity carMaintenanceEntity) { |
|
|
|
|
return carMaintenanceService.updateCarMaintenance(carMaintenanceEntity); |
|
|
|
|
} |
|
|
|
@ -107,6 +119,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@PostMapping("/removeCarMaintenance") |
|
|
|
|
@ApiOperation(value = "删除车辆维保记录") |
|
|
|
|
@ApiOperationSupport(order = 8) |
|
|
|
|
@Operate(label = "删除车辆维保记录", type = BusinessType.DELETE, ignore = false) |
|
|
|
|
public R removeCarMaintenance(@RequestParam Long id) { |
|
|
|
|
return R.status(carMaintenanceService.removeById(id)); |
|
|
|
|
} |
|
|
|
@ -114,6 +127,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@GetMapping("/carMaintenanceDetail") |
|
|
|
|
@ApiOperation(value = "车辆维保记录详情") |
|
|
|
|
@ApiOperationSupport(order = 9) |
|
|
|
|
@Operate(label = "车辆维保记录详情", type = BusinessType.QUERY, ignore = false) |
|
|
|
|
public R<CarMaintenanceDetailVO> carMaintenanceDetail(@RequestParam Long id) { |
|
|
|
|
return R.data(carMaintenanceService.getCarMaintenance(id)); |
|
|
|
|
} |
|
|
|
@ -128,6 +142,7 @@ public class CarController extends BladeController {
|
|
|
|
|
}) |
|
|
|
|
@ApiOperation(value = "车辆维保记录分页") |
|
|
|
|
@ApiOperationSupport(order = 10) |
|
|
|
|
@Operate(label = "车辆维保记录分页", type = BusinessType.QUERY, ignore = false) |
|
|
|
|
public R<IPage<CarMaintenancePageVO>> carMaintenancePage(@ApiIgnore @RequestParam Map<String, Object> param, Query query) { |
|
|
|
|
IPage<CarMaintenancePageVO> page = carMaintenanceService.getCarMaintenancePage(param, query); |
|
|
|
|
return R.data(page); |
|
|
|
@ -136,6 +151,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@PostMapping("/confirmCarMaintenance") |
|
|
|
|
@ApiOperation(value = "车辆维保记录确认") |
|
|
|
|
@ApiOperationSupport(order = 11) |
|
|
|
|
@Operate(label = "车辆维保记录确认", type = BusinessType.UPDATE, ignore = false) |
|
|
|
|
public R confirmCarMaintenance(@Valid @RequestBody CarMaintenanceConfirmationDTO confirmationDTO) { |
|
|
|
|
return carMaintenanceService.confirmCarMaintenance(confirmationDTO); |
|
|
|
|
} |
|
|
|
@ -143,6 +159,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@PostMapping("/saveCarUsedRecord") |
|
|
|
|
@ApiOperation(value = "新增用车记录") |
|
|
|
|
@ApiOperationSupport(order = 12) |
|
|
|
|
@Operate(label = "新增用车记录", type = BusinessType.INSERT, ignore = false) |
|
|
|
|
public R saveCarUsedRecord(@Valid @RequestBody CarUsedRecordEntity carUsedRecordEntity) { |
|
|
|
|
return R.status(carUsedRecordService.saveCarUsedRecord(carUsedRecordEntity)); |
|
|
|
|
} |
|
|
|
@ -150,6 +167,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@PostMapping("/updateCarUsedRecord") |
|
|
|
|
@ApiOperation(value = "修改用车记录") |
|
|
|
|
@ApiOperationSupport(order = 13) |
|
|
|
|
@Operate(label = "修改用车记录", type = BusinessType.UPDATE, ignore = false) |
|
|
|
|
public R updateCarUsedRecord(@Valid @RequestBody CarUsedRecordEntity carUsedRecordEntity) { |
|
|
|
|
return carUsedRecordService.updateCarUsedRecord(carUsedRecordEntity); |
|
|
|
|
} |
|
|
|
@ -157,6 +175,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@PostMapping("/removeCarUsedRecord") |
|
|
|
|
@ApiOperation(value = "删除用车记录") |
|
|
|
|
@ApiOperationSupport(order = 14) |
|
|
|
|
@Operate(label = "删除用车记录", type = BusinessType.DELETE, ignore = false) |
|
|
|
|
public R removeCarUsedRecord(@RequestParam Long id) { |
|
|
|
|
return R.status(carUsedRecordService.removeById(id)); |
|
|
|
|
} |
|
|
|
@ -164,6 +183,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@GetMapping("/carUsedRecordDetail") |
|
|
|
|
@ApiOperation(value = "用车记录详情") |
|
|
|
|
@ApiOperationSupport(order = 15) |
|
|
|
|
@Operate(label = "用车记录详情", type = BusinessType.QUERY, ignore = false) |
|
|
|
|
public R<CarUsedRecordDetailVO> carUsedRecordDetail(@RequestParam Long id) { |
|
|
|
|
return R.data(carUsedRecordService.getCarUsedRecord(id)); |
|
|
|
|
} |
|
|
|
@ -178,6 +198,7 @@ public class CarController extends BladeController {
|
|
|
|
|
}) |
|
|
|
|
@ApiOperation(value = "用车记录分页") |
|
|
|
|
@ApiOperationSupport(order = 16) |
|
|
|
|
@Operate(label = "用车记录分页", type = BusinessType.QUERY, ignore = false) |
|
|
|
|
public R<IPage<CarUsedRecordPageVO>> carUsedRecordPage(@ApiIgnore @RequestParam Map<String, Object> param, Query query) { |
|
|
|
|
IPage<CarUsedRecordPageVO> page = carUsedRecordService.getCarUsedRecordPage(param, query); |
|
|
|
|
return R.data(page); |
|
|
|
@ -186,6 +207,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@PostMapping("/confirmCarUsedRecord") |
|
|
|
|
@ApiOperation(value = "用车记录确认") |
|
|
|
|
@ApiOperationSupport(order = 17) |
|
|
|
|
@Operate(label = "用车记录确认", type = BusinessType.UPDATE, ignore = false) |
|
|
|
|
public R confirmCarUsedRecord(@Valid @RequestBody CarUsedRecordConfirmationDTO confirmationDTO) { |
|
|
|
|
return carUsedRecordService.confirmCarUsedRecord(confirmationDTO); |
|
|
|
|
} |
|
|
|
@ -193,6 +215,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@GetMapping("/milesDataByYear") |
|
|
|
|
@ApiOperation(value = "年度里程数据") |
|
|
|
|
@ApiOperationSupport(order = 18) |
|
|
|
|
@Operate(label = "年度里程数据", type = BusinessType.QUERY, ignore = false) |
|
|
|
|
public R<IPage<CarMilesYearVO>> milesDataByYear(@RequestParam String year, String unit, Query query) { |
|
|
|
|
IPage<CarMilesYearVO> page = carService.milesDataByYear(year, unit, query); |
|
|
|
|
return R.data(page); |
|
|
|
@ -201,6 +224,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@PostMapping("/saveCarCheckRecord") |
|
|
|
|
@ApiOperation(value = "新增车检记录") |
|
|
|
|
@ApiOperationSupport(order = 19) |
|
|
|
|
@Operate(label = "新增车检记录", type = BusinessType.INSERT, ignore = false) |
|
|
|
|
public R saveCarCheckRecord(@Valid @RequestBody CarCheckRecordDTO carCheckRecordDTO) { |
|
|
|
|
return R.status(carCheckRecordService.saveCarCheckRecord(carCheckRecordDTO)); |
|
|
|
|
} |
|
|
|
@ -208,6 +232,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@PostMapping("/updateCarCheckRecord") |
|
|
|
|
@ApiOperation(value = "修改车检记录") |
|
|
|
|
@ApiOperationSupport(order = 20) |
|
|
|
|
@Operate(label = "修改车检记录", type = BusinessType.UPDATE, ignore = false) |
|
|
|
|
public R updateCarCheckRecord(@Valid @RequestBody CarCheckRecordDTO carCheckRecordDTO) { |
|
|
|
|
return R.status(carCheckRecordService.updateCarCheckRecord(carCheckRecordDTO)); |
|
|
|
|
} |
|
|
|
@ -215,6 +240,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@PostMapping("/removeCarCheckRecord") |
|
|
|
|
@ApiOperation(value = "删除车检记录") |
|
|
|
|
@ApiOperationSupport(order = 21) |
|
|
|
|
@Operate(label = "删除车检记录", type = BusinessType.DELETE, ignore = false) |
|
|
|
|
public R removeCarCheckRecord(@RequestParam Long id) { |
|
|
|
|
return R.status(carCheckRecordService.removeCarCheckRecord(id)); |
|
|
|
|
} |
|
|
|
@ -222,6 +248,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@GetMapping("/carCheckRecordDetail") |
|
|
|
|
@ApiOperation(value = "车检记录详情") |
|
|
|
|
@ApiOperationSupport(order = 22) |
|
|
|
|
@Operate(label = "车检记录详情", type = BusinessType.QUERY, ignore = false) |
|
|
|
|
public R<CarCheckRecordDetailVO> carCheckRecordDetail(@RequestParam Long id) { |
|
|
|
|
return R.data(carCheckRecordService.getCarCheckRecord(id)); |
|
|
|
|
} |
|
|
|
@ -236,6 +263,7 @@ public class CarController extends BladeController {
|
|
|
|
|
}) |
|
|
|
|
@ApiOperation(value = "车检记录分页") |
|
|
|
|
@ApiOperationSupport(order = 23) |
|
|
|
|
@Operate(label = "车检记录分页", type = BusinessType.QUERY, ignore = false) |
|
|
|
|
public R<IPage<CarCheckRecordPageVO>> carCheckRecordPage(@ApiIgnore @RequestParam Map<String, Object> param, Query query) { |
|
|
|
|
IPage<CarCheckRecordPageVO> page = carCheckRecordService.getCarCheckRecordPage(param, query); |
|
|
|
|
return R.data(page); |
|
|
|
@ -244,6 +272,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@GetMapping("/exportCarMaintenanceData") |
|
|
|
|
@ApiOperation(value = "导出车辆维保记录单") |
|
|
|
|
@ApiOperationSupport(order = 24) |
|
|
|
|
@Operate(label = "导出车辆维保记录单", type = BusinessType.EXPORT, ignore = false) |
|
|
|
|
public void exportCarMaintenanceData(@RequestParam Long id, HttpServletResponse response) { |
|
|
|
|
carMaintenanceService.exportCarMaintenanceData(id, response); |
|
|
|
|
} |
|
|
|
@ -251,6 +280,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@GetMapping("/exportCarUsedRecordData") |
|
|
|
|
@ApiOperation(value = "导出用车记录单") |
|
|
|
|
@ApiOperationSupport(order = 25) |
|
|
|
|
@Operate(label = "导出用车记录单", type = BusinessType.EXPORT, ignore = false) |
|
|
|
|
public void exportCarUsedRecordData(@RequestParam Long id, HttpServletResponse response) { |
|
|
|
|
carUsedRecordService.exportCarUsedRecordData(id, response); |
|
|
|
|
} |
|
|
|
@ -258,6 +288,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@GetMapping("/exportCarCheckRecordData") |
|
|
|
|
@ApiOperation(value = "导出车检记录单") |
|
|
|
|
@ApiOperationSupport(order = 26) |
|
|
|
|
@Operate(label = "导出车检记录单", type = BusinessType.EXPORT, ignore = false) |
|
|
|
|
public void exportCarCheckRecordData(@RequestParam Long id, HttpServletResponse response) { |
|
|
|
|
carCheckRecordService.exportCarCheckRecordData(id, response); |
|
|
|
|
} |
|
|
|
@ -269,6 +300,7 @@ public class CarController extends BladeController {
|
|
|
|
|
}) |
|
|
|
|
@ApiOperation(value = "导出年度里程数据") |
|
|
|
|
@ApiOperationSupport(order = 27) |
|
|
|
|
@Operate(label = "导出年度里程数据", type = BusinessType.EXPORT, ignore = false) |
|
|
|
|
public void exportCarMilesData(@ApiIgnore @RequestParam Map<String, Object> param, Query query, HttpServletResponse response) { |
|
|
|
|
carService.exportCarMilesData(param, query, response); |
|
|
|
|
} |
|
|
|
@ -276,6 +308,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@PostMapping("/saveCarAnnualInspection") |
|
|
|
|
@ApiOperation(value = "新增年检记录") |
|
|
|
|
@ApiOperationSupport(order = 28) |
|
|
|
|
@Operate(label = "新增年检记录", type = BusinessType.INSERT, ignore = false) |
|
|
|
|
public R saveCarAnnualInspection(@Valid @RequestBody CarAnnualInspectionEntity carAnnualInspectionEntity) { |
|
|
|
|
return R.status(carAnnualInspectionService.saveCarAnnualInspection(carAnnualInspectionEntity)); |
|
|
|
|
} |
|
|
|
@ -283,6 +316,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@PostMapping("/updateCarAnnualInspection") |
|
|
|
|
@ApiOperation(value = "修改年检记录") |
|
|
|
|
@ApiOperationSupport(order = 29) |
|
|
|
|
@Operate(label = "修改年检记录", type = BusinessType.UPDATE, ignore = false) |
|
|
|
|
public R updateCarAnnualInspection(@Valid @RequestBody CarAnnualInspectionEntity carAnnualInspectionEntity) { |
|
|
|
|
return R.status(carAnnualInspectionService.updateCarAnnualInspection(carAnnualInspectionEntity)); |
|
|
|
|
} |
|
|
|
@ -290,6 +324,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@PostMapping("/removeCarAnnualInspection") |
|
|
|
|
@ApiOperation(value = "删除年检记录") |
|
|
|
|
@ApiOperationSupport(order = 30) |
|
|
|
|
@Operate(label = "删除年检记录", type = BusinessType.DELETE, ignore = false) |
|
|
|
|
public R removeCarAnnualInspection(@RequestParam Long id) { |
|
|
|
|
return R.status(carAnnualInspectionService.removeById(id)); |
|
|
|
|
} |
|
|
|
@ -297,6 +332,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@GetMapping("/carAnnualInspectionDetail") |
|
|
|
|
@ApiOperation(value = "年检记录详情") |
|
|
|
|
@ApiOperationSupport(order = 31) |
|
|
|
|
@Operate(label = "年检记录详情", type = BusinessType.QUERY, ignore = false) |
|
|
|
|
public R<CarAnnualInspectionEntity> carAnnualInspectionDetail(@RequestParam Long id) { |
|
|
|
|
return R.data(carAnnualInspectionService.getById(id)); |
|
|
|
|
} |
|
|
|
@ -311,6 +347,7 @@ public class CarController extends BladeController {
|
|
|
|
|
}) |
|
|
|
|
@ApiOperation(value = "年检记录分页") |
|
|
|
|
@ApiOperationSupport(order = 32) |
|
|
|
|
@Operate(label = "年检记录分页", type = BusinessType.QUERY, ignore = false) |
|
|
|
|
public R<IPage<CarAnnualInspectionPageVO>> carAnnualInspectionPage(@ApiIgnore @RequestParam Map<String, Object> param, Query query) { |
|
|
|
|
IPage<CarAnnualInspectionPageVO> page = carAnnualInspectionService.getCarAnnualInspectionPage(param, query); |
|
|
|
|
return R.data(page); |
|
|
|
@ -319,6 +356,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@PostMapping("/saveCarInsurance") |
|
|
|
|
@ApiOperation(value = "新增车保记录") |
|
|
|
|
@ApiOperationSupport(order = 33) |
|
|
|
|
@Operate(label = "新增车保记录", type = BusinessType.INSERT, ignore = false) |
|
|
|
|
public R saveCarInsurance(@Valid @RequestBody CarInsuranceEntity carInsuranceEntity) { |
|
|
|
|
return R.status(carInsuranceService.saveCarCheckRecord(carInsuranceEntity)); |
|
|
|
|
} |
|
|
|
@ -326,6 +364,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@PostMapping("/updateCarInsurance") |
|
|
|
|
@ApiOperation(value = "修改车保记录") |
|
|
|
|
@ApiOperationSupport(order = 34) |
|
|
|
|
@Operate(label = "修改车保记录", type = BusinessType.UPDATE, ignore = false) |
|
|
|
|
public R updateCarInsurance(@Valid @RequestBody CarInsuranceEntity carInsuranceEntity) { |
|
|
|
|
return R.status(carInsuranceService.updateCarCheckRecord(carInsuranceEntity)); |
|
|
|
|
} |
|
|
|
@ -333,6 +372,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@PostMapping("/removeCarInsurance") |
|
|
|
|
@ApiOperation(value = "删除车保记录") |
|
|
|
|
@ApiOperationSupport(order = 35) |
|
|
|
|
@Operate(label = "删除车保记录", type = BusinessType.DELETE, ignore = false) |
|
|
|
|
public R removeCarInsurance(@RequestParam Long id) { |
|
|
|
|
return R.status(carInsuranceService.removeById(id)); |
|
|
|
|
} |
|
|
|
@ -340,6 +380,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@GetMapping("/carInsuranceDetail") |
|
|
|
|
@ApiOperation(value = "车保记录详情") |
|
|
|
|
@ApiOperationSupport(order = 36) |
|
|
|
|
@Operate(label = "车保记录详情", type = BusinessType.QUERY, ignore = false) |
|
|
|
|
public R<CarInsuranceEntity> carInsuranceDetail(@RequestParam Long id) { |
|
|
|
|
return R.data(carInsuranceService.getById(id)); |
|
|
|
|
} |
|
|
|
@ -354,6 +395,7 @@ public class CarController extends BladeController {
|
|
|
|
|
}) |
|
|
|
|
@ApiOperation(value = "车保记录分页") |
|
|
|
|
@ApiOperationSupport(order = 37) |
|
|
|
|
@Operate(label = "车保记录分页", type = BusinessType.QUERY, ignore = false) |
|
|
|
|
public R<IPage<CarInsurancePageVO>> carInsurancePage(@ApiIgnore @RequestParam Map<String, Object> param, Query query) { |
|
|
|
|
IPage<CarInsurancePageVO> page = carInsuranceService.getCarInsurancePage(param, query); |
|
|
|
|
return R.data(page); |
|
|
|
@ -362,6 +404,7 @@ public class CarController extends BladeController {
|
|
|
|
|
@GetMapping("/carList") |
|
|
|
|
@ApiOperation(value = "查询车辆列表") |
|
|
|
|
@ApiOperationSupport(order = 38) |
|
|
|
|
@Operate(label = "查询车辆列表", type = BusinessType.QUERY, ignore = false) |
|
|
|
|
public R<List<CarEntity>> carList(String plateNumber) { |
|
|
|
|
List<CarEntity> list = carService.getCarListByPlateNumber(plateNumber); |
|
|
|
|
return R.data(list); |
|
|
|
|