huangzhen
2023-09-13 10bf499726acea50b695d215f7f07d9e2cde5bec
文件功能批量通过id进行更新
已修改2个文件
6 ■■■■ 文件已修改
ruoyi-file/src/main/java/com/ruoyi/file/service/AttachmentService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-file/src/main/java/com/ruoyi/file/service/impl/AttachmentServiceImpl.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-file/src/main/java/com/ruoyi/file/service/AttachmentService.java
@@ -32,5 +32,5 @@
    void downloadById(HttpServletResponse response, HttpServletRequest request, Long id);
    void saveBatch(List<AttachmentInfo> attachmentInfo);
    void updateBatchById(List<AttachmentInfo> attachmentInfo);
}
ruoyi-file/src/main/java/com/ruoyi/file/service/impl/AttachmentServiceImpl.java
@@ -403,8 +403,8 @@
    }
    @Override
    public void saveBatch(List<AttachmentInfo> attachmentInfo) {
        boolean saveBatch = attachmentInfoService.saveBatch(attachmentInfo);
    public void updateBatchById(List<AttachmentInfo> attachmentInfo) {
        boolean saveBatch = attachmentInfoService.updateBatchById(attachmentInfo);
        if (!saveBatch)
            throw new ServiceException("文件批量保存失败");
    }