This commit is contained in:
wr
2025-02-10 16:29:30 +08:00
parent 2c70ae0696
commit 9d6f8155fd

View File

@@ -1125,13 +1125,12 @@ public class DetectionServiceImpl {
public List<Double> getDoubles(List<Double> t) {
if (CollUtil.isNotEmpty(t)) {
if (t == null || t.size() < 2) {
return t;
if (t.size() > 2) {
Double max = Collections.max(t);
Double min = Collections.min(t);
t.remove(max);
t.remove(min);
}
Double max = Collections.max(t);
Double min = Collections.min(t);
t.remove(max);
t.remove(min);
}
return t;
}