管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-12-06 b69e86316f5a8802a8cc2ff552bc798b4c27aba4
src/main/java/com/lf/server/controller/show/ExportController.java
@@ -59,11 +59,11 @@
                return fail("用户未登录", null);
            }
            int count = downloadService.selectCountForExport(ue.getCreateUser(), name);
            int count = downloadService.selectCountForUser(ue.getCreateUser(), 2, name);
            if (count == 0) {
                return success(0, null);
            }
            List<DownloadEntity> rs = downloadService.selectByPageForExport(ue.getCreateUser(), name, pageSize, pageSize * (pageIndex - 1));
            List<DownloadEntity> rs = downloadService.selectByPageForUser(ue.getCreateUser(), 2, name, pageSize, pageSize * (pageIndex - 1));
            return success(count, rs);
        } catch (Exception ex) {
@@ -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;
            }