From 83f8f4e293cd7fdd72b8dbebcf705015072ab1e8 Mon Sep 17 00:00:00 2001 From: mashili Date: Sat, 11 Oct 2025 16:31:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B5=E4=BB=B7=E9=85=8D=E7=BD=AE-=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=AB=99=E7=82=B9id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/xzzn/ems/service/impl/FXXDataProcessServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ems-system/src/main/java/com/xzzn/ems/service/impl/FXXDataProcessServiceImpl.java b/ems-system/src/main/java/com/xzzn/ems/service/impl/FXXDataProcessServiceImpl.java index 1a310be..2b844a4 100644 --- a/ems-system/src/main/java/com/xzzn/ems/service/impl/FXXDataProcessServiceImpl.java +++ b/ems-system/src/main/java/com/xzzn/ems/service/impl/FXXDataProcessServiceImpl.java @@ -775,10 +775,10 @@ public class FXXDataProcessServiceImpl extends AbstractBatteryDataProcessor impl private void dealAmmeterDailyDate(Map obj, String deviceId, Date dataUpdateTime) { // 先获取当月电价配置,redis没有这查数据库,都没有则返回 - String priceKey = RedisKeyConstants.ENERGY_PRICE_TIME + LocalDate.now().getYear() + LocalDate.now().getMonthValue(); + String priceKey = RedisKeyConstants.ENERGY_PRICE_TIME + SITE_ID + "_" + LocalDate.now().getYear() + LocalDate.now().getMonthValue(); List timeRanges = redisCache.getCacheObject(priceKey); if (timeRanges == null) { - timeRanges = emsEnergyPriceConfigMapper.getTimeRangeByDate(LocalDate.now().getYear(),LocalDate.now().getMonthValue()); + timeRanges = emsEnergyPriceConfigMapper.getTimeRangeByDate(SITE_ID, LocalDate.now().getYear(),LocalDate.now().getMonthValue()); if (timeRanges == null) { return; }