管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-01-06 502c7dbbe1f906ae22895436b925a3aa2fb7225a
src/main/java/com/lf/server/service/show/ExportService.java
@@ -26,7 +26,7 @@
 */
@Service
public class ExportService {
    @Value("${sys.path.exportServer}")
    @Value("${sys.exportServer}")
    private String exportServer;
    @Autowired
@@ -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)