数据训练实时日志展示

This commit is contained in:
2025-11-03 14:45:00 +08:00
parent 62a381fd00
commit 37682d2e01
45 changed files with 847 additions and 47 deletions

View File

@@ -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() {

View File

@@ -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();