✨ Introducing new features.#1908 日志功能新增时间过滤条件 区分租户隔离
✨ Introducing new features.#1908 日志功能新增时间过滤条件 区分租户隔离
This commit is contained in:
1 parent
cf1d4c8f06
commit
7dbe446bef
14 files changed
+159
-32
No files matched your search
+12
-1
@@ -13,7 +13,8 @@ public class TenantKeyStrResolver implements KeyStrResolver {
|
||||
|
||||
/**
|
||||
* 传入字符串增加 租户编号:in
|
||||
* @param in 输入字符串
|
||||
*
|
||||
* @param in 输入字符串
|
||||
* @param split 分割符
|
||||
* @return
|
||||
*/
|
||||
@@ -22,4 +23,14 @@ public class TenantKeyStrResolver implements KeyStrResolver {
|
||||
return TenantContextHolder.getTenantId() + split + in;
|
||||
}
|
||||
|
||||
/**
|
||||
* 返回当前租户ID
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public String key() {
|
||||
return String.valueOf(TenantContextHolder.getTenantId());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user