20230226@xingjs@提交官网一张图相关内容接口(新增服务大类统计、数据服务类型统计)
| | |
| | | } |
| | | |
| | | /** |
| | | * 数据大类统计 |
| | | * Statistics of large categories of data |
| | | */ |
| | | @SysLog() |
| | | @ApiOperation(value = "数据大类统计") |
| | | @GetMapping("/countLargeCategories") |
| | | public ResponseMsg<Object> statisticalDataCategories() { |
| | | List<String> resList = aMapOfPipelineService.statisticalDataCategories(); |
| | | return success(resList); |
| | | } |
| | | |
| | | /** |
| | | * 数据服务类型统计 |
| | | * Data service type statistics |
| | | * */ |
| | | @SysLog() |
| | | @ApiOperation(value = "数据服务类型统计") |
| | | @GetMapping("/countDataServiceType") |
| | | public ResponseMsg<Object> statisticalDataServiceType() { |
| | | List<String> resList = aMapOfPipelineService.statisticalDataServiceType(); |
| | | return success(resList); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 数据统计 |
| | | * 文件格式维度-文件个数 |
| | | * File format dimension |
| | |
| | | public List<String> dataStorageCount(); |
| | | |
| | | /** |
| | | * 统计数据类别 |
| | | * |
| | | * @return {@link List}<{@link String}> |
| | | */ |
| | | public List<String> statisticalDataCategories(); |
| | | |
| | | /** |
| | | * 统计数据服务类型 |
| | | * |
| | | * @return {@link List}<{@link String}> |
| | | */ |
| | | public List<String> statisticalDataServiceType(); |
| | | |
| | | /** |
| | | * 文件格式conut |
| | | * |
| | | * @return {@link List}<{@link String}> |
| | |
| | | } |
| | | |
| | | /** |
| | | * 统计数据类别 |
| | | * |
| | | * @return {@link List}<{@link String}> |
| | | */ |
| | | @Override |
| | | public List<String> statisticalDataCategories() { |
| | | return aMapOfPipelineMapper.statisticalDataCategories(); |
| | | } |
| | | |
| | | /** |
| | | * 统计数据服务类型 |
| | | * |
| | | * @return {@link List}<{@link String}> |
| | | */ |
| | | @Override |
| | | public List<String> statisticalDataServiceType() { |
| | | return aMapOfPipelineMapper.statisticalDataServiceType(); |
| | | } |
| | | |
| | | /** |
| | | * 文件格式conut |
| | | * |
| | | * @return {@link List}<{@link String}> |
| | |
| | | from lf.sys_dir a where id > 1 and pid = 0; |
| | | </select> |
| | | |
| | | <!-- 数据大类统计 --> |
| | | <select id="statisticalDataCategories" resultType="java.util.Map"> |
| | | SELECT name, |
| | | (SELECT count(b.id) |
| | | FROM lf.sys_meta b |
| | | WHERE dircode similar to '(' || |
| | | (SELECT string_agg(code, |
| | | '|') |
| | | FROM lf.sys_dir c |
| | | WHERE c.name = a.name) || ')%') "count", |
| | | (SELECT coalesce(sum(b.sizes), |
| | | 0) |
| | | FROM lf.sys_meta b |
| | | WHERE dircode similar to '(' || |
| | | (SELECT string_agg(code, |
| | | '|') |
| | | FROM lf.sys_dir c |
| | | WHERE c.name = a.name) || ')%') "sizes" |
| | | FROM lf.sys_dir a |
| | | WHERE name IN ('基础测绘', '基础地灾', '基础勘察', '合规数据', '管理数据', '测量(ESV)', '勘察(EGE)', '地灾(EGD)', '洞库(EGD)') |
| | | GROUP BY name |
| | | ORDER BY name; |
| | | </select> |
| | | |
| | | |
| | | <!-- 统计数据服务类型 --> |
| | | <select id="statisticalDataServiceType" resultType="java.util.Map"> |
| | | SELECT COUNT(*),TYPE FROM lf.sys_serve_log GROUP BY TYPE; |
| | | </select> |
| | | |
| | | <!-- 数据统计 文件格式维度-文件个数 select type,count(*),count(sizes) from lf.sys_meta group by type; --> |
| | | <select id="fileFormatCount" resultType="java.util.Map"> |
| | | select type,count(type) AS number,sum(sizes) AS capacity from lf.sys_meta group by type; |