管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-05-31 cf3c21eb0e6b4c4c96c9b4f3a5070dd842ccde3d
src/main/java/com/lf/server/service/data/MetaService.java
@@ -115,8 +115,8 @@
    }
    @Override
    public MetaEntity selectByGuid(String guid, String tab) {
        return metaMapper.selectByGuid(guid, tab);
    public MetaEntity selectByGuid(String guid, String dircode, String tab) {
        return metaMapper.selectByGuid(guid, dircode, tab);
    }
    @Override
@@ -270,7 +270,7 @@
                return;
            }
            MetaEntity me = selectByGuid(guid, null);
            MetaEntity me = selectByGuid(guid, null, null);
            if (me == null) {
                WebHelper.writeStr2Page(res, StaticData.NO_FILE);
                return;
@@ -597,7 +597,7 @@
    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-统计报告,7-附件文件,8-瓦片文件
        de.setType(3);
        de.setSizes(FileHelper.sizeToMb(new File(file).length()));
        de.setDepid(ue.getDepid());