Fórum

How to get last 24 hours blogs record count?

Chintan Akhani, modificado 11 Anos atrás.

How to get last 24 hours blogs record count?

Regular Member Postagens: 111 Data de Entrada: 13/03/08 Postagens Recentes
Hi All,

How can we get the blog count of last 24 hours based on modified date?

We have tried with dynamic query, because using AssetQuery it is not possible as it does't have a field called "Modified Date". But if we use the dynamic query than in that case we have to make a check for permission as well, so it might create performance related issue.

Please provide your view on same.

Thanks,
Chintan
thumbnail
Hitoshi Ozawa, modificado 11 Anos atrás.

RE: How to get last 24 hours blogs record count?

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
Are you using BlogsEntryLocalServiceUtil.dynamicQuery(DynamicQuery dynamicQuery)
Chintan Akhani, modificado 11 Anos atrás.

RE: How to get last 24 hours blogs record count?

Regular Member Postagens: 111 Data de Entrada: 13/03/08 Postagens Recentes
No, we are using AssetEntryServiceUtil.getEntries() method.