package com.lf.server.controller.show;
|
|
|
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
|
*/
|
@ApiOperation(value = "项目类别")
|
@GetMapping("/countProjectCategory")
|
public ResponseMsg<Object> projectCategoryConut() {
|
List<String> resList = aMapOfPipelineService.projectCategoryConut();
|
return success(resList);
|
}
|
|
/**
|
* 项目位置分布接口
|
* Project location
|
*/
|
@ApiOperation(value = "项目位置分布接口")
|
@GetMapping("/countProjectLocation")
|
public ResponseMsg<Object> projectLocationConut() {
|
List<String> resList = aMapOfPipelineService.projectLocationConut();
|
return success(resList);
|
}
|
|
|
/**
|
* 国家维度-数量统计
|
* Country dimension
|
*/
|
@ApiOperation(value = "国家维度-数量统计")
|
@GetMapping("/conutCountryDimension")
|
public ResponseMsg<Object> countryDimensionConut() {
|
List<String> resList = aMapOfPipelineService.countryDimensionConut();
|
return success(resList);
|
}
|
|
/**
|
* 省维度-数量统计
|
* Province dimension - quantity
|
*/
|
@ApiOperation(value = "省维度-数量统计")
|
@GetMapping("/conutProvinceDimension")
|
public ResponseMsg<Object> provinceDimensionConut() {
|
List<String> resList = aMapOfPipelineService.provinceDimensionConut();
|
return success(resList);
|
}
|
|
|
//============[数据统计 data Statistics]==================
|
|
/**
|
* 数据统计
|
* 数据存储
|
* data storage
|
*/
|
@ApiOperation(value = "数据存储统计")
|
@GetMapping("/countDataStorage")
|
public ResponseMsg<Object> dataStorageConut() {
|
List<String> resList = aMapOfPipelineService.dataStorageConut();
|
return success(resList);
|
}
|
|
/**
|
* 数据统计
|
* 文件格式维度-文件个数
|
* File format dimension
|
*/
|
@ApiOperation(value = "文件格式维度-文件个数")
|
@GetMapping("/conutFileFormat")
|
public ResponseMsg<Object> fileFormatConut() {
|
List<String> resList = aMapOfPipelineService.fileFormatConut();
|
return success(resList);
|
}
|
|
/**
|
* 数据统计
|
* 数据申请
|
* Data application
|
*/
|
@ApiOperation(value = "数据申请")
|
@GetMapping("/conutDataApply")
|
public ResponseMsg<Object> dataApplyConut() {
|
List<String> resList = aMapOfPipelineService.dataApplyConut();
|
return success(resList);
|
}
|
|
/**
|
* 数据统计
|
* 访问次数
|
* Number of visits
|
*/
|
@ApiOperation(value = "访问次数")
|
@GetMapping("/conutDataVisit")
|
public ResponseMsg<Object> dataVisitConut() {
|
List<String> resList = aMapOfPipelineService.dataVisitConut();
|
return success(resList);
|
}
|
|
|
/**
|
* 数据统计
|
* 访问次数
|
* Number of visits
|
*/
|
@ApiOperation(value = "访问次数")
|
@GetMapping("data_visit1")
|
public ResponseMsg<Object> dataVisitConut1() {
|
List<String> resList = aMapOfPipelineService.dataVisitConut();
|
return success(resList);
|
}
|
|
|
}
|