mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-05-21 12:26:31 +00:00
chore[orm]: rename local variable
This commit is contained in:
+6
-6
@@ -205,18 +205,18 @@ public class EntityCache<PK extends Comparable<PK>, E extends IEntity<PK>> imple
|
||||
public void updateNow(E entity) {
|
||||
var cachePnode = fetchCachePnode(entity, true);
|
||||
OrmContext.getAccessor().update(cachePnode.getEntity());
|
||||
var currentTime = TimeUtils.now();
|
||||
cachePnode.setWriteToDbTime(currentTime);
|
||||
cachePnode.setModifiedTime(currentTime);
|
||||
var now = TimeUtils.now();
|
||||
cachePnode.setWriteToDbTime(now);
|
||||
cachePnode.setModifiedTime(now);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateUnsafeNow(E entity) {
|
||||
var cachePnode = fetchCachePnode(entity, false);
|
||||
OrmContext.getAccessor().update(cachePnode.getEntity());
|
||||
var currentTime = TimeUtils.now();
|
||||
cachePnode.setWriteToDbTime(currentTime);
|
||||
cachePnode.setModifiedTime(currentTime);
|
||||
var now = TimeUtils.now();
|
||||
cachePnode.setWriteToDbTime(now);
|
||||
cachePnode.setModifiedTime(now);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user