From 1d0d712b4f2b489e020cbf23eaf20e386eee1561 Mon Sep 17 00:00:00 2001
From: Hentua <wangdoubleone@gmail.com>
Date: Thu, 15 Jun 2023 01:46:42 +0800
Subject: [PATCH] fix
---
src/main/java/cc/mrbird/febs/monitor/entity/SystemLog.java | 22 ++++++++++------------
1 files changed, 10 insertions(+), 12 deletions(-)
diff --git a/src/main/java/cc/mrbird/febs/monitor/entity/SystemLog.java b/src/main/java/cc/mrbird/febs/monitor/entity/SystemLog.java
index 4584bea..2fc7ba0 100644
--- a/src/main/java/cc/mrbird/febs/monitor/entity/SystemLog.java
+++ b/src/main/java/cc/mrbird/febs/monitor/entity/SystemLog.java
@@ -1,12 +1,11 @@
package cc.mrbird.febs.monitor.entity;
-import cc.mrbird.febs.common.converter.TimeConverter;
+
+import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
-import com.wuwenze.poi.annotation.Excel;
-import com.wuwenze.poi.annotation.ExcelField;
import lombok.Data;
import java.io.Serializable;
@@ -17,7 +16,6 @@
*/
@Data
@TableName("t_log")
-@Excel("系统日志表")
public class SystemLog implements Serializable {
/**
@@ -30,56 +28,56 @@
* 操作用户
*/
@TableField("USERNAME")
- @ExcelField(value = "操作用户")
+ @ExcelProperty(value = "操作用户")
private String username;
/**
* 操作内容
*/
@TableField("OPERATION")
- @ExcelField(value = "操作内容")
+ @ExcelProperty(value = "操作内容")
private String operation;
/**
* 耗时
*/
@TableField("TIME")
- @ExcelField(value = "耗时(毫秒)")
+ @ExcelProperty(value = "耗时(毫秒)")
private Long time;
/**
* 操作方法
*/
@TableField("METHOD")
- @ExcelField(value = "操作方法")
+ @ExcelProperty(value = "操作方法")
private String method;
/**
* 方法参数
*/
@TableField("PARAMS")
- @ExcelField(value = "方法参数")
+ @ExcelProperty(value = "方法参数")
private String params;
/**
* 操作者IP
*/
@TableField("IP")
- @ExcelField(value = "操作者IP")
+ @ExcelProperty(value = "操作者IP")
private String ip;
/**
* 创建时间
*/
@TableField("CREATE_TIME")
- @ExcelField(value = "操作时间", writeConverter = TimeConverter.class)
+ @ExcelProperty(value = "操作时间")
private Date createTime;
/**
* 操作地点
*/
@TableField("LOCATION")
- @ExcelField(value = "操作地点")
+ @ExcelProperty(value = "操作地点")
private String location;
private transient String createTimeFrom;
--
Gitblit v1.9.1