| | |
| | | @GetMapping("/query/{type}") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "state", value = "处理状态(0误报 1上报 2立案 3派遣 4处置 5核查 6结案7处理中)", dataType = "Integer"), |
| | | @ApiImplicitParam(name = "type", value = "01 违规,02 违建", dataType = "Integer") |
| | | @ApiImplicitParam(name = "type", value = "01 违规,02 违建", dataType = "Integer"), |
| | | @ApiImplicitParam(name = "resource", value = "事件来源(1-视频 2-手动登记)", dataType = "Integer") |
| | | }) |
| | | public CommonResult searchViolation(@RequestParam Integer size, |
| | | @RequestParam Integer current, |
| | |
| | | @ApiOperation(value = "添加违规案件") |
| | | @PostMapping("/addition_violation") |
| | | public CommonResult addViolationCase(@RequestBody @Validated ViolationParam violationParam) { |
| | | Integer eventResource=2; |
| | | BaseCase baseCase = new BaseCase(); |
| | | BeanUtils.copyProperties(violationParam, baseCase); |
| | | baseCaseService.save(baseCase); |
| | | baseCase.setEventSource(eventResource); |
| | | return CommonResult.success(baseCaseService.saveViolationCase(violationParam, baseCase.getId())); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "添加违建案件") |
| | | @PostMapping("/addition_illegal_building") |
| | | public CommonResult addIllegalBuildingCase(@RequestBody @Validated IllegalBuildingParam illegalBuildingParam) { |
| | | Integer eventResource=2; |
| | | BaseCase baseCase = new BaseCase(); |
| | | BeanUtils.copyProperties(illegalBuildingParam, baseCase); |
| | | baseCaseService.save(baseCase); |
| | | baseCase.setEventSource(eventResource); |
| | | return CommonResult.success(baseCaseService.saveIllegalBuildingCase(illegalBuildingParam, baseCase.getId())); |
| | | } |
| | | |
| | | @ApiOperation("人工路径案件图片展示") |
| | | @GetMapping("/hand_work_case_images") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "type", value = "01 违规,02 违建", dataType = "Integer") |
| | | }) |
| | | public CommonResult queryCaseImages(@RequestParam Integer id,@RequestParam Integer type){ |
| | | return CommonResult.success(baseCaseService.listCaseImages(id,type)); |
| | | } |
| | | |
| | | } |