| | |
| | | import com.lf.server.annotation.SysLog; |
| | | import com.lf.server.controller.all.BaseController; |
| | | import com.lf.server.entity.all.ResponseMsg; |
| | | import com.lf.server.entity.bs.MpipelineEntity; |
| | | 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.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | |
| | | OneMapService aMapOfPipelineService; |
| | | |
| | | |
| | | |
| | | //============[项目统计 project Statistics]================== |
| | | |
| | | /** |
| | | * 项目类别 |
| | | * Project category |
| | |
| | | return success(resList); |
| | | } |
| | | |
| | | /** |
| | | * 下载量统计 |
| | | * Download statistics |
| | | * <p>type类型:1-Shp文件,2-专题图,3-源数据,4-业务数据,5-管道分析,6-统计报告<p/> |
| | | */ |
| | | @SysLog() |
| | | @ApiOperation(value = "下载量统计") |
| | | @GetMapping("/countDownloads") |
| | | public ResponseMsg<Object> countDownloads() { |
| | | List<String> resList = aMapOfPipelineService.countDownloads(); |
| | | return success(resList); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 项目工程展示 |
| | |
| | | @SysLog() |
| | | @ApiOperation(value = "项目工程巡视") |
| | | @GetMapping("/countProjectTour") |
| | | public ResponseMsg<Object> countProjectTour() { |
| | | return success("hello! 您已经成功访问-项目工程巡视"); |
| | | public ResponseMsg<Object> countProjectTour(MpipelineEntity mpipelineEntity) { |
| | | List<String> resList = aMapOfPipelineService.countProjectTour(mpipelineEntity); |
| | | return success("hello! 您已经成功访问-项目工程巡视", resList); |
| | | } |
| | | |
| | | /** |
| | | * 项目工程巡视列表 |
| | | * Project inspection tour |
| | | */ |
| | | @SysLog() |
| | | @ApiOperation(value = "项目工程巡视列表") |
| | | @GetMapping("/selectProjectTour") |
| | | public ResponseMsg<Object> selectProjectTour() { |
| | | List<String> resList = aMapOfPipelineService.selectProjectTour(); |
| | | return success(resList); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 项目工程类型 |
| | | * Project type |
| | | * 工程项目目录 |
| | | * Project Catalog |
| | | */ |
| | | /*@SysLog() |
| | | @ApiOperation(value = "项目工程类型") |
| | | @GetMapping("/countProjectType") |
| | | public ResponseMsg<Object> countProjectType() { |
| | | List<String> resList = aMapOfPipelineService.countProjectType1(); |
| | | @SysLog() |
| | | @ApiOperation(value = "工程项目目录") |
| | | @GetMapping("/selectProjectType") |
| | | public ResponseMsg<Object> selectProjectType1() { |
| | | List<String> resList = aMapOfPipelineService.selectProjectType1(); |
| | | return success(resList); |
| | | }*/ |
| | | } |
| | | |
| | | /** |
| | | * 根据表名查询表字段信息 |
| | | * Query table field information according to table name |
| | | */ |
| | | @ApiOperation(value = "根据表名查询表字段信息") |
| | | @GetMapping("/selectTableInfo") |
| | | public ResponseMsg<Object> selectTableInfo(@RequestParam("tableName") String tableName) { |
| | | List<String> resList = aMapOfPipelineService.queryTableInfo(tableName); |
| | | return success(resList); |
| | | } |
| | | |
| | | |
| | | } |