🔨 修改重复提示.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user