jinlin
2025-04-01 a80b4a7eb099390bb53c967126fa97b30568e1a3
src/main/java/com/example/server/entity/FieldMetaObjectHandler.java
@@ -18,6 +18,7 @@
import org.apache.ibatis.reflection.MetaObject;
import org.springframework.stereotype.Component;
import javax.swing.*;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
@@ -48,13 +49,13 @@
        if (object instanceof PlatformLogEntity) {
            PlatformLogEntity entity = (PlatformLogEntity) object;
            entity.setCreator(user.getUserId());// 创建者
            entity.setCreator(user.getId());// 创建者
            entity.setCreateDate(date);// 创建时间
        }
        if (object instanceof PlatformEntity) {
            PlatformEntity entity = (PlatformEntity) object;
            entity.setDelete(false);
            entity.setUpdater(user.getUserId());// 更新者
            entity.setUpdater(user.getId());// 更新者
            entity.setUpdateDate(date);// 更新时间
        }
        if (object instanceof TenantEntity) {
@@ -73,7 +74,7 @@
        Object object = metaObject.getOriginalObject();
        if (object instanceof PlatformEntity) {
            PlatformEntity entity = (PlatformEntity) object;
            entity.setUpdater(user.getUserId());// 更新者
            entity.setUpdater(user.getId());// 更新者
            entity.setUpdateDate(date);// 更新时间
        }