diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionSignforVO.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionSignforVO.java index 13badf92d..5801766a7 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionSignforVO.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionSignforVO.java @@ -84,7 +84,7 @@ public class DistributionSignforVO extends DistributionSignforEntity { * 装车未扫数 */ @ApiModelProperty(value = "装车未扫数") - private String withoutScanning; + private Integer withoutScanning; /** * 计划总数 diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/aspect/JobAnnotationAspect.java b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/aspect/JobAnnotationAspect.java index cbb71dfdf..9d2d5e5e1 100644 --- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/aspect/JobAnnotationAspect.java +++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/aspect/JobAnnotationAspect.java @@ -72,7 +72,7 @@ public class JobAnnotationAspect { data =bladeRedis.get(CacheNames.LOCAL_SERVER_USER+account); if(Objects.isNull(data)){ data = mockLoginService.mockToken("627683",account); - bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER+account,data,25919900L); + bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER+account,data,2591990L); redisLockClient.unLock("local_server_user", LockType.FAIR); } } diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/aspect/JobAnnotationAspect.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/aspect/JobAnnotationAspect.java index ac916c3f4..8efaac5fe 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/aspect/JobAnnotationAspect.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/aspect/JobAnnotationAspect.java @@ -71,7 +71,7 @@ public class JobAnnotationAspect { data =bladeRedis.get(CacheNames.LOCAL_SERVER_USER+account); if(Objects.isNull(data)){ data = mockLoginService.mockToken("627683",account); - bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER+account,data,25919900L); + bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER+account,data,2591990L); redisLockClient.unLock("local_server_user", LockType.FAIR); } } diff --git a/blade-service/logpm-business/src/main/java/com/logpm/business/aspect/ChangeAsyncAnnotationAspect.java b/blade-service/logpm-business/src/main/java/com/logpm/business/aspect/ChangeAsyncAnnotationAspect.java index 955957658..68adae5a1 100644 --- a/blade-service/logpm-business/src/main/java/com/logpm/business/aspect/ChangeAsyncAnnotationAspect.java +++ b/blade-service/logpm-business/src/main/java/com/logpm/business/aspect/ChangeAsyncAnnotationAspect.java @@ -78,7 +78,7 @@ public class ChangeAsyncAnnotationAspect { data = bladeRedis.get(CacheNames.LOCAL_SERVER_USER + tenantId + ":" + account); if (Objects.isNull(data)) { data = mockLoginService.mockToken(tenantId, account); - bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER + tenantId + ":" + account, data, 25919900L); + bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER + tenantId + ":" + account, data, 2591990L); redisLockClient.unLock("local_server_user" + tenantId, LockType.FAIR); } } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/aspect/ChangeAsyncAnnotationAspect.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/aspect/ChangeAsyncAnnotationAspect.java index 27a8a6278..0c71ce197 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/aspect/ChangeAsyncAnnotationAspect.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/aspect/ChangeAsyncAnnotationAspect.java @@ -80,7 +80,7 @@ public class ChangeAsyncAnnotationAspect { data = bladeRedis.get(CacheNames.LOCAL_SERVER_USER + tenantId + ":" + account); if (Objects.isNull(data)) { data = mockLoginService.mockToken(tenantId, account); - bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER + tenantId + ":" + account, data, 25919900L); + bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER + tenantId + ":" + account, data, 2591990L); redisLockClient.unLock("local_server_user" + tenantId, LockType.FAIR); } } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java index 08a5c1f65..d6b6e5fb4 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java @@ -377,9 +377,9 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl warehouseIds = indexDTO.getWarehouseIds(); - IndexHandOrderDataVO indexHandOrderDataVO = new IndexHandOrderDataVO(); - if (warehouseIds.isEmpty()) { - return indexHandOrderDataVO; + //增加缓存 + BladeUser user = AuthUtil.getUser(); + String key = CacheNames.tenantKey(user.getTenantId(), user.getUserId() + "", "allocationData"); + IndexHandOrderDataVO indexHandOrderDataVO = bladeRedis.get(key); + + if (Objects.isNull(indexHandOrderDataVO)) { + List warehouseIds = indexDTO.getWarehouseIds(); + indexHandOrderDataVO = new IndexHandOrderDataVO(); + if (warehouseIds.isEmpty()) { + return indexHandOrderDataVO; + } + //当前在库的数据 订制品 零担 + indexHandOrderDataVO = warehouseIndexMapper.handOrderData(indexDTO); + //当前在库的库存品 + Integer stockListNum = warehouseIndexMapper.findHandStockListNum(indexDTO); + indexHandOrderDataVO.setTotalNum(indexHandOrderDataVO.getTotalNum() + stockListNum); + + //已打托数量 + Integer trayNum = warehouseIndexMapper.findTrayNum(indexDTO); + indexHandOrderDataVO.setTrayNum(trayNum); + bladeRedis.setEx(key, indexHandOrderDataVO, 3600L); } - //当前在库的数据 订制品 零担 - indexHandOrderDataVO = warehouseIndexMapper.handOrderData(indexDTO); - //当前在库的库存品 - Integer stockListNum = warehouseIndexMapper.findHandStockListNum(indexDTO); - indexHandOrderDataVO.setTotalNum(indexHandOrderDataVO.getTotalNum() + stockListNum); - //已打托数量 - Integer trayNum = warehouseIndexMapper.findTrayNum(indexDTO); - indexHandOrderDataVO.setTrayNum(trayNum); return indexHandOrderDataVO; } @Override public IndexAllocationDataVO allocationData(IndexDTO indexDTO) { - List warehouseIds = indexDTO.getWarehouseIds(); - IndexAllocationDataVO indexAllocationDataVO = new IndexAllocationDataVO(); - if (warehouseIds.isEmpty()) { - return indexAllocationDataVO; - } - //当前在库的数据 订制品 零担 - IndexHandOrderDataVO indexHandOrderDataVO = warehouseIndexMapper.handOrderData(indexDTO); - //当前在库的库存品 - Integer stockListNum = warehouseIndexMapper.findHandStockListNum(indexDTO); - Integer totalNum = indexHandOrderDataVO.getTotalNum() + stockListNum; - - //查询库位总数 - Integer totalAllocationNum = warehouseIndexMapper.findTotalAllocationNum(indexDTO); - //已使用库位数 - Integer useAllocationNum = warehouseIndexMapper.findUseAllocationNum(indexDTO); - //已上架件数 - Integer upshelfNum = warehouseIndexMapper.findUpshelfNum(indexDTO); - - indexAllocationDataVO.setTotalNum(totalAllocationNum); - indexAllocationDataVO.setUseNum(useAllocationNum); - indexAllocationDataVO.setNullNum(totalAllocationNum - useAllocationNum); - indexAllocationDataVO.setUpshelfNum(upshelfNum); - indexAllocationDataVO.setNoUpshelfNum(totalNum - upshelfNum); + //增加缓存 + BladeUser user = AuthUtil.getUser(); + String key = CacheNames.tenantKey(user.getTenantId(), user.getUserId() + "", "allocationData"); + IndexAllocationDataVO indexAllocationDataVO = bladeRedis.get(key); + + if (Objects.isNull(indexAllocationDataVO)) { + List warehouseIds = indexDTO.getWarehouseIds(); + indexAllocationDataVO = new IndexAllocationDataVO(); + if (warehouseIds.isEmpty()) { + return indexAllocationDataVO; + } + //当前在库的数据 订制品 零担 + IndexHandOrderDataVO indexHandOrderDataVO = warehouseIndexMapper.handOrderData(indexDTO); + //当前在库的库存品 + Integer stockListNum = warehouseIndexMapper.findHandStockListNum(indexDTO); + Integer totalNum = indexHandOrderDataVO.getTotalNum() + stockListNum; + + //查询库位总数 + Integer totalAllocationNum = warehouseIndexMapper.findTotalAllocationNum(indexDTO); + //已使用库位数 + Integer useAllocationNum = warehouseIndexMapper.findUseAllocationNum(indexDTO); + //已上架件数 + Integer upshelfNum = warehouseIndexMapper.findUpshelfNum(indexDTO); + + indexAllocationDataVO.setTotalNum(totalAllocationNum); + indexAllocationDataVO.setUseNum(useAllocationNum); + indexAllocationDataVO.setNullNum(totalAllocationNum - useAllocationNum); + indexAllocationDataVO.setUpshelfNum(upshelfNum); + indexAllocationDataVO.setNoUpshelfNum(totalNum - upshelfNum); + bladeRedis.setEx(key, indexAllocationDataVO, 3600L); + } return indexAllocationDataVO; } @Override public IndexTrunklineHandOrderDataVO trunklineHandOrderData(IndexDTO indexDTO) { - List warehouseIds = indexDTO.getWarehouseIds(); - IndexTrunklineHandOrderDataVO indexTrunklineHandOrderDataVO = new IndexTrunklineHandOrderDataVO(); - if (warehouseIds.isEmpty()) { - return indexTrunklineHandOrderDataVO; + + BladeUser user = AuthUtil.getUser(); + String key = CacheNames.tenantKey(user.getTenantId(), user.getUserId() + "", "trunklineHandOrderData"); + IndexTrunklineHandOrderDataVO indexAllocationDataVO = bladeRedis.get(key); + + if (Objects.isNull(indexAllocationDataVO)) { + List warehouseIds = indexDTO.getWarehouseIds(); + IndexTrunklineHandOrderDataVO indexTrunklineHandOrderDataVO = new IndexTrunklineHandOrderDataVO(); + if (warehouseIds.isEmpty()) { + return indexTrunklineHandOrderDataVO; + } + + //订制品 + JSONObject packageJson = warehouseIndexMapper.findPackageTrunklineHandOrderData(indexDTO); + Integer packageWaybillNum = packageJson.getInteger("waybillNum"); + Integer packageHandleNum = packageJson.getInteger("handleNum"); + BigDecimal packageHandleWeight = packageJson.getBigDecimal("handleWeight"); + BigDecimal packageHandleVolume = packageJson.getBigDecimal("handleVolume"); + //零担 + JSONObject zeroJson = warehouseIndexMapper.findZeroTrunklineHandOrderData(indexDTO); + Integer zeroWaybillNum = zeroJson.getInteger("waybillNum"); + Integer zeroHandleNum = zeroJson.getInteger("handleNum"); + BigDecimal zeroHandleWeight = zeroJson.getBigDecimal("handleWeight"); + BigDecimal zeroHandleVolume = zeroJson.getBigDecimal("handleVolume"); + + indexTrunklineHandOrderDataVO.setWaybillNum(packageWaybillNum + zeroWaybillNum); + indexTrunklineHandOrderDataVO.setHandleNum(packageHandleNum + zeroHandleNum); + indexTrunklineHandOrderDataVO.setHandleWeight(packageHandleWeight.add(zeroHandleWeight)); + indexTrunklineHandOrderDataVO.setHandleVolume(packageHandleVolume.add(zeroHandleVolume)); } - //订制品 - JSONObject packageJson = warehouseIndexMapper.findPackageTrunklineHandOrderData(indexDTO); - Integer packageWaybillNum = packageJson.getInteger("waybillNum"); - Integer packageHandleNum = packageJson.getInteger("handleNum"); - BigDecimal packageHandleWeight = packageJson.getBigDecimal("handleWeight"); - BigDecimal packageHandleVolume = packageJson.getBigDecimal("handleVolume"); - //零担 - JSONObject zeroJson = warehouseIndexMapper.findZeroTrunklineHandOrderData(indexDTO); - Integer zeroWaybillNum = zeroJson.getInteger("waybillNum"); - Integer zeroHandleNum = zeroJson.getInteger("handleNum"); - BigDecimal zeroHandleWeight = zeroJson.getBigDecimal("handleWeight"); - BigDecimal zeroHandleVolume = zeroJson.getBigDecimal("handleVolume"); - - indexTrunklineHandOrderDataVO.setWaybillNum(packageWaybillNum + zeroWaybillNum); - indexTrunklineHandOrderDataVO.setHandleNum(packageHandleNum + zeroHandleNum); - indexTrunklineHandOrderDataVO.setHandleWeight(packageHandleWeight.add(zeroHandleWeight)); - indexTrunklineHandOrderDataVO.setHandleVolume(packageHandleVolume.add(zeroHandleVolume)); return indexTrunklineHandOrderDataVO; } @@ -326,10 +357,10 @@ public class WarehouseIndexServiceImpl implements IWarehouseIndexService { String dayUnSignforNum = warehouseIndexMapper.findUnSignforDataByDay(indexDTO); indexSignforDayDataVO.setUnSignNum(dayUnSignforNum); //计算签收率 - if (!"0".equals(daySignforNum) && !"0".equals(dayUnSignforNum) ) { + if (!"0".equals(daySignforNum) && !"0".equals(dayUnSignforNum)) { BigDecimal bd1 = new BigDecimal(daySignforNum); BigDecimal bd2 = new BigDecimal(dayUnSignforNum); - BigDecimal divide = bd1.divide(bd1.add(bd2),4,BigDecimal.ROUND_HALF_EVEN); + BigDecimal divide = bd1.divide(bd1.add(bd2), 4, BigDecimal.ROUND_HALF_EVEN); String signScale = divide.toString(); indexSignforDayDataVO.setSignScale(signScale); } @@ -342,7 +373,7 @@ public class WarehouseIndexServiceImpl implements IWarehouseIndexService { if (!"0".equals(dayClerkSignforNum) && !"0".equals(dayPlanByday)) { BigDecimal bd1 = new BigDecimal(dayClerkSignforNum); BigDecimal bd2 = new BigDecimal(dayPlanByday); - BigDecimal multiply = bd1.divide(bd1.add(bd2),4,BigDecimal.ROUND_CEILING); + BigDecimal multiply = bd1.divide(bd1.add(bd2), 4, BigDecimal.ROUND_CEILING); String signScale = multiply.toString(); indexSignforDayDataVO.setClerkSignforScale(signScale); } @@ -360,10 +391,10 @@ public class WarehouseIndexServiceImpl implements IWarehouseIndexService { String monthUnSignforNum = warehouseIndexMapper.findUnSignforDataByMonth(indexDTO); indexSignforMonthDataVO.setUnSignNum(monthUnSignforNum); //计算签收率 - if (!"0".equals(monthSignforNum) &&!"0".equals(monthUnSignforNum)) { + if (!"0".equals(monthSignforNum) && !"0".equals(monthUnSignforNum)) { BigDecimal bd1 = new BigDecimal(monthSignforNum); BigDecimal bd2 = new BigDecimal(monthUnSignforNum); - BigDecimal multiply = bd1.divide(bd1.add(bd2),4, BigDecimal.ROUND_CEILING); + BigDecimal multiply = bd1.divide(bd1.add(bd2), 4, BigDecimal.ROUND_CEILING); String signScale = multiply.toString(); indexSignforMonthDataVO.setSignScale(signScale); } @@ -371,20 +402,20 @@ public class WarehouseIndexServiceImpl implements IWarehouseIndexService { String monthClerkSignforNum = warehouseIndexMapper.findClerkSignforNumByMonth(indexDTO); indexSignforMonthDataVO.setClerkSignNum(monthClerkSignforNum); String monthPlan = warehouseIndexMapper.findPlanNumByMonth(indexDTO); - if (!"0".equals(monthClerkSignforNum) &&!"0".equals(monthPlan)) { + if (!"0".equals(monthClerkSignforNum) && !"0".equals(monthPlan)) { BigDecimal bd1 = new BigDecimal(monthClerkSignforNum); BigDecimal bd2 = new BigDecimal(monthPlan); - BigDecimal multiply = bd1.divide(bd1.add(bd2),4, BigDecimal.ROUND_CEILING); + BigDecimal multiply = bd1.divide(bd1.add(bd2), 4, BigDecimal.ROUND_CEILING); String signScale = multiply.toString(); indexSignforMonthDataVO.setClerkSignforScale(signScale); } //查询当月文员复核 String monthClerkOverTimeSignfoNum = warehouseIndexMapper.findClerkOverTimeNumByMonth(indexDTO); indexSignforMonthDataVO.setClerkOverTimeSignfoNum(monthClerkOverTimeSignfoNum); - if (!"0".equals(monthClerkOverTimeSignfoNum) && !"0".equals(monthPlan)) { + if (!"0".equals(monthClerkOverTimeSignfoNum) && !"0".equals(monthPlan)) { BigDecimal bd1 = new BigDecimal(monthClerkOverTimeSignfoNum); BigDecimal bd2 = new BigDecimal(monthPlan); - BigDecimal multiply = bd1.divide(bd1.add(bd2),4, BigDecimal.ROUND_CEILING); + BigDecimal multiply = bd1.divide(bd1.add(bd2), 4, BigDecimal.ROUND_CEILING); String signScale = multiply.toString(); indexSignforMonthDataVO.setClerkOverTimeScale(signScale); } @@ -401,10 +432,10 @@ public class WarehouseIndexServiceImpl implements IWarehouseIndexService { String dayBillLadingUnSignfor = warehouseIndexMapper.findBillLadingUnSignforByDay(indexDTO); indexBillLadingSignforDayDataVO.setUnSignNum(dayBillLadingUnSignfor); //计算当天的签收率 - if (!"0".equals(dayBillLadingSignfor) &&!"0".equals(dayBillLadingUnSignfor) ) { + if (!"0".equals(dayBillLadingSignfor) && !"0".equals(dayBillLadingUnSignfor)) { BigDecimal bd1 = new BigDecimal(dayBillLadingSignfor); BigDecimal bd2 = new BigDecimal(dayBillLadingUnSignfor); - BigDecimal multiply = bd1.divide(bd1.add(bd2),4, BigDecimal.ROUND_CEILING); + BigDecimal multiply = bd1.divide(bd1.add(bd2), 4, BigDecimal.ROUND_CEILING); String signScale = multiply.toString(); indexBillLadingSignforDayDataVO.setClerkSignforScale(signScale); } @@ -415,11 +446,11 @@ public class WarehouseIndexServiceImpl implements IWarehouseIndexService { //查询当天文员复核数 String dayBillLadingSignforNum = warehouseIndexMapper.findBillLadingSignForNumByDay(indexDTO); indexBillLadingSignforDayDataVO.setClerkSignNum(dayBillLadingSignforNum); - if (!"0".equals(dayBillLadingPlanNum) && !"0".equals(dayBillLadingSignforNum) ) { + if (!"0".equals(dayBillLadingPlanNum) && !"0".equals(dayBillLadingSignforNum)) { //计算当月的超时签收率 BigDecimal bd1 = new BigDecimal(dayBillLadingSignforNum); BigDecimal bd2 = new BigDecimal(dayBillLadingPlanNum); - BigDecimal multiply = bd1.divide(bd1.add(bd2),1, BigDecimal.ROUND_CEILING); + BigDecimal multiply = bd1.divide(bd1.add(bd2), 1, BigDecimal.ROUND_CEILING); String signScale = multiply.toString(); indexBillLadingSignforDayDataVO.setClerkOverTimeScale(signScale); } @@ -439,10 +470,10 @@ public class WarehouseIndexServiceImpl implements IWarehouseIndexService { String monthBillLadingUnSignfor = warehouseIndexMapper.findBillLadingUnSignforByMonth(indexDTO); indexBillLadingSignforMonthDataVO.setUnSignNum(monthBillLadingUnSignfor); //计算当月的签收率 - if ( !"0".equals(monthBillLadingSignfor) && !"0".equals(monthBillLadingUnSignfor) ) { + if (!"0".equals(monthBillLadingSignfor) && !"0".equals(monthBillLadingUnSignfor)) { BigDecimal bd1 = new BigDecimal(monthBillLadingSignfor); BigDecimal bd2 = new BigDecimal(monthBillLadingUnSignfor); - BigDecimal multiply = bd1.divide(bd1.add(bd2),4, BigDecimal.ROUND_CEILING); + BigDecimal multiply = bd1.divide(bd1.add(bd2), 4, BigDecimal.ROUND_CEILING); String signScale = multiply.toString(); indexBillLadingSignforMonthDataVO.setSignScale(signScale); } @@ -455,11 +486,11 @@ public class WarehouseIndexServiceImpl implements IWarehouseIndexService { indexBillLadingSignforMonthDataVO.setClerkOverTimeSignfoNum(monthBillLadingOverTimeNum); //查询当月计划总数 String monthBillLadingPlanNum = warehouseIndexMapper.findBillLadingPlanNumByMonth(indexDTO); - if (!"0".equals(monthBillLadingOverTimeNum) && !"0".equals(monthBillLadingPlanNum) ) { + if (!"0".equals(monthBillLadingOverTimeNum) && !"0".equals(monthBillLadingPlanNum)) { //计算当月的超时签收率 BigDecimal bd1 = new BigDecimal(monthBillLadingOverTimeNum); BigDecimal bd2 = new BigDecimal(monthBillLadingPlanNum); - BigDecimal multiply = bd1.divide(bd1.add(bd2),4, BigDecimal.ROUND_CEILING); + BigDecimal multiply = bd1.divide(bd1.add(bd2), 4, BigDecimal.ROUND_CEILING); String signScale = multiply.toString(); indexBillLadingSignforMonthDataVO.setClerkOverTimeScale(signScale); } diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/aspect/ChangeAsyncAnnotationAspect.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/aspect/ChangeAsyncAnnotationAspect.java index d504ebbb2..bc17b4c73 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/aspect/ChangeAsyncAnnotationAspect.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/aspect/ChangeAsyncAnnotationAspect.java @@ -78,7 +78,7 @@ public class ChangeAsyncAnnotationAspect { data = bladeRedis.get(CacheNames.LOCAL_SERVER_USER + tenantId + ":" + account); if (Objects.isNull(data)) { data = mockLoginService.mockToken(tenantId, account); - bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER + tenantId + ":" + account, data, 25919900L); + bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER + tenantId + ":" + account, data, 2591990L); redisLockClient.unLock("local_server_user" + tenantId, LockType.FAIR); } } diff --git a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/config/interceptor/LocalServerLoginAccountsInterceptor.java b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/config/interceptor/LocalServerLoginAccountsInterceptor.java index ddbe48af9..515c3e11d 100644 --- a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/config/interceptor/LocalServerLoginAccountsInterceptor.java +++ b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/config/interceptor/LocalServerLoginAccountsInterceptor.java @@ -51,7 +51,7 @@ public class LocalServerLoginAccountsInterceptor extends HandlerInterceptorAdapt data =bladeRedis.get(CacheNames.LOCAL_SERVER_USER+account); if(Objects.isNull(data)){ data = mockLoginService.mockToken("627683",account); - bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER+account,data,25919900L); + bladeRedis.setEx(CacheNames.LOCAL_SERVER_USER+account,data,2591990L); redisLockClient.unLock("local_server_user", LockType.FAIR); } }