Commit fbe76114 by zhouhaibao

[+]新增预警管理,录音查询的逻辑调整

1 parent 88b46555
...@@ -56,9 +56,6 @@ public class EcoCoefficientService { ...@@ -56,9 +56,6 @@ public class EcoCoefficientService {
* @throws IllegalArgumentException 如果未找到匹配规则 * @throws IllegalArgumentException 如果未找到匹配规则
*/ */
public BigDecimal getCoefficient(String indicatorCode, double penetration) { public BigDecimal getCoefficient(String indicatorCode, double penetration) {
if (penetration < 0 || penetration > 1.0) {
throw new IllegalArgumentException("渗透率必须在 [0.0, 1.0] 范围内");
}
List<EcoCoefficientRule> rules = ruleCache.get(indicatorCode); List<EcoCoefficientRule> rules = ruleCache.get(indicatorCode);
if (rules == null || rules.isEmpty()) { if (rules == null || rules.isEmpty()) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!