管道基础大数据平台系统开发-【后端】-Server
13693261870
2024-03-21 e55b5aaddc111abc8ae61260eb20fddf6b089c07
src/main/java/com/lf/server/controller/data/DataCountController.java
@@ -147,10 +147,11 @@
    @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;
@@ -163,7 +164,7 @@
            UserEntity ue = tokenService.getCurrentUser(req);
            reportService.createReport(ue, re, res);
            reportService.createReport(ue, re, code, res);
        } catch (Exception ex) {
            log.error(ex.getMessage(), ex);
        }
@@ -339,7 +340,7 @@
    }
    @SysLog()
    @ApiOperation(value = "统计数字线划图面积")
    @ApiOperation(value = "按项目统计数字线划图面积")
    @GetMapping(value = "/countDlgAreaByPrj")
    public ResponseMsg<Object> countDlgAreaByPrj() {
        try {
@@ -391,7 +392,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计地质模型面积")
    @ApiOperation(value = "按项目统计三维地质模型面积")
    @GetMapping(value = "/countGeoModelAreaByPrj")
    public ResponseMsg<Object> countGeoModelAreaByPrj() {
        try {
@@ -415,4 +416,24 @@
            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);
        }
    }
}