🔨 修改重复提示.
This commit is contained in:
@@ -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