1
0
ting.yin 5 жил өмнө
parent
commit
8da105a41f

+ 2 - 1
stmms-biz/src/main/java/cn/com/qmth/stmms/biz/mark/service/Impl/MarkServiceImpl.java

@@ -704,6 +704,7 @@ public class MarkServiceImpl implements MarkService {
         if (ThirdPolicy.LOW_DIFF_HIGH_AVG.equals(group.getThirdPolicy()) && list.size() == 3) {
             // Collections.sort(list,
             // Comparator.comparing(MarkLibrary::getMarkerScore));
+            // 从小到大排序
             Collections.sort(list, new Comparator<MarkLibrary>() {
 
                 @Override
@@ -720,7 +721,7 @@ public class MarkServiceImpl implements MarkService {
                     .getMarkerScore();
             Double score3 = list.get(2).getHeaderScore() != null ? list.get(2).getHeaderScore() : list.get(2)
                     .getMarkerScore();
-            if ((score3 - score2) >= (score2 - score1)) {
+            if ((score3 - score2) <= (score2 - score1)) {
                 list.remove(0);
             } else {
                 list.remove(2);