| | |
| | | |
| | | @ApiOperation(value = "查询执法车") |
| | | @GetMapping("/query_enforce") |
| | | public CommonResult searchEnforceCar(@RequestParam String carNum, |
| | | public CommonResult searchEnforceCar(@RequestParam(required = false) String carNum, |
| | | @RequestParam Integer size, |
| | | @RequestParam Integer current) { |
| | | Page<CarEnforcecar> carEnforcecarPage = new Page<>(); |
| | |
| | | |
| | | @ApiOperation(value = "查询渣土车") |
| | | @GetMapping("/query_slag") |
| | | public CommonResult searchSlagCar(@RequestParam String carNum, |
| | | public CommonResult searchSlagCar(@RequestParam(required = false) String carNum, |
| | | @RequestParam Integer size, |
| | | @RequestParam Integer current) { |
| | | Page<CarSlagcar> carSlagcarPage = new Page<>(); |
| | |
| | | .like(StringUtils.isNotBlank(carNum), CarSlagcar::getCarNumber, carNum))); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "查看详情执法车") |
| | | @GetMapping("/query_enforce_one") |
| | | public CommonResult searchEnforceCar(@RequestParam Integer id) { |
| | | return CommonResult.success(iCarEnforcecarService |
| | | .getOne(new LambdaQueryWrapper<CarEnforcecar>() |
| | | .eq(CarEnforcecar::getId, id))); |
| | | } |
| | | |
| | | @ApiOperation(value = "查看详情渣土车") |
| | | @GetMapping("/query_slag_one") |
| | | public CommonResult searchSlagCar(@RequestParam Integer id) { |
| | | return CommonResult.success(iCarSlagcarService |
| | | .getOne(new LambdaQueryWrapper<CarSlagcar>() |
| | | .eq(CarSlagcar::getId, id))); |
| | | } |
| | | |
| | | @ApiOperation("修改执法车") |
| | | @PutMapping("/modification_enforce") |
| | | public CommonResult modify(@RequestBody CarEnforcecar carEnforcecar) { |