Foros de discusión

How to get last 24 hours blogs record count?

Chintan Akhani, modificado hace 11 años.

How to get last 24 hours blogs record count?

Regular Member Mensajes: 111 Fecha de incorporación: 13/03/08 Mensajes recientes
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 hace 11 años.

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

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
Are you using BlogsEntryLocalServiceUtil.dynamicQuery(DynamicQuery dynamicQuery)
Chintan Akhani, modificado hace 11 años.

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

Regular Member Mensajes: 111 Fecha de incorporación: 13/03/08 Mensajes recientes
No, we are using AssetEntryServiceUtil.getEntries() method.