修改日志相关字段名称,将描述字段从'describe'更改为'detail',以提高代码一致性和可读性。
This commit is contained in:
@ -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());
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ public class OperationLog implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 日志描述
|
* 日志描述
|
||||||
*/
|
*/
|
||||||
private String describe;
|
private String detail;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 方法运行时间
|
* 方法运行时间
|
||||||
|
@ -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()));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user