Skip to content

Commit

Permalink
SAM-2702 - Autosubmit job does not use LATEHANDLING field when retrac…
Browse files Browse the repository at this point in the history
…t date is not used.
  • Loading branch information
danielmerino committed Feb 9, 2016
1 parent 74dda02 commit 954ce70
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3388,7 +3388,7 @@ public List getSiteNeedResubmitList(String siteId) {

public void autoSubmitAssessments() {
java.util.Date currentTime = new java.util.Date();
Object [] values = {currentTime};
Object [] values = {currentTime, currentTime};

List list = getHibernateTemplate()
.find("select new AssessmentGradingData(a.assessmentGradingId, a.publishedAssessmentId, " +
Expand All @@ -3398,7 +3398,8 @@ public void autoSubmitAssessments() {
" where a.publishedAssessmentId = c.assessment.publishedAssessmentId " +
" and c.retractDate <= ?" +
" and a.status not in (5) and (a.hasAutoSubmissionRun = 0 or a.hasAutoSubmissionRun is null) and c.autoSubmit = 1 " +
" and a.submittedDate is not null and a.attemptDate <= c.retractDate " +
" and a.submittedDate is not null " +
" and (a.attemptDate <= c.retractDate or (c.dueDate <= ? and c.lateHandling = 2)) " +
" order by a.publishedAssessmentId, a.agentId, a.forGrade desc, a.assessmentGradingId", values);

Iterator iter = list.iterator();
Expand Down

0 comments on commit 954ce70

Please sign in to comment.