| | |
| | | import com.ycl.service.resources.IVideoResourcesService; |
| | | import com.ycl.utils.EasyExcelUtils; |
| | | import com.ycl.vo.casePool.QueryForViolationVO; |
| | | import com.ycl.vo.casePool.WorkOrderVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | |
| | | public CommonResult searchCount(@RequestBody VideoInspectParam violationParam) { |
| | | return CommonResult.success(baseCaseService.updateCase(violationParam)); |
| | | } |
| | | |
| | | @GetMapping("/work_order") |
| | | @ApiOperation("工单统计") |
| | | public CommonResult getWorkOrder(@RequestParam Integer currentPage, |
| | | @RequestParam Integer pageSize, |
| | | @RequestParam(required = false) String keyword) { |
| | | return CommonResult.success(baseCaseService.getWorkOrder(currentPage, pageSize, keyword)); |
| | | } |
| | | |
| | | @PostMapping("/work_order/export") |
| | | @ApiOperation("工单统计-导出") |
| | | public void getWorkOrderExport(HttpServletResponse response, QueryForViolationParam param) { |
| | | String sheetName = "工单数据"; |
| | | EasyExcelUtils.export(response, sheetName, WorkOrderVO.class, baseCaseService.getWorkOrderList(param.getKeyword())); |
| | | } |
| | | } |