update
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user