fix:事务注解去除

This commit is contained in:
zhengxuming
2025-07-17 20:09:21 +08:00
parent 091add5d89
commit 08f052231d

View File

@@ -54,7 +54,6 @@ public class ForewarningTask {
//定时任务 //定时任务
@SneakyThrows @SneakyThrows
@Transactional(rollbackFor = Exception.class)
public void run() { public void run() {
RLock lock = redissonClient.getLock(this.getClass().getName()); RLock lock = redissonClient.getLock(this.getClass().getName());
boolean tryLock = lock.tryLock(2, TimeUnit.SECONDS); boolean tryLock = lock.tryLock(2, TimeUnit.SECONDS);