🔨 修改重复提示.
This commit is contained in:
@@ -258,7 +258,7 @@ public class HostIdentityServiceImpl implements HostIdentityService {
|
||||
.eq(HostIdentityDO::getName, domain.getName());
|
||||
// 检查是否存在
|
||||
boolean present = hostIdentityDAO.of(wrapper).present();
|
||||
Assert.isFalse(present, ErrorMessage.DATA_PRESENT);
|
||||
Assert.isFalse(present, ErrorMessage.NAME_PRESENT);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -242,7 +242,7 @@ public class HostKeyServiceImpl implements HostKeyService {
|
||||
.eq(HostKeyDO::getName, domain.getName());
|
||||
// 检查是否存在
|
||||
boolean present = hostKeyDAO.of(wrapper).present();
|
||||
Assert.isFalse(present, ErrorMessage.DATA_PRESENT);
|
||||
Assert.isFalse(present, ErrorMessage.NAME_PRESENT);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -408,7 +408,7 @@ public class ExecJobServiceImpl implements ExecJobService {
|
||||
.eq(ExecJobDO::getName, domain.getName());
|
||||
// 检查是否存在
|
||||
boolean present = execJobDAO.of(wrapper).present();
|
||||
Assert.isFalse(present, ErrorMessage.DATA_PRESENT);
|
||||
Assert.isFalse(present, ErrorMessage.NAME_PRESENT);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -208,7 +208,7 @@ public class ExecTemplateServiceImpl implements ExecTemplateService {
|
||||
.eq(ExecTemplateDO::getName, domain.getName());
|
||||
// 检查是否存在
|
||||
boolean present = execTemplateDAO.of(wrapper).present();
|
||||
Assert.isFalse(present, ErrorMessage.DATA_PRESENT);
|
||||
Assert.isFalse(present, ErrorMessage.NAME_PRESENT);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -343,7 +343,7 @@ public class DataGroupServiceImpl implements DataGroupService {
|
||||
.eq(DataGroupDO::getName, domain.getName());
|
||||
// 检查是否存在
|
||||
boolean present = dataGroupDAO.of(wrapper).present();
|
||||
Assert.isFalse(present, ErrorMessage.DATA_PRESENT);
|
||||
Assert.isFalse(present, ErrorMessage.NAME_PRESENT);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -248,7 +248,7 @@ public class DictKeyServiceImpl implements DictKeyService {
|
||||
.eq(DictKeyDO::getKeyName, domain.getKeyName());
|
||||
// 检查是否存在
|
||||
boolean present = dictKeyDAO.of(wrapper).present();
|
||||
Assert.isFalse(present, ErrorMessage.DATA_PRESENT);
|
||||
Assert.isFalse(present, ErrorMessage.NAME_PRESENT);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -226,7 +226,7 @@ public class NotifyTemplateServiceImpl implements NotifyTemplateService {
|
||||
.eq(NotifyTemplateDO::getBizType, domain.getBizType());
|
||||
// 检查是否存在
|
||||
boolean present = notifyTemplateDAO.of(wrapper).present();
|
||||
Assert.isFalse(present, ErrorMessage.DATA_PRESENT);
|
||||
Assert.isFalse(present, ErrorMessage.NAME_PRESENT);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -243,7 +243,7 @@ public class TagServiceImpl implements TagService {
|
||||
.eq(TagDO::getName, domain.getName());
|
||||
// 检查是否存在
|
||||
boolean present = tagDAO.of(wrapper).present();
|
||||
Assert.isFalse(present, ErrorMessage.DATA_PRESENT);
|
||||
Assert.isFalse(present, ErrorMessage.NAME_PRESENT);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -217,7 +217,7 @@ public class CommandSnippetServiceImpl implements CommandSnippetService {
|
||||
.eq(CommandSnippetDO::getName, domain.getName());
|
||||
// 检查是否存在
|
||||
boolean present = commandSnippetDAO.of(wrapper).present();
|
||||
Assert.isFalse(present, ErrorMessage.DATA_PRESENT);
|
||||
Assert.isFalse(present, ErrorMessage.NAME_PRESENT);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -217,7 +217,7 @@ public class PathBookmarkServiceImpl implements PathBookmarkService {
|
||||
.eq(PathBookmarkDO::getName, domain.getName());
|
||||
// 检查是否存在
|
||||
boolean present = pathBookmarkDAO.of(wrapper).present();
|
||||
Assert.isFalse(present, ErrorMessage.DATA_PRESENT);
|
||||
Assert.isFalse(present, ErrorMessage.NAME_PRESENT);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user