From a910bac5fafbf412b7e346971f83ab0a81a4c054 Mon Sep 17 00:00:00 2001 From: ls Date: Tue, 25 Feb 2025 08:50:33 +0800 Subject: [PATCH] update --- .../modules/database/mapper/HistoricalDatabaseMapper.java | 4 ++-- .../jeecg/modules/database/mapper/LocalDatabaseMapper.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/mapper/HistoricalDatabaseMapper.java b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/mapper/HistoricalDatabaseMapper.java index 7f9af99..b1a3408 100644 --- a/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/mapper/HistoricalDatabaseMapper.java +++ b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/mapper/HistoricalDatabaseMapper.java @@ -12,10 +12,10 @@ import org.jeecg.modules.database.entity.HistoricalDatabase; */ public interface HistoricalDatabaseMapper extends BaseMapper { - @Select("SELECT SUM(total_count_lhs) FROM local_database where total_count_lhs is not null") + @Select("SELECT SUM(total_count_lhs) FROM historical_database where total_count_lhs is not null") Long sumLhs(); - @Select("SELECT SUM(total_count_xhy) FROM local_database where total_count_xhy is not null") + @Select("SELECT SUM(total_count_xhy) FROM historical_database where total_count_xhy is not null") Long sumXhy(); } diff --git a/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/mapper/LocalDatabaseMapper.java b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/mapper/LocalDatabaseMapper.java index ec9e6ab..d74ebda 100644 --- a/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/mapper/LocalDatabaseMapper.java +++ b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/database/mapper/LocalDatabaseMapper.java @@ -11,9 +11,9 @@ import org.jeecg.modules.database.entity.LocalDatabase; * @Version: V1.0 */ public interface LocalDatabaseMapper extends BaseMapper { - @Select("SELECT SUM(total_count_lhs) FROM historical_database where total_count_lhs is not null") + @Select("SELECT SUM(total_count_lhs) FROM local_database where total_count_lhs is not null") Long sumLhs(); - @Select("SELECT SUM(total_count_xhy) FROM historical_database where total_count_xhy is not null") + @Select("SELECT SUM(total_count_xhy) FROM local_database where total_count_xhy is not null") Long sumXhy(); }