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

javax.validation.ConstraintViolationException: createOperateLog.arg0.name: 操作名
This commit is contained in:
yuanhang 2023-02-05 15:41:53 +08:00
parent 5addbb23d2
commit c3836ca98b

View File

@ -196,7 +196,7 @@ public class OperateLogAspect {
operateLogObj.setName(operateLog.name());
}
if (StrUtil.isEmpty(operateLogObj.getName()) && operation != null) {
operateLogObj.setName(operation.description());
operateLogObj.setName(operation.summary());
}
// type 属性
if (operateLog != null && ArrayUtil.isNotEmpty(operateLog.type())) {