diff --git a/forgeboot-webmvc/spec-jpa/src/main/kotlin/com/gewuyou/webmvc/spec/jpa/service/impl/JpaCrudServiceImplSpec.kt b/forgeboot-webmvc/spec-jpa/src/main/kotlin/com/gewuyou/webmvc/spec/jpa/service/impl/JpaCrudServiceImplSpec.kt index 5aa4d6e..9cc9c75 100644 --- a/forgeboot-webmvc/spec-jpa/src/main/kotlin/com/gewuyou/webmvc/spec/jpa/service/impl/JpaCrudServiceImplSpec.kt +++ b/forgeboot-webmvc/spec-jpa/src/main/kotlin/com/gewuyou/webmvc/spec/jpa/service/impl/JpaCrudServiceImplSpec.kt @@ -209,7 +209,7 @@ abstract class JpaCrudServiceImplSpec( * @param entity 实体对象,用于检查其删除状态 * @return 如果实体已被标记为软删除状态返回 true,否则返回 false */ - protected abstract fun isSoftDeleted(entity: Entity): Boolean + protected abstract fun isSoftDeletedByEntity(entity: Entity): Boolean /** * 执行软删除操作。 @@ -282,6 +282,6 @@ abstract class JpaCrudServiceImplSpec( */ override fun isSoftDeleted(id: Id): Boolean { val entity = findById(id)?:return false - return isSoftDeleted(entity) + return isSoftDeletedByEntity(entity) } } \ No newline at end of file diff --git a/forgeboot-webmvc/spec-jpa/src/main/kotlin/com/gewuyou/webmvc/spec/jpa/service/impl/SimpleJpaCrudServiceImplSpec.kt b/forgeboot-webmvc/spec-jpa/src/main/kotlin/com/gewuyou/webmvc/spec/jpa/service/impl/SimpleJpaCrudServiceImplSpec.kt index 4206237..2973ee0 100644 --- a/forgeboot-webmvc/spec-jpa/src/main/kotlin/com/gewuyou/webmvc/spec/jpa/service/impl/SimpleJpaCrudServiceImplSpec.kt +++ b/forgeboot-webmvc/spec-jpa/src/main/kotlin/com/gewuyou/webmvc/spec/jpa/service/impl/SimpleJpaCrudServiceImplSpec.kt @@ -41,7 +41,7 @@ abstract class SimpleJpaCrudServiceImplSpec( * @param entity 实体对象,用于检查其删除状态 * @return 如果实体已被标记为软删除状态返回 true,否则返回 false */ - override fun isSoftDeleted(entity: Entity): Boolean { + override fun isSoftDeletedByEntity(entity: Entity): Boolean { return false } } \ No newline at end of file