管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-12-22 86c61baa66da3c124cb104c50c921c30fa5b3992
src/main/java/com/lf/server/service/show/ExportService.java
@@ -63,7 +63,7 @@
            return null;
        }
        DownloadEntity de = getDownloadEntity(ue, file);
        DownloadEntity de = getDownloadEntity(ue, entity, file);
        int rows = downloadService.insert(de);
        return rows > 0 ? de.getGuid() : null;
@@ -97,7 +97,7 @@
    /**
     * 获取下载实体类
     */
    private DownloadEntity getDownloadEntity(UserEntity ue, String file) throws Exception {
    private DownloadEntity getDownloadEntity(UserEntity ue, ExportEntity entity, String file) throws Exception {
        DownloadEntity de = new DownloadEntity();
        de.setName(FileHelper.getFileName(file));
        de.setType(2);
@@ -106,7 +106,8 @@
        de.setDcount(0);
        // de.setPwd(null)
        de.setUrl(FileHelper.getRelativePath(file));
        de.setDescr("专题图文件");
        // de.setDescr("专题图文件")
        de.setDescr(StringHelper.isEmpty(entity.getTitle()) ? "专题图文件" : entity.getTitle().trim());
        de.setGuid(FileHelper.getFileMd5(file));
        de.setCreateUser(ue.getId());
        // de.setGeom(null)