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