代码调整
This commit is contained in:
@@ -43,6 +43,11 @@
|
||||
<groupId>com.github.jeffreyning</groupId>
|
||||
<artifactId>mybatisplus-plus</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>easyexcel</artifactId>
|
||||
<version>${easyexcel}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.njcn.system.pojo.po;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.FieldStrategy;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
@@ -23,70 +24,83 @@ public class UserLog {
|
||||
/**
|
||||
* 事件日志Id
|
||||
*/
|
||||
@ExcelProperty(value = "id主键")
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 登录名
|
||||
*/
|
||||
@TableField(insertStrategy = FieldStrategy.IGNORED)
|
||||
@ExcelProperty(value = "登录名")
|
||||
private String loginName;
|
||||
|
||||
/**
|
||||
* 用户已登录:用户名
|
||||
*/
|
||||
@TableField(insertStrategy = FieldStrategy.IGNORED)
|
||||
@ExcelProperty(value = "用户名")
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 操作Ip
|
||||
*/
|
||||
@ExcelProperty(value = "操作ip")
|
||||
private String ip;
|
||||
|
||||
/**
|
||||
* 操作内容
|
||||
*/
|
||||
@ExcelProperty(value = "操作内容")
|
||||
private String operate;
|
||||
|
||||
/**
|
||||
* 操作类型 比如:查询、新增、删除等等
|
||||
*/
|
||||
@ExcelProperty(value = "操作类型")
|
||||
private String operateType;
|
||||
|
||||
/**
|
||||
* 操作结果 0.失败 1.成功
|
||||
*/
|
||||
@ExcelProperty(value = "操作结果")
|
||||
private Integer result;
|
||||
|
||||
/**
|
||||
* 失败原因
|
||||
*/
|
||||
@TableField(insertStrategy = FieldStrategy.IGNORED)
|
||||
@ExcelProperty(value = "失败原因")
|
||||
private String failReason;
|
||||
|
||||
/**
|
||||
* 严重度 0.普通 1.中等 2.严重
|
||||
*/
|
||||
@ExcelProperty(value = "时间等级(严重度)")
|
||||
private Integer level;
|
||||
|
||||
/**
|
||||
* 事件类型 0.业务事件 1.系统事件
|
||||
*/
|
||||
@ExcelProperty(value = "事件类型")
|
||||
private Integer type;
|
||||
|
||||
/**
|
||||
* 模块名
|
||||
*/
|
||||
@ExcelProperty(value = "模块名称")
|
||||
private String serviceName;
|
||||
|
||||
/**
|
||||
* 告警标志 0.未告警 1.已告警
|
||||
*/
|
||||
@ExcelProperty(value = "告警标志")
|
||||
private Integer state;
|
||||
|
||||
/**
|
||||
* 创建用户
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT, insertStrategy = FieldStrategy.IGNORED)
|
||||
@ExcelProperty(value = "创建用户")
|
||||
private String createBy;
|
||||
|
||||
|
||||
@@ -95,12 +109,14 @@ public class UserLog {
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT, insertStrategy = FieldStrategy.IGNORED)
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ExcelProperty(value = "创建时间" )
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 更新用户
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE, insertStrategy = FieldStrategy.IGNORED)
|
||||
@ExcelProperty(value = "更新用户")
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
@@ -108,6 +124,7 @@ public class UserLog {
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE, insertStrategy = FieldStrategy.IGNORED)
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@ExcelProperty(value = "更新时间" )
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user