| | |
| | | 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; |
| | |
| | | |
| | | 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) { |
| | |
| | | Object object = metaObject.getOriginalObject(); |
| | | if (object instanceof PlatformEntity) { |
| | | PlatformEntity entity = (PlatformEntity) object; |
| | | entity.setUpdater(user.getUserId());// 更新者 |
| | | entity.setUpdater(user.getId());// 更新者 |
| | | entity.setUpdateDate(date);// 更新时间 |
| | | } |
| | | |