修复删除验证的提示问题; 修复Int类型查询问题

This commit is contained in:
2021-04-12 22:38:41 +08:00
parent 038ed84a1e
commit a8a13fd7f1
4 changed files with 14 additions and 5 deletions

View File

@@ -69,7 +69,7 @@ open class Service<TAggregateRoot : IAggregateRoot<TKey>, TKey>(
for (func in functions) {
msg = func(id)
if (!msg.success()) {
throw RuntimeException(msg.message)
throw IllegalStateException(msg.message)
}
}
this.repository.remove(id, this.clazz)