|
@@ -518,7 +518,9 @@ public class MarkServiceImpl implements MarkService {
|
|
|
buildThirdLibrary(library, group);
|
|
|
} else {
|
|
|
// 两两比较,触发仲裁
|
|
|
- history = getArbitrate(list, group.getArbitrateThreshold(), now);
|
|
|
+ List<MarkLibrary> libraries = libraryDao.findByStudentIdAndGroupNumber(
|
|
|
+ library.getStudentId(), library.getGroupNumber());
|
|
|
+ history = getArbitrate(libraries, group.getArbitrateThreshold(), now);
|
|
|
}
|
|
|
} else {
|
|
|
// 未开启三评,触发仲裁
|
|
@@ -539,6 +541,12 @@ public class MarkServiceImpl implements MarkService {
|
|
|
}
|
|
|
|
|
|
private ArbitrateHistory getArbitrate(List<MarkLibrary> list, Double arbitrateThreshold, Date now) {
|
|
|
+ for (MarkLibrary library : list) {
|
|
|
+ if (library.getStatus() != LibraryStatus.MARKED && library.getStatus() != LibraryStatus.INSPECTED
|
|
|
+ && library.getStatus() != LibraryStatus.ARBITRATED) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ }
|
|
|
int count = 0;
|
|
|
for (int i = 0; i < list.size(); i++) {
|
|
|
int next = i + 1;
|