| | |
| | | @SysLog() |
| | | @ApiOperation(value = "下载报告") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "报告ID", dataType = "Integer", paramType = "query", example = "18") |
| | | @ApiImplicitParam(name = "id", value = "报告ID", dataType = "Integer", paramType = "query", example = "18"), |
| | | @ApiImplicitParam(name = "code", value = "目录编码", dataType = "String", paramType = "query", example = "00"), |
| | | }) |
| | | @GetMapping(value = "/downloadReport") |
| | | public void downloadReport(Integer id, HttpServletRequest req, HttpServletResponse res) { |
| | | public void downloadReport(Integer id, String code, HttpServletRequest req, HttpServletResponse res) { |
| | | try { |
| | | if (null == id || id < 1) { |
| | | return; |
| | |
| | | |
| | | UserEntity ue = tokenService.getCurrentUser(req); |
| | | |
| | | reportService.createReport(ue, re, res); |
| | | reportService.createReport(ue, re, code, res); |
| | | } catch (Exception ex) { |
| | | log.error(ex.getMessage(), ex); |
| | | } |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "按项目统计地质模型面积") |
| | | @ApiOperation(value = "按项目统计三维地质模型面积") |
| | | @GetMapping(value = "/countGeoModelAreaByPrj") |
| | | public ResponseMsg<Object> countGeoModelAreaByPrj() { |
| | | try { |
| | |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "项目数据分类统计") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "code", value = "项目编码", dataType = "String", paramType = "query", example = "0B") |
| | | }) |
| | | @GetMapping(value = "/countVariousDataByPrj") |
| | | public ResponseMsg<Object> countVariousDataByPrj(String code) { |
| | | try { |
| | | if (StringHelper.isEmpty(code)) { |
| | | return fail("项目编码不能为空"); |
| | | } |
| | | |
| | | List<CountEntity> list = reportService.countVariousDataByPrj(code); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
| | | } |
| | | } |