管道基础大数据平台系统开发-【后端】-Server
xing
2023-02-21 9ca3c6ef60688f0231b75698afaafc10b12435a7
src/main/resources/mapper/show/OneMapMapper.xml
@@ -6,45 +6,45 @@
    <!--  项目类别 select * from bs.bs_project;  -->
    <select id="projectCategoryConut" resultType="java.util.Map">
    <select id="projectCategoryCount" resultType="java.util.Map">
        select projtype,count(*) from bs.bs_project group by projtype;
    </select>
    <!--  项目位置分布 select a.*,st_astext(geom) from bs.bs_project a  -->
    <select id="projectLocationConut" resultType="java.util.Map">
    <select id="projectLocationCount" resultType="java.util.Map">
        select a.*,st_astext(geom) from bs.bs_project a;
    </select>
    <!--  项目类别 国家维度-数量  -->
    <select id="countryDimensionConut" resultType="java.util.Map">
    <select id="countryDimensionCount" resultType="java.util.Map">
        select country,count(*) from bs.bs_project group by country;
    </select>
    <!--  项目类别 省维度-数量  -->
    <select id="provinceDimensionConut" resultType="java.util.Map">
    <select id="provinceDimensionCount" resultType="java.util.Map">
        select province,count(*) from bs.bs_project where country like '%中国%' group by province ;
    </select>
    <!--  数据统计 数据存储  -->
    <select id="dataStorageConut" resultType="java.util.Map">
    <select id="dataStorageCount" resultType="java.util.Map">
        select name "名称", (select count(*) from lf.sys_meta b where b.dircode like a.code || '%') "文件数",
               (select count(sizes) from lf.sys_meta b where b.dircode like a.code || '%') "数量(MB)"
        from lf.sys_dir a where id > 1 and pid = 0;
    </select>
    <!--  数据统计 文件格式维度-文件个数  -->
    <select id="fileFormatConut" resultType="java.util.Map">
    <select id="fileFormatCount" resultType="java.util.Map">
        select type,count(*),count(sizes) from lf.sys_meta group by type;
    </select>
    <!--  数据统计 数据申请  -->
    <select id="dataApplyConut" resultType="java.util.Map">
    <select id="dataApplyCount" resultType="java.util.Map">
        select * from lf.sys_apply a inner join lf.sys_user b on a.userid = b.id;
    </select>
    <!--  数据统计 访问统计  -->
    <select id="dataVisitConut" resultType="java.util.Map">
    <select id="dataVisitCount" resultType="java.util.Map">
        select modular1,count(*) from lf.sys_operate group by modular1 order by modular1;
    </select>