dev add statistic rest
Test Workflow / test (push) Successful in 2s

This commit is contained in:
vladp
2026-04-15 17:46:53 +07:00
parent b56fb63a37
commit 1b921b525a
2 changed files with 1 additions and 7 deletions
@@ -14,7 +14,4 @@ public class TariffStatisticFullResponse {
@JsonProperty("tariffs") @JsonProperty("tariffs")
private List<TariffStatisticResponse> tariffs; private List<TariffStatisticResponse> tariffs;
@JsonProperty("total_users")
private Long totalUsers;
} }
@@ -37,10 +37,7 @@ public class StatisticTariffInfoFileHandler implements RequestHandler {
)) ))
.toList(); .toList();
Long totalUsers = tariffInfoRepository.getTotalUsersCount(activeOnly); TariffStatisticFullResponse statistics = new TariffStatisticFullResponse(tariffs);
TariffStatisticFullResponse statistics = new TariffStatisticFullResponse(
tariffs, totalUsers != null ? totalUsers : 0L);
return new BaseResponse( return new BaseResponse(
request.getMsgId(), request.getMsgId(),