🔨 修改重复提示.

This commit is contained in:
lijiahangmax
2025-11-02 01:06:12 +08:00
parent 5bbf46d141
commit 91b22297a2
12 changed files with 12 additions and 12 deletions

View File

@@ -297,7 +297,7 @@ public class AlarmPolicyServiceImpl implements AlarmPolicyService {
.eq(AlarmPolicyDO::getName, domain.getName());
// 检查是否存在
boolean present = alarmPolicyDAO.of(wrapper).present();
Assert.isFalse(present, ErrorMessage.DATA_PRESENT);
Assert.isFalse(present, ErrorMessage.NAME_PRESENT);
}
}

View File

@@ -203,7 +203,7 @@ public class MonitorMetricsServiceImpl implements MonitorMetricsService {
.eq(MonitorMetricsDO::getValue, domain.getValue());
// 检查是否存在
boolean present = monitorMetricsDAO.of(wrapper).present();
Assert.isFalse(present, ErrorMessage.DATA_PRESENT);
Assert.isFalse(present, ErrorMessage.NAME_PRESENT);
}
}