mirror of
https://github.com/Dannecron/spring-boot-demo.git
synced 2025-12-26 00:32:34 +03:00
improve copying
This commit is contained in:
@@ -51,11 +51,6 @@ class CityServiceImpl(
|
||||
}
|
||||
|
||||
val deletedCity = city.copy(
|
||||
id = city.id!!,
|
||||
guid = city.guid,
|
||||
name = city.name,
|
||||
createdAt = city.createdAt,
|
||||
updatedAt = city.updatedAt,
|
||||
deletedAt = OffsetDateTime.now(),
|
||||
)
|
||||
|
||||
|
||||
@@ -42,13 +42,6 @@ class ProductServiceImpl(
|
||||
}
|
||||
|
||||
val deletedProduct = product.copy(
|
||||
id = product.id!!,
|
||||
guid = product.guid,
|
||||
name = product.name,
|
||||
description = product.description,
|
||||
price = product.price,
|
||||
createdAt = product.createdAt,
|
||||
updatedAt = product.updatedAt,
|
||||
deletedAt = OffsetDateTime.now(),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user