修改日志相关字段名称,将描述字段从'describe'更改为'detail',以提高代码一致性和可读性。

This commit is contained in:
刘倡
2025-07-18 17:07:27 +08:00
parent 22eee1a7fc
commit e9b5c507be
3 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@ public class LogAspect {
OperationLogDetail annotation = signature.getMethod().getAnnotation(OperationLogDetail.class); OperationLogDetail annotation = signature.getMethod().getAnnotation(OperationLogDetail.class);
if (annotation != null) { if (annotation != null) {
operationLog.setLevel("aop"); operationLog.setLevel("aop");
operationLog.setDescribe(getDetail(((MethodSignature) joinPoint.getSignature()).getParameterNames(), joinPoint.getArgs(), annotation)); operationLog.setDetail(getDetail(((MethodSignature) joinPoint.getSignature()).getParameterNames(), joinPoint.getArgs(), annotation));
operationLog.setOperationType(annotation.operationType().getValue()); operationLog.setOperationType(annotation.operationType().getValue());
operationLog.setBusinessModule(annotation.businessModule().getValue()); operationLog.setBusinessModule(annotation.businessModule().getValue());
} }

View File

@ -88,7 +88,7 @@ public class OperationLog implements Serializable {
/** /**
* 日志描述 * 日志描述
*/ */
private String describe; private String detail;
/** /**
* 方法运行时间 * 方法运行时间

View File

@ -106,7 +106,7 @@ public class OperationLogServiceImpl implements OperationLogService {
.setResult(result) .setResult(result)
.setBusinessModule(businessModule.getValue()) .setBusinessModule(businessModule.getValue())
.setLevel("business") .setLevel("business")
.setDescribe(detail) .setDetail(detail)
.setTransactionId(transactionId) .setTransactionId(transactionId)
.setOperationType(type.getValue())); .setOperationType(type.getValue()));
} }