|
@@ -1,11 +1,13 @@
|
|
|
package com.ssj.service.kmt.correctsys;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Calendar;
|
|
|
+import java.util.Comparator;
|
|
|
import java.util.Date;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.LinkedHashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
+import java.util.TreeMap;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
@@ -693,7 +695,7 @@ public class KmtCorrectSysServiceImpl implements KmtCorrectSysService {
|
|
|
calendar.set(Calendar.MINUTE, 0);
|
|
|
calendar.set(Calendar.SECOND, 0);
|
|
|
calendar.set(Calendar.MILLISECOND, 0);
|
|
|
- calendar.add(Calendar.DAY_OF_MONTH, -0);
|
|
|
+ calendar.add(Calendar.DAY_OF_MONTH, -1);
|
|
|
|
|
|
String endTime = DateUtil.format_yyyyMMddHHmmss(calendar.getTime());
|
|
|
if(curHour24<12) {
|
|
@@ -770,7 +772,7 @@ public class KmtCorrectSysServiceImpl implements KmtCorrectSysService {
|
|
|
return resultPage;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 按日期顺序插入
|
|
|
*
|
|
@@ -783,7 +785,7 @@ public class KmtCorrectSysServiceImpl implements KmtCorrectSysService {
|
|
|
} else {
|
|
|
boolean isLast = true;
|
|
|
for (int i = 0; i < result.size(); i++) {
|
|
|
- if (result.get(i).getDate().compareTo(homeworkCheckSubjectDto.getDate()) > 0) {
|
|
|
+ if (result.get(i).getDate().compareTo(homeworkCheckSubjectDto.getDate()) < 0) {
|
|
|
result.add(i, homeworkCheckSubjectDto);
|
|
|
isLast = false;
|
|
|
break;
|
|
@@ -795,10 +797,8 @@ public class KmtCorrectSysServiceImpl implements KmtCorrectSysService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
|
|
|
-}
|