| | |
| | | import com.ycl.annotation.LogSave; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.controller.BaseController; |
| | | import com.ycl.dto.carManage.CarEnforcecarVo; |
| | | import com.ycl.entity.carManage.CarEnforcecar; |
| | | import com.ycl.entity.carManage.CarSlagcar; |
| | | import com.ycl.enums.common.ResultCode; |
| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | |
| | | @ApiOperation(value = "查询执法车") |
| | | @GetMapping("/query_enforce") |
| | | public CommonResult searchEnforceCar(@RequestParam(required = false) String carNum, |
| | | @RequestParam Integer size, |
| | | @RequestParam Integer current) { |
| | | Page<CarEnforcecar> carEnforcecarPage = new Page<>(); |
| | | carEnforcecarPage.setSize(size); |
| | | carEnforcecarPage.setCurrent(current); |
| | | return CommonResult.success(iCarEnforcecarService |
| | | .page(carEnforcecarPage, new LambdaQueryWrapper<CarEnforcecar>() |
| | | .like(StringUtils.isNotBlank(carNum), CarEnforcecar::getCarNumber, carNum))); |
| | | public CommonResult<Page<CarEnforcecarVo>> searchEnforceCar(@RequestParam(required = false) String carNum, |
| | | @RequestParam Integer size, |
| | | @RequestParam Integer current) { |
| | | Page<CarEnforcecarVo> page = iCarEnforcecarService.searchEnforceCar(size, current, carNum); |
| | | return CommonResult.success(page); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询渣土车") |
| | |
| | | public CommonResult deleteSlagCar(@RequestParam Integer id) { |
| | | return CommonResult.success(iCarSlagcarService.removeById(id)); |
| | | } |
| | | |
| | | @ApiOperation("批量删除执法车") |
| | | @DeleteMapping("/batch_deletion_enforce") |
| | | @LogSave(operationType = "车辆管理", contain = "批量删除执法车") |
| | | public CommonResult batchDeleteEnforce(@RequestParam List<Long> ids) { |
| | | return CommonResult.success(iCarEnforcecarService.removeBatchByIds(ids)); |
| | | } |
| | | |
| | | @ApiOperation("批量删除渣土车") |
| | | @DeleteMapping("/batch_deletion_slag") |
| | | @LogSave(operationType = "车辆管理", contain = "批量删除渣土车") |
| | | public CommonResult batchDeleteSlag(@RequestParam List<Long> ids) { |
| | | return CommonResult.success(iCarSlagcarService.removeBatchByIds(ids)); |
| | | } |
| | | } |