fixed a bug counting datasources

This commit is contained in:
Michele Artini 2022-10-21 15:30:59 +02:00
parent 92bd92f1b9
commit 13e9821940
2 changed files with 2 additions and 6 deletions

View File

@ -1,9 +1,7 @@
select count(d.id) as count select count(DISTINCT d.id) as count
from from
dsm_services d dsm_services d
left outer join dsm_api a on (d.id = a.service) left outer join dsm_api a on (d.id = a.service)
left outer join dsm_service_organization dso on (d.id = dso.service)
left outer join dsm_organizations o on (o.id = dso.organization)
where where
d.registrationdate >= cast(? as date) d.registrationdate >= cast(? as date)
and d.registrationdate < a.last_collection_date and d.registrationdate < a.last_collection_date

View File

@ -1,9 +1,7 @@
select count(d.id) as count select count(DISTINCT d.id) as count
from from
dsm_services d dsm_services d
left outer join dsm_api a on (d.id = a.service) left outer join dsm_api a on (d.id = a.service)
left outer join dsm_service_organization dso on (d.id = dso.service)
left outer join dsm_organizations o on (o.id = dso.organization)
where where
d.registrationdate >= cast(? as date) d.registrationdate >= cast(? as date)
and d._typology_to_remove_ like ? and d._typology_to_remove_ like ?