| | |
| | | public BaseDao baseDao; |
| | | @Autowired |
| | | FileUtils fileUtils; |
| | | |
| | | /** |
| | | * 标记文件已被修改 |
| | | * @param uuid |
| | | * @param userId |
| | | */ |
| | | public void signUpdateAttachment(String uuid, int userId) { |
| | | baseDao.executeUpdate("UPDATE product_sys_attachments SET updated_by = ?, updated_utc_datetime = NOW() WHERE uuid = ?", new Object[] {userId, uuid}); |
| | | } |
| | | |
| | | /** |
| | | * 获取静态资源 |
| | |
| | | fileUtils.deleteFilesServerOnFile(dir, fileName + "_" + userId + "_" + map.get("uniqueKey")); |
| | | } |
| | | sourceFile.delete(); |
| | | |
| | | //标记文件修改 |
| | | fileManagerService.signUpdateAttachment(fse.getUUID(), userId); |
| | | } |
| | | } |
| | | RedisUtil.del(redisKey); |