|
|
@ -136,6 +136,7 @@ import java.util.stream.Collectors; |
|
|
|
import static com.win.framework.common.exception.util.ServiceExceptionUtil.exception; |
|
|
|
import static com.win.framework.security.core.util.SecurityFrameworkUtils.getLoginUserId; |
|
|
|
import static com.win.module.wms.enums.ErrorCodeConstants.*; |
|
|
|
import static java.lang.Thread.sleep; |
|
|
|
|
|
|
|
/** |
|
|
|
* 制品收货记录主 Service 实现类 |
|
|
@ -2700,6 +2701,11 @@ public class ProductreceiptRecordMainServiceImpl implements ProductreceiptRecord |
|
|
|
String inventoryStatusRedis = transactionCreateReqVOIN.getInventoryStatus() == null ? "" : transactionCreateReqVOIN.getInventoryStatus(); |
|
|
|
String locationCode = transactionCreateReqVOIN.getLocationCode() == null ? "" : transactionCreateReqVOIN.getLocationCode(); |
|
|
|
String lockKey = "ProductionreceiptJob_" + itemCode + "#" + batchRedis + "#" + inventoryStatusRedis + "#" + locationCode ; |
|
|
|
try { |
|
|
|
sleep(60000); |
|
|
|
}catch (Exception e){ |
|
|
|
|
|
|
|
} |
|
|
|
// 释放锁
|
|
|
|
redisCache.deleteLockLine(lockKey); |
|
|
|
log.info("报工消耗执行:释放redis锁{}",lockKey); |
|
|
|