opt:分配添加锁释放时间
This commit is contained in:
@@ -277,7 +277,7 @@ public class StIvtIostorinvOutServiceImpl extends ServiceImpl<StIvtIostorinvOutM
|
||||
}
|
||||
|
||||
RLock lock = redissonClient.getLock("all_divTwo");
|
||||
boolean tryLock = lock.tryLock(0, TimeUnit.SECONDS);
|
||||
boolean tryLock = lock.tryLock(0, 60,TimeUnit.SECONDS);
|
||||
try {
|
||||
if (tryLock) {
|
||||
// 用于插入分配明细的集合
|
||||
|
||||
Reference in New Issue
Block a user