commit:流程支持自动化任务

This commit is contained in:
Jerry
2024-10-11 21:43:29 +08:00
parent 694e4af055
commit f95c7b8695
51 changed files with 3094 additions and 42 deletions

View File

@@ -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。
*/

View File

@@ -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);
}
/**
* 私有构造函数,明确标识该常量类的作用。
*/