From 726eac4a11089ab7c22e27cb8d95e7ad2fa9ca50 Mon Sep 17 00:00:00 2001 From: gsd Date: Tue, 12 May 2026 20:53:18 +0300 Subject: [PATCH] blya --- src/main/java/app/services/db/GraphService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/app/services/db/GraphService.java b/src/main/java/app/services/db/GraphService.java index eeeb53a..d013aca 100644 --- a/src/main/java/app/services/db/GraphService.java +++ b/src/main/java/app/services/db/GraphService.java @@ -46,7 +46,7 @@ public class GraphService { @Cacheable(value = "graphs.usertime", key = "#searchFilter.cacheKey") //"graphs.usertime", "graphs.vip" public List getUsertimeOnPeriod(SearchFilter searchFilter) { final String sql = "select date_trunc(:delta, timestamp) AS ts, :delta as period, sum(connect_duration) as value, srv_id from user_connections " + - "where (:account_ids_empty = true or account_id in (:account_ids)) and migration_id is null and connect_duration != 0 and timestamp between :begindate and :enddate " + + "where (:account_ids_empty = true or account_id in (:account_ids)) and connect_duration != 0 and timestamp between :begindate and :enddate " + "and (:srv_id like '' or srv_id like :srv_id) " + "group by ts, srv_id " + "order by ts asc"; @@ -67,7 +67,6 @@ public class GraphService { final String sql = "select acc.ts, acc.period, count(acc.value) as value, acc.srv_id from (select date_trunc(:delta, timestamp) AS ts, :delta as period, count(account_id) as value, srv_id, account_id from user_connections " + " where timestamp between :begindate and :enddate " + " and (:account_ids_empty = true or account_id in (:account_ids))" + - " and migration_id is null " + " and connect_duration > 0 " + " and (:srv_id like '' or srv_id like :srv_id) " + " group by ts, srv_id, account_id) as acc " +