luoyb
2024-06-02 f4151abee349597ed58a405a8a5e48a5d1a1f7a6
febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/controller/FilesUploadController.java
@@ -49,7 +49,6 @@
    }
    @PostMapping
    @PreAuthorize("hasAuthority('filesUpload:add')")
    public void addFilesUpload(@NotNull(message = "{required}") Long folderid, MultipartFile file) throws FebsException {
        try {
            this.filesUploadService.createFilesUpload(folderid, file);
@@ -93,7 +92,7 @@
        } catch (Exception e) {
            String message = "修改FilesUpload失败";
            log.error(message, e);
            throw new FebsException(message);
            throw new FebsException(e.getMessage());
        }
    }
@@ -108,4 +107,15 @@
            throw new FebsException(message);
        }
    }
    @GetMapping("image/{filesid}")
    public void getImage(@PathVariable String filesid, HttpServletResponse response) throws FebsException {
        try {
            this.filesUploadService.getImage(filesid,response);
        } catch (Exception e) {
            String message = "获取员工图片异常";
            log.error(message, e);
            throw new FebsException(message);
        }
    }
}