allow update createdAt and deletedAt

This commit is contained in:
Timi
2025-12-09 22:19:07 +08:00
parent 413f376a15
commit d3aded669b
2 changed files with 0 additions and 12 deletions

View File

@ -56,12 +56,6 @@ public abstract class AbstractEntityService<T, P> implements BaseService<T, P> {
public void update(T t) {
checkMapper();
if (t instanceof Creatable creatable) {
creatable.setCreatedAt(null);
}
if (t instanceof Deletable deletable) {
deletable.setDeletedAt(null);
}
baseMapper.updateSelective(t);
}