| | |
| | | import com.ycl.controller.BaseController; |
| | | import com.ycl.common.constant.BaseCaseStatus; |
| | | import com.ycl.common.util.UtilNumber; |
| | | import com.ycl.dto.caseHandler.CheckParam; |
| | | import com.ycl.dto.caseHandler.QueryForViolationParam; |
| | | import com.ycl.dto.casePool.IllegalBuildingParam; |
| | | import com.ycl.dto.casePool.VideoInspectParam; |
| | |
| | | stateList.add(3); |
| | | stateList.add(4); |
| | | stateList.add(9); |
| | | break; |
| | | case "-1": |
| | | break; |
| | | default: |
| | | stateList.add(Integer.valueOf(state)); |
| | |
| | | ImageResources imageResources = new ImageResources(); |
| | | imageResources.setType("01"); |
| | | imageResources.setBelongToId(baseCase.getId()); |
| | | imageResources.setUrl(illegalBuildingParam.getImageUrls().toString()); |
| | | imageResources.setUrl(String.join(",", illegalBuildingParam.getImageUrls())); |
| | | imageResources.setCreateTime(LocalDateTime.now()); |
| | | imageResources.setCreateUser(user.getUserId()); |
| | | iImageResourcesService.save(imageResources); |
| | |
| | | return CommonResult.success("end case success~!"); |
| | | } |
| | | |
| | | @ApiOperation(value = "批量结案") |
| | | @RequestMapping(value = "/end_case_batch", method = RequestMethod.POST) |
| | | @ResponseBody |
| | | @LogSave(operationType = "批量结案", contain = "批量结案") |
| | | public CommonResult endCaseBatch(@RequestBody CheckParam checkParam) { |
| | | checkParam.getIds().forEach(o -> { |
| | | String result = "结案"; |
| | | String opinion = "同意结案"; |
| | | baseCaseService.endCase(o, result, opinion); |
| | | }); |
| | | return CommonResult.success("end case success~!"); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询案卷") |
| | | @GetMapping("/query_case") |
| | | public CommonResult<Page<BaseCase>> queryCase(@RequestParam Integer pageSize, |