fix: log add tenant name
This commit is contained in:
@@ -34,4 +34,6 @@ type SysLogOperate struct {
|
||||
OperTime int64 `json:"operTime"`
|
||||
// 消耗时间(毫秒)
|
||||
CostTime int64 `json:"costTime"`
|
||||
// Tenant name refer to tenant_name of sys_tenant
|
||||
TenantName string `json:"tenantName"`
|
||||
}
|
||||
|
||||
@@ -253,6 +253,9 @@ func (r *SysLogOperateImpl) InsertSysLogOperate(SysLogOperate model.SysLogOperat
|
||||
if SysLogOperate.CostTime > 0 {
|
||||
params["cost_time"] = SysLogOperate.CostTime
|
||||
}
|
||||
if SysLogOperate.TenantName != "" {
|
||||
params["tenant_name"] = SysLogOperate.TenantName
|
||||
}
|
||||
|
||||
// 构建执行语句
|
||||
keys, placeholder, values := repo.KeyPlaceholderValueByInsert(params)
|
||||
|
||||
Reference in New Issue
Block a user