opt:分配添加锁释放时间

This commit is contained in:
zhangzq
2025-02-20 18:37:43 +08:00
parent e838f4c267
commit 8c30fb32ec

View File

@@ -2437,7 +2437,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
}
RLock lock = redissonClient.getLock("all_cancelDivOne");
boolean tryLock = lock.tryLock(0, TimeUnit.SECONDS);
boolean tryLock = lock.tryLock(0, 60,TimeUnit.SECONDS);
try {
if (tryLock) {
@@ -5723,7 +5723,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
if (jo_mst.getString("is_overdue").equals("1")) {
dis_rows = WQLObject.getWQLObject("ST_IVT_IOStorInvDis").query("iostorinv_id = '" + iostorinv_id + "' and is_overdue = '0' and box_no = '"+jsonSub.getString("package_box_sn")+"'").getResultJSONArray(0);
} else {
dis_rows = WQLObject.getWQLObject("ST_IVT_IOStorInvDis").query("iostorinv_id = '" + iostorinv_id + "' and box_no = '"+jsonSub.getString("package_box_sn")+"'").getResultJSONArray(0);
}