操作日志新增消耗时间属性

This commit is contained in:
RuoYi
2023-02-16 11:57:40 +08:00
parent e26b65ca31
commit 00f2db99d8
7 changed files with 47 additions and 14 deletions

View File

@@ -83,6 +83,10 @@ public class SysOperLog extends BaseEntity
@Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
private Date operTime;
/** 消耗时间 */
@Excel(name = "消耗时间", suffix = "毫秒")
private Long costTime;
public Long getOperId()
{
return operId;
@@ -253,6 +257,16 @@ public class SysOperLog extends BaseEntity
this.operTime = operTime;
}
public Long getCostTime()
{
return costTime;
}
public void setCostTime(Long costTime)
{
this.costTime = costTime;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
@@ -272,6 +286,7 @@ public class SysOperLog extends BaseEntity
.append("status", getStatus())
.append("errorMsg", getErrorMsg())
.append("operTime", getOperTime())
.append("costTime", getCostTime())
.toString();
}
}