diff --git a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseTrayTypeServiceImpl.java b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseTrayTypeServiceImpl.java index fad0378fa..95a996a8f 100644 --- a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseTrayTypeServiceImpl.java +++ b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseTrayTypeServiceImpl.java @@ -1780,16 +1780,19 @@ public class WarehouseTrayTypeServiceImpl extends BaseServiceImpl keys = Collections.singletonList(key); - List args = Arrays.asList(value, String.valueOf(expireTime)); + List args = Arrays.asList(value, expireTime); - Long result = redis.getStringRedisTemplate().execute(redisScript, keys, args); + log.info("Keys: {}", keys); + log.info("Args: {}", args); + + Long result = redis.getRedisTemplate().execute(redisScript, keys, args.toArray()); if (result == 1) { log.warn("#########orderScanOrderPackageCode: 托盘正在保存打托方式 trayCode={} warehouseId={}", trayCode, warehouseId); throw new CustomerException(405, "托盘信息正在更新,请重试"); } - redis.setEx(key,"1",5L); +// redis.setEx(key,"1",5L); WarehouseTrayTypeEntity trayTypeEntity = new WarehouseTrayTypeEntity(); BladeUser user = AuthUtil.getUser(); @@ -1879,7 +1882,7 @@ public class WarehouseTrayTypeServiceImpl extends BaseServiceImpl