REQ-2596-删除超时锁新开事务

This commit is contained in:
yangqicheng 2024-07-30 10:42:21 +08:00
parent 6fc64d7c69
commit e37ae47d6d

View File

@ -67,6 +67,8 @@ public class ExtAxPropertyServiceImpl implements ExtAxPropertyService {
return mapper.deleteByMap(deleteMap);
}
@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public int deleteByNameWithDuration(String name, Long timeOut, TimeUnit timeUnit) {
if (!StringUtils.hasText(name) || timeOut == null || timeUnit == null) {
log.error("argument not valid,name:{},timeOut:{},timeUnit:{}", name, timeOut, timeUnit);