mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-07-01 04:24:50 +08:00
优化时间填充
This commit is contained in:
@@ -76,6 +76,8 @@ public class CreatorEventListener implements EventListener {
|
||||
if (ObjectUtils.isEmpty(e.getCreatorId())) {
|
||||
e.setCreatorId(auth.getUser().getId());
|
||||
e.setCreatorName(auth.getUser().getName());
|
||||
}
|
||||
if (e.getCreateTime() == null) {
|
||||
e.setCreateTimeNow();
|
||||
}
|
||||
|
||||
@@ -85,6 +87,8 @@ public class CreatorEventListener implements EventListener {
|
||||
if (ObjectUtils.isEmpty(e.getModifierId())) {
|
||||
e.setModifierId(auth.getUser().getId());
|
||||
e.setModifierName(auth.getUser().getName());
|
||||
}
|
||||
if (e.getModifyTime() == null) {
|
||||
e.setModifyTimeNow();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user