allow update createdAt and deletedAt
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user