package com.lf.server.controller.show;
|
|
|
import com.lf.server.annotation.SysLog;
|
import com.lf.server.controller.all.BaseController;
|
import com.lf.server.entity.all.ResponseMsg;
|
import com.lf.server.service.show.OneMapService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import java.util.List;
|
|
/**
|
* 管网一张图
|
* aFigurePipelineNetwork
|
*
|
* @author xing
|
* @date 2023/02/13
|
*/
|
|
@Api(tags = "管网一张图")
|
@RestController
|
@RequestMapping("/one_map")
|
public class OneMapController extends BaseController {
|
|
@Autowired
|
OneMapService aMapOfPipelineService;
|
|
//@SysLog()
|
@GetMapping("/hello")
|
public ResponseMsg<Object> hello() {
|
System.out.println("log = " + log);
|
return success("hello! 您已经成功访问", 1);
|
}
|
|
|
//============[项目统计 project Statistics]==================
|
|
/**
|
* 项目类别
|
* Project category
|
*/
|
@SysLog()
|
@ApiOperation(value = "项目类别")
|
@GetMapping("/countProjectCategory")
|
public ResponseMsg<Object> projectCategoryCount() {
|
List<String> resList = aMapOfPipelineService.projectCategoryCount();
|
return success(resList);
|
}
|
|
/**
|
* 项目位置分布接口
|
* Project location
|
*/
|
@SysLog()
|
@ApiOperation(value = "项目位置分布接口")
|
@GetMapping("/countProjectLocation")
|
public ResponseMsg<Object> projectLocationCount() {
|
List<String> resList = aMapOfPipelineService.projectLocationCount();
|
return success(resList);
|
}
|
|
|
/**
|
* 国家维度-数量统计
|
* Country dimension
|
*/
|
@SysLog()
|
@ApiOperation(value = "国家维度-数量统计")
|
@GetMapping("/countCountryDimension")
|
public ResponseMsg<Object> countryDimensionCount() {
|
List<String> resList = aMapOfPipelineService.countryDimensionCount();
|
return success(resList);
|
}
|
|
/**
|
* 省维度-数量统计
|
* Province dimension - quantity
|
*/
|
@SysLog()
|
@ApiOperation(value = "省维度-数量统计")
|
@GetMapping("/countProvinceDimension")
|
public ResponseMsg<Object> provinceDimensionCount() {
|
List<String> resList = aMapOfPipelineService.provinceDimensionCount();
|
return success(resList);
|
}
|
|
|
//============[数据统计 data Statistics]==================
|
|
/**
|
* 数据统计
|
* 数据存储
|
* data storage
|
*/
|
@SysLog()
|
@ApiOperation(value = "数据存储统计")
|
@GetMapping("/countDataStorage")
|
public ResponseMsg<Object> dataStorageCount() {
|
List<String> resList = aMapOfPipelineService.dataStorageCount();
|
return success(resList);
|
}
|
|
/**
|
* 数据统计
|
* 文件格式维度-文件个数
|
* File format dimension
|
*/
|
@SysLog()
|
@ApiOperation(value = "文件格式维度-文件个数")
|
@GetMapping("/countFileFormat")
|
public ResponseMsg<Object> fileFormatCount() {
|
List<String> resList = aMapOfPipelineService.fileFormatCount();
|
return success(resList);
|
}
|
|
/**
|
* 数据统计
|
* 数据申请
|
* Data application
|
*/
|
@SysLog()
|
@ApiOperation(value = "数据申请")
|
@GetMapping("/countDataApply")
|
public ResponseMsg<Object> dataApplyCount() {
|
List<String> resList = aMapOfPipelineService.dataApplyCount();
|
return success(resList);
|
}
|
|
/**
|
* 数据统计
|
* 访问次数
|
* Number of visits
|
*/
|
@SysLog()
|
@ApiOperation(value = "访问次数")
|
@GetMapping("/countDataVisit")
|
public ResponseMsg<Object> dataVisitCount() {
|
List<String> resList = aMapOfPipelineService.dataVisitCount();
|
return success(resList);
|
}
|
|
|
/**
|
* 数据统计
|
* 访问次数
|
* Number of visits
|
*/
|
@SysLog()
|
@ApiOperation(value = "访问次数")
|
@GetMapping("data_visit1")
|
public ResponseMsg<Object> dataVisitConut1() {
|
List<String> resList = aMapOfPipelineService.dataVisitCount();
|
return success(resList);
|
}
|
|
|
}
|