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