| | |
| | | private ImageUrlConfig imageUrlConfig; |
| | | |
| | | @Override |
| | | @Transactional |
| | | |
| | | public Long uploadAttachment(Long taskId, MultipartFile file, String category) { |
| | | try { |
| | | String fileName = category + "_" + System.currentTimeMillis() + "_" + file.getOriginalFilename(); |
| | |
| | | } |
| | | |
| | | @Override |
| | | @Transactional |
| | | |
| | | public Long uploadAttachmentFromWechat(Long taskId, String accessToken, String mediaId, String category) { |
| | | try { |
| | | String wechatUrl = String.format( |
| | |
| | | } |
| | | |
| | | @Override |
| | | @Transactional |
| | | |
| | | public int deleteAttachment(Long attachmentId) { |
| | | SysTaskAttachment attachment = sysTaskAttachmentMapper.selectSysTaskAttachmentByAttachmentId(attachmentId); |
| | | if (attachment == null) { |