This commit is contained in:
ls
2025-02-25 08:50:33 +08:00
parent ec465719e4
commit a910bac5fa
2 changed files with 4 additions and 4 deletions

View File

@@ -12,10 +12,10 @@ import org.jeecg.modules.database.entity.HistoricalDatabase;
*/ */
public interface HistoricalDatabaseMapper extends BaseMapper<HistoricalDatabase> { public interface HistoricalDatabaseMapper extends BaseMapper<HistoricalDatabase> {
@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(); 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(); Long sumXhy();
} }

View File

@@ -11,9 +11,9 @@ import org.jeecg.modules.database.entity.LocalDatabase;
* @Version: V1.0 * @Version: V1.0
*/ */
public interface LocalDatabaseMapper extends BaseMapper<LocalDatabase> { public interface LocalDatabaseMapper extends BaseMapper<LocalDatabase> {
@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(); 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(); Long sumXhy();
} }