管道基础大数据平台系统开发-【后端】-Server
xing
2023-02-27 c565deb6ad9903ddc7fb09647adf4fc2cc31ef49
Merge remote-tracking branch 'origin/master'
已修改27个文件
156 ■■■■ 文件已修改
data/db_cx.sql 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
data/db_tab.sql 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
data/update.sql 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
data/表结构变更说明.txt 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/controller/all/BaseQueryController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/controller/data/MetaController.java 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/controller/data/upload/CheckController.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/controller/data/upload/QueryController.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/controller/data/upload/UploadController.java 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/controller/show/DataLibController.java 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/controller/show/OneMapController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/entity/data/MetaEntity.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/entity/data/MetaFileEntity.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/entity/sys/MetaDownEntity.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/mapper/data/MetaMapper.java 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/mapper/sys/MetaDownMapper.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/service/all/BaseUploadService.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/service/data/DownloadService.java 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/service/data/MetaService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/service/data/UploadService.java 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/service/show/DataLibService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/service/show/ExportService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/service/show/MarkService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/service/show/PipelineService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/service/sys/MetaDownService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/service/sys/ReportService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/show/OneMapMapper.xml 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
data/db_cx.sql
@@ -357,4 +357,3 @@
data/db_tab.sql
@@ -547,7 +547,7 @@
--insert into lf.sys_role_menu_auth (roleid,menu_auth_id) values (1,1);
select * from lf.sys_role_menu_auth;
----------------------------------------------------------------------------------------------------- 16.源数据表
----------------------------------------------------------------------------------------------------- 16.元数据表
-- DROP TABLE IF EXISTS lf.sys_meta;
create table lf.sys_meta (
  id serial primary key,
@@ -576,10 +576,10 @@
);
-- drop index index_sys_meta_geom;
create index index_sys_meta_geom on lf.sys_meta using GIST (geom);
comment on table lf.sys_meta is '源数据表';
comment on table lf.sys_meta is '元数据表';
comment on column lf.sys_meta.id is '主键ID';
comment on column lf.sys_meta.eventid is 'GUID';
comment on column lf.sys_meta.metaid is '父源数据ID:0-没有';
comment on column lf.sys_meta.metaid is '父元数据ID:0-没有';
comment on column lf.sys_meta.ismeta is '是否为元数据';
comment on column lf.sys_meta.dirid is '目录ID';
comment on column lf.sys_meta.depid is '单位ID';
@@ -783,7 +783,7 @@
comment on table lf.sys_download is '下载表';
comment on column lf.sys_download.id is '主键ID';
comment on column lf.sys_download.name is '名称';
comment on column lf.sys_download.type is '类型:1-Shp文件,2-专题图,3-源数据,4-业务数据,5-管道分析,6-统计报告';
comment on column lf.sys_download.type is '类型:1-Shp文件,2-专题图,3-元数据,4-业务数据,5-管道分析,6-统计报告';
comment on column lf.sys_download.depid is '单位ID';
comment on column lf.sys_download.sizes is '文件大小:单位MB';
comment on column lf.sys_download.dcount is '下载次数';
@@ -1183,7 +1183,7 @@
comment on column lf.sys_coord.remarks is '备注';
select * from lf.sys_coord;
----------------------------------------------------------------------------------------------------- 35.源数据-下载表
----------------------------------------------------------------------------------------------------- 35.元数据-下载表
-- drop table if exists lf.sys_meta_down;
create table lf.sys_meta_down(
  id serial primary key,
@@ -1192,9 +1192,9 @@
  create_user integer default 1,
  create_time timestamp(6) without time zone default now()
);
comment on table lf.sys_meta_down is '源数据-下载表';
comment on table lf.sys_meta_down is '元数据-下载表';
comment on column lf.sys_meta_down.id is '主键ID';
comment on column lf.sys_meta_down.metaid is '源数据ID';
comment on column lf.sys_meta_down.metaid is '元数据ID';
comment on column lf.sys_meta_down.downid is '下载ID';
comment on column lf.sys_meta_down.create_user is '创建人ID';
comment on column lf.sys_meta_down.create_time is '创建时间';
data/update.sql
@@ -67,7 +67,7 @@
select * from lf.sys_menu where cn_name = '资源审核';
update lf.sys_menu set url = 'http://10.7.0.186:88/resm/#/resapproval?embed=true&token=' where cn_name = '资源审核';
--------------------------------------------------------- åˆå§‹åŒ–源数据
--------------------------------------------------------- åˆå§‹åŒ–元数据
insert into lf.sys_meta (name,dirid) values ('项目WBS导出.xlsx',57);
insert into lf.sys_meta (name,dirid) values ('00116BT02-CR001#ESV-DW-0101 å°é¢.docx',62);
insert into lf.sys_meta (name,dirid) values ('00116BT02-CR001#ESV-DW-0101(大河沿河穿越地形图)0.dwg',62);
@@ -107,7 +107,8 @@
update lf.sys_dict set type='integer' where field='updateuser' and type='text';
--------------------------------------------------------- 01 lf.sys_dep
-- alter sequence lf.sys_meta_id_seq restart with 1;
update lf.sys_operate set modular2='源数据管理' where modular2='元数据';
update lf.sys_operate set modular2='元数据管理' where modular2='源数据管理';
select modular1,modular2 from lf.sys_operate group by modular1,modular2;
delete from lf.sys_dep where id = 59;
update lf.sys_dep set bak = null where bak = ' ';
@@ -222,7 +223,7 @@
-- æŒ‰æ–‡ä»¶ç±»åž‹ç»Ÿè®¡
select type,count(*),sum(sizes) from lf.sys_meta group by type;
-- type类型:1-Shp文件,2-专题图,3-源数据,4-业务数据,5-管道分析,6-统计报告
-- type类型:1-Shp文件,2-专题图,3-元数据,4-业务数据,5-管道分析,6-统计报告
select * from lf.sys_download;
select * from lf.sys_serve_log
data/±í½á¹¹±ä¸ü˵Ã÷.txt
@@ -4,8 +4,8 @@
3.用户表 lf.sys_user æ·»åŠ äº† depcode,对应 lf.sys_dep.code,为减少变更 lf.sys_user.depid ä»ç„¶å­˜åœ¨ã€‚
4.源数据表 lf.sys_meta çš„ depid(整数) æ”¹ä¸º depcode(字符)对应 lf.sys_dep.code,dirid(整数) æ”¹ä¸º dircode(字符)对应 lf.sys_dir.code。
注:旧名为 å…ƒæ•°æ®ï¼Œåº”用户要求改为 æºæ•°æ®ã€‚
4.元数据表 lf.sys_meta çš„ depid(整数) æ”¹ä¸º depcode(字符)对应 lf.sys_dep.code,dirid(整数) æ”¹ä¸º dircode(字符)对应 lf.sys_dir.code。
注:旧名为 å…ƒæ•°æ®ï¼Œåº”用户要求改为 å…ƒæ•°æ®ã€‚
5.完整名称:
-- æŸ¥è¯¢å•位完整名,00030701 ä¸º lf.sys_dep.id = 55 çš„code值
@@ -14,7 +14,7 @@
-- æŸ¥è¯¢ç›®å½•完整名,01000000020000 ä¸º lf.sys_dir.id = 90 çš„code值
select fn_rec_query(90, 'dir'); å¯ä»¥æ”¹ä¸º select fn_get_fullname('01000000020000', 2);
6.递归查询优化(以查询源数据为例):
6.递归查询优化(以查询元数据为例):
旧:select * from lf.sys_meta where depid = ANY(fn_rec_array(1, 'dep'));
新:select * from lf.sys_meta where depcode like '00%'; -- 00 ä¸º lf.sys_dep.id = 1 çš„code
src/main/java/com/lf/server/controller/all/BaseQueryController.java
@@ -612,7 +612,7 @@
    }
    @SysLog()
    @ApiOperation(value = "根据源数据ID查询")
    @ApiOperation(value = "根据元数据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    })
src/main/java/com/lf/server/controller/data/MetaController.java
@@ -38,10 +38,10 @@
import java.util.List;
/**
 * æºæ•°æ®
 * å…ƒæ•°æ®
 * @author WWW
 */
@Api(tags = "数据管理\\源数据管理")
@Api(tags = "数据管理\\元数据管理")
@RestController
@RequestMapping("/meta")
public class MetaController extends BaseController {
@@ -166,7 +166,7 @@
    @SysLog()
    @ApiOperation(value = "查询表中数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "源数据ID", dataType = "Integer", paramType = "query", example = "115"),
            @ApiImplicitParam(name = "id", value = "元数据ID", dataType = "Integer", paramType = "query", example = "115"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10")
    })
@@ -175,12 +175,12 @@
        // noinspection AlibabaRemoveCommentedCode
        try {
            if (null == id || id < 0) {
                return fail("源数据ID不能为空或小于0", null);
                return fail("元数据ID不能为空或小于0", null);
            }
            MetaEntity meta = metaService.selectById(id);
            if (null == meta || null == meta.getTab() || !meta.getTab().contains(StaticData.POINT)) {
                return fail("找不到源数据信息", null);
                return fail("找不到元数据信息", null);
            }
            String entity = meta.getTab().substring(meta.getTab().indexOf(".") + 1).replace("_", "").toLowerCase();
@@ -406,7 +406,7 @@
            List<MetaEntity> list = metaService.selectMetaFiles(reqEntity.getIds());
            if (null == list || list.isEmpty()) {
                return fail("没有找到源数据");
                return fail("没有找到元数据");
            }
            UserEntity ue = tokenService.getCurrentUser(req);
src/main/java/com/lf/server/controller/data/upload/CheckController.java
@@ -394,7 +394,7 @@
    }
    @SysLog()
    @ApiOperation(value = "查询源数据检查")
    @ApiOperation(value = "查询元数据检查")
    @GetMapping(value = "/selectCheckMeta")
    public ResponseMsg<Object> selectCheckMeta(HttpServletRequest req) {
        try {
@@ -402,7 +402,7 @@
            fme.name = StringHelper.getGuid();
            fme.xmmc = "西气东输四线天然气管道工程(吐鲁番-中卫)(00116BT02)";
            fme.sjzy = "测量专业";
            fme.zipPath = "D:\\Project\\Data\\LF\\temp\\20230107010101\\源数据检查.zip";
            fme.zipPath = "D:\\Project\\Data\\LF\\temp\\20230107010101\\元数据检查.zip";
            String rs = fmeService.checkMeta(fme, req);
            if (StringHelper.isEmpty(rs)) {
src/main/java/com/lf/server/controller/data/upload/QueryController.java
@@ -199,7 +199,7 @@
    @SysLog()
    @ApiOperation(value = "查询表中数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "源数据ID", dataType = "Integer", paramType = "query", example = "115"),
            @ApiImplicitParam(name = "id", value = "元数据ID", dataType = "Integer", paramType = "query", example = "115"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10")
    })
@@ -208,12 +208,12 @@
        // noinspection AlibabaRemoveCommentedCode
        try {
            if (null == id || id < 0) {
                return fail("源数据ID不能为空或小于0", null);
                return fail("元数据ID不能为空或小于0", null);
            }
            MetaEntity meta = metaService.selectById(id);
            if (null == meta || null == meta.getTab() || !meta.getTab().contains(StaticData.POINT)) {
                return fail("找不到源数据信息", null);
                return fail("找不到元数据信息", null);
            }
            String entity = meta.getTab().substring(meta.getTab().indexOf(".") + 1).replace("_", "").toLowerCase();
@@ -265,7 +265,7 @@
    }
    @SysLog()
    @ApiOperation(value = "根据源数据ID查询")
    @ApiOperation(value = "根据元数据ID查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
    })
src/main/java/com/lf/server/controller/data/upload/UploadController.java
@@ -83,7 +83,7 @@
    @ApiOperation(value = "上传Excel附件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "path", value = "路径", dataType = "String", paramType = "query"),
            @ApiImplicitParam(name = "ids", value = "源数据集合", dataType = "Integer", paramType = "query")
            @ApiImplicitParam(name = "ids", value = "元数据集合", dataType = "Integer", paramType = "query")
    })
    @ResponseBody
    @PostMapping(value = "/uploadXlsAnnex")
@@ -94,12 +94,12 @@
                return fail("用户未登录", null);
            }
            if (null == ids || ids.length == 0) {
                return fail("找不到源数据的ID集合");
                return fail("找不到元数据的ID集合");
            }
            List<MetaEntity> ms = metaService.selectXlsAnnex(ids, UploadAttachService.getTabs());
            if (null == ms || ms.isEmpty()) {
                return fail("找不到要上传附件的源数据");
                return fail("找不到要上传附件的元数据");
            }
            List<MetaFileEntity> list = uploadService.uploadData(null, path, false, req, res);
@@ -109,7 +109,7 @@
            List<KeyValueEntity> rs = uploadAttachService.uploadXlsAnnex(ue, ms, list, path);
            if (null == rs || rs.size() == 0) {
                return fail("没有要更新的源数据");
                return fail("没有要更新的元数据");
            }
            return success(rs);
@@ -197,7 +197,7 @@
    @SysLog()
    @ApiOperation(value = "插入文件")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "list", value = "源数据文件集合", dataType = "MetaFileEntity", paramType = "body")
            @ApiImplicitParam(name = "list", value = "元数据文件集合", dataType = "MetaFileEntity", paramType = "body")
    })
    @ResponseBody
    @PostMapping(value = "/insertFiles")
@@ -208,7 +208,7 @@
                return fail("用户未登录", null);
            }
            if (null == list || list.isEmpty()) {
                return fail("源数据文件集合为空", null);
                return fail("元数据文件集合为空", null);
            }
            uploadService.insertFiles(ue, list, req);
@@ -220,7 +220,7 @@
    }
    @SysLog()
    @ApiOperation(value = "删除源数据")
    @ApiOperation(value = "删除元数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "ids", value = "ID数组", dataType = "Integer", paramType = "query", example = "1,2")
    })
src/main/java/com/lf/server/controller/show/DataLibController.java
@@ -67,7 +67,7 @@
    VerService verService;
    /*@SysLog()
    @ApiOperation(value = "分页查询源数据 *")
    @ApiOperation(value = "分页查询元数据 *")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "depcode", value = "单位编码", dataType = "String", paramType = "query", example = "00"),
            @ApiImplicitParam(name = "dircode", value = "目录编码", dataType = "String", paramType = "query", example = "00"),
@@ -120,7 +120,7 @@
    }
    @SysLog()
    @ApiOperation(value = "分页查询源数据")
    @ApiOperation(value = "分页查询元数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "depcode", value = "单位编码", dataType = "String", paramType = "query", example = "00"),
            @ApiImplicitParam(name = "dirs", value = "目录编码", dataType = "String", paramType = "query", example = "00,01"),
@@ -152,7 +152,7 @@
    @SysLog()
    @ApiOperation(value = "查询表中数据")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "源数据ID", dataType = "Integer", paramType = "query", example = "115"),
            @ApiImplicitParam(name = "id", value = "元数据ID", dataType = "Integer", paramType = "query", example = "115"),
            @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1"),
            @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10")
    })
@@ -161,12 +161,12 @@
        // noinspection AlibabaRemoveCommentedCode
        try {
            if (null == id || id < 0) {
                return fail("源数据ID不能为空或小于0", null);
                return fail("元数据ID不能为空或小于0", null);
            }
            MetaEntity meta = metaService.selectById(id);
            if (null == meta || null == meta.getTab() || !meta.getTab().contains(StaticData.POINT)) {
                return fail("找不到源数据信息", null);
                return fail("找不到元数据信息", null);
            }
            String entity = meta.getTab().substring(meta.getTab().indexOf(".") + 1).replace("_", "").toLowerCase();
@@ -189,7 +189,7 @@
    }
    @SysLog()
    @ApiOperation(value = "请求源数据下载")
    @ApiOperation(value = "请求元数据下载")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "reqEntity", value = "请求下载实体", dataType = "DownloadReqEntity", paramType = "body")
    })
@@ -212,7 +212,7 @@
            List<MetaEntity> list = metaService.selectMetaFiles(reqEntity.getIds());
            if (null == list || list.isEmpty()) {
                return fail("没有找到源数据");
                return fail("没有找到元数据");
            }
            UserEntity ue = tokenService.getCurrentUser(req);
src/main/java/com/lf/server/controller/show/OneMapController.java
@@ -180,7 +180,7 @@
    /**
     * ä¸‹è½½é‡ç»Ÿè®¡
     * Download statistics
     * <p>type类型:1-Shp文件,2-专题图,3-源数据,4-业务数据,5-管道分析,6-统计报告<p/>
     * <p>type类型:1-Shp文件,2-专题图,3-元数据,4-业务数据,5-管道分析,6-统计报告<p/>
     */
    @SysLog()
    @ApiOperation(value = "下载量统计")
src/main/java/com/lf/server/entity/data/MetaEntity.java
@@ -4,7 +4,7 @@
import java.sql.Timestamp;
/**
 * æºæ•°æ®
 * å…ƒæ•°æ®
 * @author WWW
 */
public class MetaEntity implements Serializable {
src/main/java/com/lf/server/entity/data/MetaFileEntity.java
@@ -4,7 +4,7 @@
import java.sql.Timestamp;
/**
 * æºæ•°æ®æ–‡ä»¶
 * å…ƒæ•°æ®æ–‡ä»¶
 * @author WWW
 */
public class MetaFileEntity implements Serializable {
src/main/java/com/lf/server/entity/sys/MetaDownEntity.java
@@ -4,7 +4,7 @@
import java.sql.Timestamp;
/**
 * æºæ•°æ®-下载
 * å…ƒæ•°æ®-下载
 * @author WWW
 */
public class MetaDownEntity implements Serializable {
src/main/java/com/lf/server/mapper/data/MetaMapper.java
@@ -7,7 +7,7 @@
import java.util.List;
/**
 * æºæ•°æ®
 * å…ƒæ•°æ®
 * @author WWW
 */
@Mapper
@@ -119,19 +119,19 @@
    public MetaEntity selectByGuid(String guid, String tab);
    /**
     * æŸ¥è¯¢æºæ•°æ®æ–‡ä»¶
     * æŸ¥è¯¢å…ƒæ•°æ®æ–‡ä»¶
     *
     * @param ids æºæ•°æ®ID集合
     * @return æºæ•°æ®æ–‡ä»¶é›†åˆ
     * @param ids å…ƒæ•°æ®ID集合
     * @return å…ƒæ•°æ®æ–‡ä»¶é›†åˆ
     */
    public List<MetaEntity> selectMetaFiles(List<Integer> ids);
    /**
     * æŸ¥è¯¢Excel源数据
     * æŸ¥è¯¢Excel元数据
     *
     * @param ids  æºæ•°æ®ID集合
     * @param ids  å…ƒæ•°æ®ID集合
     * @param tabs è¡¨åå­—符串
     * @return æºæ•°æ®æ–‡ä»¶é›†åˆ
     * @return å…ƒæ•°æ®æ–‡ä»¶é›†åˆ
     */
    public List<MetaEntity> selectXlsAnnex(Integer[] ids, String tabs);
src/main/java/com/lf/server/mapper/sys/MetaDownMapper.java
@@ -7,7 +7,7 @@
import java.util.List;
/**
 * æºæ•°æ®-下载
 * å…ƒæ•°æ®-下载
 * @author WWW
 */
@Mapper
@@ -16,7 +16,7 @@
    /**
     * æŸ¥è¯¢è®°å½•æ•°
     *
     * @param metaid æºæ•°æ®ID
     * @param metaid å…ƒæ•°æ®ID
     * @return è®°å½•æ•°
     */
    public Integer selectCount(Integer metaid);
@@ -24,7 +24,7 @@
    /**
     * åˆ†é¡µæŸ¥è¯¢
     *
     * @param metaid   æºæ•°æ®ID
     * @param metaid   å…ƒæ•°æ®ID
     * @param limit  è®°å½•æ•°
     * @param offset åç§»é‡
     * @return åˆ—表
src/main/java/com/lf/server/service/all/BaseUploadService.java
@@ -329,7 +329,7 @@
    }
    /**
     * åˆ›å»ºæºæ•°æ®æ–‡ä»¶å®žä½“ç±»
     * åˆ›å»ºå…ƒæ•°æ®æ–‡ä»¶å®žä½“ç±»
     */
    private MetaFileEntity createMetaFileEntity(MetaFileEntity meta) {
        MetaFileEntity mf = new MetaFileEntity();
@@ -490,7 +490,7 @@
    }
    /**
     * è®¾ç½®æºæ•°æ®æ–‡ä»¶çš„类型
     * è®¾ç½®å…ƒæ•°æ®æ–‡ä»¶çš„类型
     */
    private void setMetaType(List<MetaFileEntity> list) {
        for (MetaFileEntity mf : list) {
src/main/java/com/lf/server/service/data/DownloadService.java
@@ -186,7 +186,7 @@
     * æ‰“包文件
     *
     * @param ue   ç”¨æˆ·å®žä½“
     * @param list æºæ•°æ®æ–‡ä»¶é›†åˆ
     * @param list å…ƒæ•°æ®æ–‡ä»¶é›†åˆ
     * @param pwd  å¯†ç 
     * @return ä¸‹è½½æ–‡ä»¶GUID
     */
@@ -213,7 +213,7 @@
    }
    /**
     * ç§»é™¤é‡å¤çš„æºæ•°æ®æ–‡ä»¶
     * ç§»é™¤é‡å¤çš„元数据文件
     */
    private void rmRepeatMetaFiles(List<MetaEntity> list) {
        List<String> guidList = new ArrayList<>();
@@ -232,7 +232,7 @@
    }
    /**
     * æ·»åŠ æºæ•°æ®æ–‡ä»¶è‡³Zip包
     * æ·»åŠ å…ƒæ•°æ®æ–‡ä»¶è‡³Zip包
     */
    private void addMetaFiles(ZipFile zip, ZipParameters params, List<MetaEntity> list) {
        int i = 1;
@@ -327,14 +327,14 @@
    private DownloadEntity getDownloadEntity(UserEntity ue, String file, String pwd) {
        DownloadEntity de = new DownloadEntity();
        de.setName(FileHelper.getFileName(file));
        // 1-Shp文件,2-专题图,3-源数据,4-业务数据,5-管道分析,6-统计报告
        // 1-Shp文件,2-专题图,3-元数据,4-业务数据,5-管道分析,6-统计报告
        de.setType(3);
        de.setSizes(FileHelper.sizeToMb(new File(file).length()));
        de.setDepid(ue.getDepid());
        de.setDcount(0);
        de.setPwd(pwd);
        de.setUrl(FileHelper.getRelativePath(file));
        de.setDescr("源数据文件");
        de.setDescr("元数据文件");
        de.setGuid(FileHelper.getFileMd5(file));
        de.setCreateUser(ue.getId());
        // de.setGeom(null)
@@ -343,7 +343,7 @@
    }
    /**
     * æ’入源数据-下载表
     * æ’入元数据-下载表
     */
    private void insertMetaDown(UserEntity ue, List<MetaEntity> metas, DownloadEntity de) {
        List<MetaDownEntity> list = new ArrayList<>();
src/main/java/com/lf/server/service/data/MetaService.java
@@ -9,7 +9,7 @@
import java.util.List;
/**
 * æºæ•°æ®
 * å…ƒæ•°æ®
 * @author WWW
 */
@Service
src/main/java/com/lf/server/service/data/UploadService.java
@@ -75,7 +75,7 @@
    }
    /**
     * æ£€æŸ¥æºæ•°æ®æ–‡ä»¶
     * æ£€æŸ¥å…ƒæ•°æ®æ–‡ä»¶
     */
    private void checkMetaFiles(UserEntity ue, List<MetaFileEntity> list) {
        Timestamp createTime = WebHelper.getCurrentTimestamp();
@@ -121,7 +121,7 @@
    }
    /**
     * èŽ·å–Excel源数据文件
     * èŽ·å–Excel元数据文件
     */
    private List<MetaFileEntity> getExcelFiles(List<MetaFileEntity> list) {
        List<MetaFileEntity> xlsList = new ArrayList<>();
@@ -138,7 +138,7 @@
    }
    /**
     * èŽ·å–Excel的源数据
     * èŽ·å–Excel的元数据
     */
    private MetaFileEntity getExcelMeta(List<MetaFileEntity> xlsList) {
        List<String> pathList = new ArrayList<>();
@@ -518,7 +518,7 @@
    }
    /**
     * æ’入源数据
     * æ’入元数据
     */
    private void insertMetas(List<MetaFileEntity> list) {
        int metaId = insertParentMeta(list);
@@ -535,7 +535,7 @@
    }
    /**
     * åˆ›å»ºæºæ•°æ®
     * åˆ›å»ºå…ƒæ•°æ®
     */
    private MetaEntity createMeta(MetaFileEntity mf, int metaId) {
        MetaEntity me = new MetaEntity();
@@ -563,7 +563,7 @@
    }
    /**
     * æ’入父源数据
     * æ’入父元数据
     */
    private int insertParentMeta(List<MetaFileEntity> list) {
        for (MetaFileEntity mf : list) {
src/main/java/com/lf/server/service/show/DataLibService.java
@@ -199,7 +199,7 @@
    private DownloadEntity getDownloadEntity(UserEntity ue, String file, String pwd) throws Exception {
        DownloadEntity de = new DownloadEntity();
        de.setName(FileHelper.getFileName(file));
        // 1-Shp文件,2-专题图,3-源数据,4-业务数据,5-管道分析,6-统计报告
        // 1-Shp文件,2-专题图,3-元数据,4-业务数据,5-管道分析,6-统计报告
        de.setType(4);
        de.setSizes(FileHelper.sizeToMb(new File(file).length()));
        de.setDepid(ue.getDepid());
src/main/java/com/lf/server/service/show/ExportService.java
@@ -100,7 +100,7 @@
    private DownloadEntity getDownloadEntity(UserEntity ue, ExportEntity entity, String file) throws Exception {
        DownloadEntity de = new DownloadEntity();
        de.setName(FileHelper.getFileName(file));
        // 1-Shp文件,2-专题图,3-源数据,4-业务数据,5-管道分析,6-统计报告
        // 1-Shp文件,2-专题图,3-元数据,4-业务数据,5-管道分析,6-统计报告
        de.setType(2);
        de.setSizes(FileHelper.sizeToMb(new File(file).length()));
        de.setDepid(ue.getDepid());
src/main/java/com/lf/server/service/show/MarkService.java
@@ -189,7 +189,7 @@
    private DownloadEntity getDownloadEntity(UserEntity ue, String file) throws Exception {
        DownloadEntity de = new DownloadEntity();
        de.setName(FileHelper.getFileName(file));
        // 1-Shp文件,2-专题图,3-源数据,4-业务数据,5-管道分析,6-统计报告
        // 1-Shp文件,2-专题图,3-元数据,4-业务数据,5-管道分析,6-统计报告
        de.setType(1);
        de.setSizes(FileHelper.sizeToMb(new File(file).length()));
        de.setDepid(ue.getDepid());
src/main/java/com/lf/server/service/show/PipelineService.java
@@ -207,7 +207,7 @@
    private DownloadEntity getDownloadEntity(UserEntity ue, String file, String pwd) throws Exception {
        DownloadEntity de = new DownloadEntity();
        de.setName(FileHelper.getFileName(file));
        // 1-Shp文件,2-专题图,3-源数据,4-业务数据,5-管道分析,6-统计报告
        // 1-Shp文件,2-专题图,3-元数据,4-业务数据,5-管道分析,6-统计报告
        de.setType(5);
        de.setSizes(FileHelper.sizeToMb(new File(file).length()));
        de.setDepid(ue.getDepid());
src/main/java/com/lf/server/service/sys/MetaDownService.java
@@ -9,7 +9,7 @@
import java.util.List;
/**
 * æºæ•°æ®-下载
 * å…ƒæ•°æ®-下载
 * @author WWW
 */
@Service
src/main/java/com/lf/server/service/sys/ReportService.java
@@ -289,7 +289,7 @@
    private DownloadEntity getDownloadEntity(UserEntity ue, String file) {
        DownloadEntity de = new DownloadEntity();
        de.setName(FileHelper.getFileName(file));
        // 1-Shp文件,2-专题图,3-源数据,4-业务数据,5-管道分析,6-统计报告
        // 1-Shp文件,2-专题图,3-元数据,4-业务数据,5-管道分析,6-统计报告
        de.setType(6);
        de.setSizes(FileHelper.sizeToMb(new File(file).length()));
        de.setDepid(ue.getDepid());
src/main/resources/mapper/show/OneMapMapper.xml
@@ -96,7 +96,7 @@
        select modular1,count(*) from lf.sys_operate group by modular1 order by modular1;
    </select>
    <!--  æ•°æ®ç»Ÿè®¡ ä¸‹è½½é‡ç»Ÿè®¡ type类型:1-Shp文件,2-专题图,3-源数据,4-业务数据,5-管道分析,6-统计报告 -->
    <!--  æ•°æ®ç»Ÿè®¡ ä¸‹è½½é‡ç»Ÿè®¡ type类型:1-Shp文件,2-专题图,3-元数据,4-业务数据,5-管道分析,6-统计报告 -->
    <!--  æ•°æ®ç»Ÿè®¡ select type,count(*) from lf.sys_download group by type; -->
    <select id="countDownloads" resultType="java.util.Map">
        SELECT type,
@@ -104,7 +104,7 @@
               case type
                   WHEN '1' THEN 'Shp文件'
                   WHEN '2' THEN '专题图'
                   WHEN '3' THEN '源数据'
                   WHEN '3' THEN '元数据'
                   WHEN '4' THEN '业务数据'
                   WHEN '5' THEN '管道分析'
                   WHEN '6' THEN '统计报告'