Commit c3836ca98bdede04d28bbd0cd885308f293f99ed

Authored by yuanhang
1 parent 5addbb23

解决操作日志记录报错的问题

javax.validation.ConstraintViolationException: createOperateLog.arg0.name: 操作名
yudao-framework/yudao-spring-boot-starter-biz-operatelog/src/main/java/cn/iocoder/yudao/framework/operatelog/core/aop/OperateLogAspect.java
@@ -196,7 +196,7 @@ public class OperateLogAspect { @@ -196,7 +196,7 @@ public class OperateLogAspect {
196 operateLogObj.setName(operateLog.name()); 196 operateLogObj.setName(operateLog.name());
197 } 197 }
198 if (StrUtil.isEmpty(operateLogObj.getName()) && operation != null) { 198 if (StrUtil.isEmpty(operateLogObj.getName()) && operation != null) {
199 - operateLogObj.setName(operation.description()); 199 + operateLogObj.setName(operation.summary());
200 } 200 }
201 // type 属性 201 // type 属性
202 if (operateLog != null && ArrayUtil.isNotEmpty(operateLog.type())) { 202 if (operateLog != null && ArrayUtil.isNotEmpty(operateLog.type())) {