Commit ca403685 by 章家宝

修复区间格式错误的bug

1 parent 006b7db7
......@@ -333,7 +333,7 @@ public class PerformanceConfigService {
intervalList.sort(Comparator.comparing(l -> l.get(0)));
// 必须从0开始
if (!intervalList.get(0).get(0).equals(BigDecimal.ZERO.doubleValue())) {
if (!intervalList.isEmpty() && !intervalList.get(0).get(0).equals(BigDecimal.ZERO.doubleValue())) {
log.info("区间格式错误, 必须从0开始.");
return false;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!