feature(info-query): 增加sql日志记录
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
package com.lanyuanxiaoyao.service.configuration.entity.info;
|
||||
|
||||
import java.time.Instant;
|
||||
|
||||
/**
|
||||
* SQL
|
||||
*
|
||||
* @author lanyuanxiaoyao
|
||||
* @date 2023-07-11
|
||||
*/
|
||||
public class SQLLine {
|
||||
private String sql;
|
||||
private Long createTime;
|
||||
|
||||
public SQLLine() {
|
||||
}
|
||||
|
||||
public SQLLine(String sql) {
|
||||
this.sql = sql;
|
||||
this.createTime = Instant.now().toEpochMilli();
|
||||
}
|
||||
|
||||
public String getSql() {
|
||||
return sql;
|
||||
}
|
||||
|
||||
public void setSql(String sql) {
|
||||
this.sql = sql;
|
||||
}
|
||||
|
||||
public Long getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Long createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SQLLine{" +
|
||||
"sql='" + sql + '\'' +
|
||||
", createTime=" + createTime +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user