This commit is contained in:
wangliwen 2022-05-30 15:26:57 +08:00
parent abacd77904
commit 632ed9a6e3
1 changed files with 8 additions and 2 deletions

View File

@ -97,8 +97,14 @@ public class ActivitiNoticeAspect {
dto.setCreator(sysUserService.getByUsername("admin").getId());
dto.setCreateDate(new Date());
sysNoticeService.save(dto);
Thread.sleep(100);
work_.remove(kv.get("id").toString());
new Thread(() -> {
try {
Thread.sleep(300);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
work_.remove(kv.get("id").toString());
}).start();
} catch (Exception e) {
logger.error("发送通知消息异常", e);
}