| | |
| | | attachmentInfo.setFileSize(file.getSize()); |
| | | attachmentInfo.setModule(module); |
| | | attachmentInfo.setFileType(getType(suffix)); |
| | | /* attachmentInfo.setCreateBy(SecurityUtils.getUsername()); |
| | | attachmentInfo.setUpdateBy(SecurityUtils.getUsername());*/ |
| | | attachmentInfo.setCreateBy(SecurityUtils.getUsername()); |
| | | attachmentInfo.setUpdateBy(SecurityUtils.getUsername()); |
| | | attachmentInfo.setUpdateTime(new Date()); |
| | | attachmentInfo.setCreateTime(new Date()); |
| | | attachmentInfoList.add(attachmentInfo); |
| | |
| | | attachmentInfo.setFileSize(file.getSize()); |
| | | attachmentInfo.setModule(module); |
| | | attachmentInfo.setFileType(getType(suffix)); |
| | | /* attachmentInfo.setCreateBy(SecurityUtils.getUsername()); |
| | | attachmentInfo.setUpdateBy(SecurityUtils.getUsername());*/ |
| | | attachmentInfo.setCreateBy(SecurityUtils.getUsername()); |
| | | attachmentInfo.setUpdateBy(SecurityUtils.getUsername()); |
| | | attachmentInfo.setUpdateTime(new Date()); |
| | | attachmentInfo.setCreateTime(new Date()); |
| | | attachmentInfoList.add(attachmentInfo); |
| | |
| | | throw new ServiceException("文件不存在"); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public void updateBatchById(List<AttachmentInfo> attachmentInfo) { |
| | | boolean saveBatch = attachmentInfoService.updateBatchById(attachmentInfo); |
| | | if (!saveBatch) |
| | | throw new ServiceException("文件批量保存失败"); |
| | | } |
| | | } |