| | |
| | | |
| | | return success(count, rs); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "按文件类型统计") |
| | | @GetMapping(value = "/countSizesByType") |
| | | public ResponseMsg<Object> countSizesByType() { |
| | | try { |
| | | List<CountEntity> list = reportService.countSizesByType(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "按项目统计数据") |
| | | @GetMapping(value = "/countSizesByPrj") |
| | | public ResponseMsg<Object> countSizesByPrj() { |
| | | try { |
| | | List<CountEntity> list = reportService.countSizesByPrj(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "按项目统计钻孔数据") |
| | | @GetMapping(value = "/countExplorationPoints") |
| | | public ResponseMsg<Object> countExplorationPoints() { |
| | | try { |
| | | List<CountEntity> list = reportService.countExplorationPoints(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "下载报告") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "报告ID", dataType = "Integer", paramType = "7") |
| | | @ApiImplicitParam(name = "id", value = "报告ID", dataType = "Integer", paramType = "query", example = "18") |
| | | }) |
| | | @GetMapping(value = "/downloadReport") |
| | | public void downloadReport(Integer id, HttpServletRequest req, HttpServletResponse res) { |
| | |
| | | log.error(ex.getMessage(), ex); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "按项目统计数字高程模型面积") |
| | | @GetMapping(value = "/countDemAreaByPrj") |
| | | public ResponseMsg<Object> countDemAreaByPrj() { |
| | | try { |
| | | List<CountEntity> list = reportService.countDemAreaByPrj(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "按项目统计三维地形模型面积") |
| | | @GetMapping(value = "/countMptAreaByPrj") |
| | | public ResponseMsg<Object> countMptAreaByPrj() { |
| | | try { |
| | | List<CountEntity> list = reportService.countMptAreaByPrj(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "按项目统计倾斜摄影模型面积") |
| | | @GetMapping(value = "/countOsgbAreaByPrj") |
| | | public ResponseMsg<Object> countOsgbAreaByPrj() { |
| | | try { |
| | | List<CountEntity> list = reportService.countOsgbAreaByPrj(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "按项目统计激光点云模型面积") |
| | | @GetMapping(value = "/countLasAreaByPrj") |
| | | public ResponseMsg<Object> countLasAreaByPrj() { |
| | | try { |
| | | List<CountEntity> list = reportService.countLasAreaByPrj(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "按项目统计勘察工点个数") |
| | | @GetMapping(value = "/countSurveyWorksiteByPrj") |
| | | public ResponseMsg<Object> countSurveyWorksiteByPrj() { |
| | | try { |
| | | List<CountEntity> list = reportService.countSurveyWorksiteByPrj(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "按项目统计勘察报告个数") |
| | | @GetMapping(value = "/countExplorationReportByPrj") |
| | | public ResponseMsg<Object> countExplorationReportByPrj() { |
| | | try { |
| | | List<CountEntity> list = reportService.countExplorationReportByPrj(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "按项目统计崩塌个数") |
| | | @GetMapping(value = "/countCollapseByPrj") |
| | | public ResponseMsg<Object> countCollapseByPrj() { |
| | | try { |
| | | List<CountEntity> list = reportService.countCollapseByPrj(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "按项目统计泥石流个数") |
| | | @GetMapping(value = "/countDebrisFlowByPrj") |
| | | public ResponseMsg<Object> countDebrisFlowByPrj() { |
| | | try { |
| | | List<CountEntity> list = reportService.countDebrisFlowByPrj(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "按项目统计地面塌陷个数") |
| | | @GetMapping(value = "/countGroundCollapseByPrj") |
| | | public ResponseMsg<Object> countGroundCollapseByPrj() { |
| | | try { |
| | | List<CountEntity> list = reportService.countGroundCollapseByPrj(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "按项目统计高陡边坡个数") |
| | | @GetMapping(value = "/countHighSteepSlopeByPrj") |
| | | public ResponseMsg<Object> countHighSteepSlopeByPrj() { |
| | | try { |
| | | List<CountEntity> list = reportService.countHighSteepSlopeByPrj(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "按项目统计滑坡个数") |
| | | @GetMapping(value = "/countLandSlideByPrj") |
| | | public ResponseMsg<Object> countLandSlideByPrj() { |
| | | try { |
| | | List<CountEntity> list = reportService.countLandSlideByPrj(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "按项目统计不稳定斜坡个数") |
| | | @GetMapping(value = "/countUnstableSlopeByPrj") |
| | | public ResponseMsg<Object> countUnstableSlopeByPrj() { |
| | | try { |
| | | List<CountEntity> list = reportService.countUnstableSlopeByPrj(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "按项目统计水毁个数") |
| | | @GetMapping(value = "/countWaterDamageByPrj") |
| | | public ResponseMsg<Object> countWaterDamageByPrj() { |
| | | try { |
| | | List<CountEntity> list = reportService.countWaterDamageByPrj(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | } |