管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-11-24 224591306e6bdcc0051787e759ef0c082757a30a
src/main/java/com/lf/server/controller/show/ExportController.java
@@ -113,7 +113,7 @@
    public void downloadFile(String guid, HttpServletRequest req, HttpServletResponse res) {
        try {
            if (StringHelper.isEmpty(guid)) {
                WebHelper.writeInfo(HttpStatus.UNAUTHORIZED, "找不到文件ID", res);
                WebHelper.writeInfo(HttpStatus.BAD_REQUEST, "找不到文件ID", res);
                return;
            }
@@ -128,7 +128,7 @@
            de.setDownloadUser(ue.getId());
            int rows = downloadService.update(de);
            String filePath = exportService.getDownloadFilePath(de);
            String filePath = downloadService.getDownloadFilePath(de);
            WebHelper.download(filePath, de.getName(), res);
        } catch (Exception ex) {
            WebHelper.writeInfo(HttpStatus.ERROR, ex.getMessage(), res);