mirror of
https://gitee.com/orangeform/orange-admin.git
synced 2026-01-17 10:36:31 +08:00
commit:流程支持自动化任务
This commit is contained in:
@@ -78,6 +78,10 @@ public final class ApplicationConstant {
|
||||
* 请求头跟踪id名。
|
||||
*/
|
||||
public static final String HTTP_HEADER_TRACE_ID = "traceId";
|
||||
/**
|
||||
* 请求头业务流水号id名。
|
||||
*/
|
||||
public static final String HTTP_HEADER_TRANS_ID = "transId";
|
||||
/**
|
||||
* 请求头菜单Id。
|
||||
*/
|
||||
|
||||
@@ -433,7 +433,20 @@ public class MyCommonUtil {
|
||||
builder.append("'");
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取当前请求的traceId。
|
||||
*
|
||||
* @return 当前请求的traceId。
|
||||
*/
|
||||
public static String getTraceId() {
|
||||
HttpServletRequest request = ContextUtil.getHttpRequest();
|
||||
if (request == null) {
|
||||
return null;
|
||||
}
|
||||
return request.getHeader(ApplicationConstant.HTTP_HEADER_TRACE_ID);
|
||||
}
|
||||
|
||||
/**
|
||||
* 私有构造函数,明确标识该常量类的作用。
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user