@@ -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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user