mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-16 22:43:12 +00:00
Fix dates in checksum queries
This commit is contained in:
@@ -53,8 +53,8 @@ public class MostRecentChecksumDAOImpl extends AbstractHibernateDAO<MostRecentCh
|
|||||||
criteria.add(
|
criteria.add(
|
||||||
Restrictions.and(
|
Restrictions.and(
|
||||||
Restrictions.eq("toBeProcessed", false),
|
Restrictions.eq("toBeProcessed", false),
|
||||||
Restrictions.le("processStartDate", startDate),
|
Restrictions.le("processStartDate", endDate),
|
||||||
Restrictions.gt("processStartDate", endDate)
|
Restrictions.gt("processStartDate", startDate)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
criteria.addOrder(Order.asc("bitstream.id"));
|
criteria.addOrder(Order.asc("bitstream.id"));
|
||||||
@@ -84,8 +84,8 @@ public class MostRecentChecksumDAOImpl extends AbstractHibernateDAO<MostRecentCh
|
|||||||
criteria.add(
|
criteria.add(
|
||||||
Restrictions.and(
|
Restrictions.and(
|
||||||
Restrictions.eq("checksumResult.resultCode", resultCode),
|
Restrictions.eq("checksumResult.resultCode", resultCode),
|
||||||
Restrictions.le("processStartDate", startDate),
|
Restrictions.le("processStartDate", endDate),
|
||||||
Restrictions.gt("processStartDate", endDate)
|
Restrictions.gt("processStartDate", startDate)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
criteria.addOrder(Order.asc("bitstream.id"));
|
criteria.addOrder(Order.asc("bitstream.id"));
|
||||||
|
Reference in New Issue
Block a user