| | |
| | | void downloadForStream(HttpServletResponse response, String key); |
| | | |
| | | void downloadById(HttpServletResponse response, HttpServletRequest request, Long id); |
| | | |
| | | void saveBatch(List<AttachmentInfo> attachmentInfo); |
| | | } |
| | |
| | | AttachmentInfo attachmentInfo = new AttachmentInfo(); |
| | | attachmentInfo.setId(id); |
| | | attachmentInfo.setUpdateTime(new Date()); |
| | | //attachmentInfo.setUpdateBy(SecurityUtils.getUsername()); |
| | | attachmentInfo.setUpdateBy(SecurityUtils.getUsername()); |
| | | attachmentInfo.setDelFlag(1); |
| | | attachmentInfoMapper.updateById(attachmentInfo); |
| | | } |
| | |
| | | throw new ServiceException("文件不存在"); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public void saveBatch(List<AttachmentInfo> attachmentInfo) { |
| | | boolean saveBatch = attachmentInfoService.saveBatch(attachmentInfo); |
| | | if (!saveBatch) |
| | | throw new ServiceException("文件批量保存失败"); |
| | | } |
| | | } |