| | |
| | | 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; |
| | |
| | | @RequestParam(required = false) Integer videoId) { |
| | | |
| | | Page<Object> queryList; |
| | | // 处理状态(wait(0-待处理) handle(5立案6调度7处置8核查) finish(1-误报2-上报3-再学习/再训练4暂不处理 9结案) |
| | | // 处理状态(wait(0-待处理) handle(5立案6调度7处置8核查) finish(1-误报2-上报3-再学习/再训练4暂不处理 9结案) |
| | | List<Integer> stateList = new ArrayList<>(); |
| | | switch (state){ |
| | | switch (state) { |
| | | case "wait": |
| | | stateList.add(0); |
| | | break; |
| | | case "handle": |
| | | case "handle": |
| | | stateList.add(5); |
| | | stateList.add(6); |
| | | stateList.add(7); |
| | |
| | | stateList.add(3); |
| | | stateList.add(4); |
| | | stateList.add(9); |
| | | break; |
| | | default: |
| | | stateList.add(Integer.valueOf(state)); |
| | | break; |
| | | } |
| | | if (type == 1) { |
| | |
| | | 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())); |
| | | } |
| | | } |