|
@@ -31,6 +31,7 @@ public class CreateAndUpdateMetaObjectHandler implements MetaObjectHandler {
|
|
|
? baseEntity.getCreateTime() : new Date();
|
|
|
baseEntity.setCreateTime(current);
|
|
|
//baseEntity.setUpdateTime(current);
|
|
|
+ baseEntity.setUpdateInfoTime(current);
|
|
|
String username = StringUtils.isNotBlank(baseEntity.getCreateBy())
|
|
|
? baseEntity.getCreateBy() : getLoginUsername();
|
|
|
// 当前已登录 且 创建人为空 则填充
|
|
@@ -50,7 +51,8 @@ public class CreateAndUpdateMetaObjectHandler implements MetaObjectHandler {
|
|
|
BaseEntity baseEntity = (BaseEntity) metaObject.getOriginalObject();
|
|
|
Date current = new Date();
|
|
|
// 更新时间填充(不管为不为空)
|
|
|
- baseEntity.setUpdateTime(current);
|
|
|
+ // baseEntity.setUpdateTime(current);
|
|
|
+ baseEntity.setUpdateInfoTime(current);
|
|
|
String username = getLoginUsername();
|
|
|
// 当前已登录 更新人填充(不管为不为空)
|
|
|
if (StringUtils.isNotBlank(username)) {
|