!1196 修复角色更新时,记录的操作日志将更新前的数据记录为空的问题

* 修复角色更新时,记录的操作日志将更新前的数据记录为空的问题
This commit is contained in:
Dincat 2025-01-23 12:05:09 +00:00 committed by 芋道源码
parent 44bba85a34
commit dcf55c3533
1 changed files with 1 additions and 1 deletions

View File

@ -86,6 +86,7 @@ public class RoleServiceImpl implements RoleService {
roleMapper.updateById(updateObj);
// 3. 记录操作日志上下文
LogRecordContext.putVariable(DiffParseFunction.OLD_OBJECT, BeanUtils.toBean(role, RoleSaveReqVO.class));
LogRecordContext.putVariable("role", role);
}
@ -118,7 +119,6 @@ public class RoleServiceImpl implements RoleService {
permissionService.processRoleDeleted(id);
// 3. 记录操作日志上下文
LogRecordContext.putVariable(DiffParseFunction.OLD_OBJECT, BeanUtils.toBean(role, RoleSaveReqVO.class));
LogRecordContext.putVariable("role", role);
}