数据训练实时日志展示
This commit is contained in:
@@ -9,14 +9,16 @@ public class CommonHeader {
|
||||
private String sessionId;
|
||||
private Long userId;
|
||||
private Long tenantId;
|
||||
private String userName;
|
||||
|
||||
private UserContext userContext;
|
||||
|
||||
public CommonHeader(String jobNumber, String company, UserContext userContext,Long userId) {
|
||||
public CommonHeader(String jobNumber, String company, UserContext userContext,Long userId,String userName) {
|
||||
this.jobNumber = jobNumber;
|
||||
this.company = company;
|
||||
this.userContext = userContext;
|
||||
this.userId = userId;
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public CommonHeader() {
|
||||
|
||||
@@ -63,6 +63,15 @@ public class ThreadLocalContext {
|
||||
current.get().setTenantId(tenantId);
|
||||
}
|
||||
|
||||
// userName
|
||||
public static String getUserName() {
|
||||
return current.get().getUserName();
|
||||
}
|
||||
|
||||
public static void setUserName(String userName) {
|
||||
current.get().setUserName(userName);
|
||||
}
|
||||
|
||||
|
||||
public static CommonHeader getCommonHeader() {
|
||||
return current.get();
|
||||
|
||||
Reference in New Issue
Block a user