13693261870
2 天以前 542a030a93de7dbc39e185d4ce355c5894e3cd5b
se-system/src/main/java/com/terra/system/controller/data/DataCountController.java
@@ -1,21 +1,23 @@
package com.terra.system.controller.data;
import com.terra.system.annotation.SysLog;
import com.terra.system.controller.all.BaseController;
import com.terra.system.entity.all.ResponseMsg;
import com.terra.common.annotation.SysLog;
import com.terra.common.controller.all.BaseController;
import com.terra.common.entity.all.ResponseMsg;
import com.terra.system.entity.ctrl.CountEntity;
import com.terra.system.entity.sys.ReportEntity;
import com.terra.system.entity.sys.UserEntity;
import com.terra.system.helper.StringHelper;
import com.terra.common.helper.StringHelper;
import com.terra.system.service.all.UploadAttachService;
import com.terra.system.service.sys.ReportService;
import com.terra.system.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import javax.annotation.Resource;
import io.swagger.v3.oas.annotations.enums.ParameterIn;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -25,7 +27,7 @@
 * 数据统计
 * @author WWW
 */
@Api(tags = "数据管理\\数据统计")
@Tag(name = "数据管理\\数据统计")
@RestController
@RequestMapping("/dataCount")
public class DataCountController extends BaseController {
@@ -39,12 +41,12 @@
    UploadAttachService uploadAttachService;
    @SysLog()
    @ApiOperation(value = "分页查询并返回记录数")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = ""),
            @ApiImplicitParam(name = "code", value = "编码", dataType = "String", paramType = "query", example = "countOperates"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1")
    @Operation(summary = "分页查询并返回记录数")
    @Parameters({
            @Parameter(name = "name", description = "名称", in = ParameterIn.QUERY, example = ""),
            @Parameter(name = "code", description = "编码", in = ParameterIn.QUERY, example = "countOperates"),
            @Parameter(name = "pageSize", description = "每页条数", in = ParameterIn.QUERY, example = "10"),
            @Parameter(name = "pageIndex", description = "分页数(从1开始)", in = ParameterIn.QUERY, example = "1")
    })
    @GetMapping(value = "/selectByPageAndCount")
    public ResponseMsg<List<ReportEntity>> selectByPageAndCount(String name, String code, Integer pageSize, Integer pageIndex) {
@@ -67,7 +69,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询数据量统计")
    @Operation(summary = "查询数据量统计")
    @GetMapping(value = "/selectCountSizes")
    public ResponseMsg<Object> selectCountSizes() {
        try {
@@ -80,7 +82,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按文件类型统计")
    @Operation(summary = "按文件类型统计")
    @GetMapping(value = "/countSizesByType")
    public ResponseMsg<Object> countSizesByType() {
        try {
@@ -93,7 +95,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询服务调用量统计")
    @Operation(summary = "查询服务调用量统计")
    @GetMapping(value = "/selectCountServices")
    public ResponseMsg<Object> selectCountServices() {
        try {
@@ -106,7 +108,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询用户流量统计")
    @Operation(summary = "查询用户流量统计")
    @GetMapping(value = "/selectCountOperates")
    public ResponseMsg<Object> selectCountOperates() {
        try {
@@ -119,7 +121,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计数据")
    @Operation(summary = "按项目统计数据")
    @GetMapping(value = "/countSizesByPrj")
    public ResponseMsg<Object> countSizesByPrj() {
        try {
@@ -132,7 +134,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计钻孔数据")
    @Operation(summary = "按项目统计钻孔数据")
    @GetMapping(value = "/countExplorationPoints")
    public ResponseMsg<Object> countExplorationPoints() {
        try {
@@ -145,10 +147,10 @@
    }
    @SysLog()
    @ApiOperation(value = "下载报告")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "报告ID", dataType = "Integer", paramType = "query", example = "18"),
            @ApiImplicitParam(name = "code", value = "目录编码", dataType = "String", paramType = "query", example = "00"),
    @Operation(summary = "下载报告")
    @Parameters({
            @Parameter(name = "id", description = "报告ID", in = ParameterIn.QUERY, example = "18"),
            @Parameter(name = "code", description = "目录编码", in = ParameterIn.QUERY, example = "00"),
    })
    @GetMapping(value = "/downloadReport")
    public void downloadReport(Integer id, String code, HttpServletRequest req, HttpServletResponse res) {
@@ -171,7 +173,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计数字高程模型面积")
    @Operation(summary = "按项目统计数字高程模型面积")
    @GetMapping(value = "/countDemAreaByPrj")
    public ResponseMsg<Object> countDemAreaByPrj() {
        try {
@@ -184,7 +186,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计三维地形模型面积")
    @Operation(summary = "按项目统计三维地形模型面积")
    @GetMapping(value = "/countMptAreaByPrj")
    public ResponseMsg<Object> countMptAreaByPrj() {
        try {
@@ -197,7 +199,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计倾斜摄影模型面积")
    @Operation(summary = "按项目统计倾斜摄影模型面积")
    @GetMapping(value = "/countOsgbAreaByPrj")
    public ResponseMsg<Object> countOsgbAreaByPrj() {
        try {
@@ -210,7 +212,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计激光点云模型面积")
    @Operation(summary = "按项目统计激光点云模型面积")
    @GetMapping(value = "/countLasAreaByPrj")
    public ResponseMsg<Object> countLasAreaByPrj() {
        try {
@@ -223,7 +225,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计勘察工点个数")
    @Operation(summary = "按项目统计勘察工点个数")
    @GetMapping(value = "/countSurveyWorksiteByPrj")
    public ResponseMsg<Object> countSurveyWorksiteByPrj() {
        try {
@@ -236,7 +238,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计勘察报告个数")
    @Operation(summary = "按项目统计勘察报告个数")
    @GetMapping(value = "/countExplorationReportByPrj")
    public ResponseMsg<Object> countExplorationReportByPrj() {
        try {
@@ -249,7 +251,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计崩塌个数")
    @Operation(summary = "按项目统计崩塌个数")
    @GetMapping(value = "/countCollapseByPrj")
    public ResponseMsg<Object> countCollapseByPrj() {
        try {
@@ -262,7 +264,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计泥石流个数")
    @Operation(summary = "按项目统计泥石流个数")
    @GetMapping(value = "/countDebrisFlowByPrj")
    public ResponseMsg<Object> countDebrisFlowByPrj() {
        try {
@@ -275,7 +277,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计地面塌陷个数")
    @Operation(summary = "按项目统计地面塌陷个数")
    @GetMapping(value = "/countGroundCollapseByPrj")
    public ResponseMsg<Object> countGroundCollapseByPrj() {
        try {
@@ -288,7 +290,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计高陡边坡个数")
    @Operation(summary = "按项目统计高陡边坡个数")
    @GetMapping(value = "/countHighSteepSlopeByPrj")
    public ResponseMsg<Object> countHighSteepSlopeByPrj() {
        try {
@@ -301,7 +303,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计滑坡个数")
    @Operation(summary = "按项目统计滑坡个数")
    @GetMapping(value = "/countLandSlideByPrj")
    public ResponseMsg<Object> countLandSlideByPrj() {
        try {
@@ -314,7 +316,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计不稳定斜坡个数")
    @Operation(summary = "按项目统计不稳定斜坡个数")
    @GetMapping(value = "/countUnstableSlopeByPrj")
    public ResponseMsg<Object> countUnstableSlopeByPrj() {
        try {
@@ -327,7 +329,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计水毁个数")
    @Operation(summary = "按项目统计水毁个数")
    @GetMapping(value = "/countWaterDamageByPrj")
    public ResponseMsg<Object> countWaterDamageByPrj() {
        try {
@@ -340,7 +342,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计数字线划图面积")
    @Operation(summary = "按项目统计数字线划图面积")
    @GetMapping(value = "/countDlgAreaByPrj")
    public ResponseMsg<Object> countDlgAreaByPrj() {
        try {
@@ -353,7 +355,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计数字正射影像图面积")
    @Operation(summary = "按项目统计数字正射影像图面积")
    @GetMapping(value = "/countDomAreaByPrj")
    public ResponseMsg<Object> countDomAreaByPrj() {
        try {
@@ -366,7 +368,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计管线长度")
    @Operation(summary = "按项目统计管线长度")
    @GetMapping(value = "/countLineLength")
    public ResponseMsg<Object> countLineLength() {
        try {
@@ -379,7 +381,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计勘探点个数")
    @Operation(summary = "按项目统计勘探点个数")
    @GetMapping(value = "/countExplorationPointByPrj")
    public ResponseMsg<Object> countExplorationPointByPrj() {
        try {
@@ -392,7 +394,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计三维地质模型面积")
    @Operation(summary = "按项目统计三维地质模型面积")
    @GetMapping(value = "/countGeoModelAreaByPrj")
    public ResponseMsg<Object> countGeoModelAreaByPrj() {
        try {
@@ -405,7 +407,7 @@
    }
    @SysLog()
    @ApiOperation(value = "按项目统计地灾点个数")
    @Operation(summary = "按项目统计地灾点个数")
    @GetMapping(value = "/countGeologicHazardByPrj")
    public ResponseMsg<Object> countGeologicHazardByPrj() {
        try {
@@ -418,9 +420,9 @@
    }
    @SysLog()
    @ApiOperation(value = "项目数据分类统计")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "code", value = "项目编码", dataType = "String", paramType = "query", example = "0B")
    @Operation(summary = "项目数据分类统计")
    @Parameters({
            @Parameter(name = "code", description = "项目编码", in = ParameterIn.QUERY, example = "0B")
    })
    @GetMapping(value = "/countVariousDataByPrj")
    public ResponseMsg<Object> countVariousDataByPrj(String code) {