fix(系统设置): 更改获取当前操作人的方式

This commit is contained in:
song-tianyang 2023-06-16 10:15:01 +08:00 committed by 刘瑞斌
parent 88250f7797
commit c65beb3dff
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ public class UserController {
@PostMapping("/add") @PostMapping("/add")
@RequiresPermissions(PermissionConstants.SYSTEM_USER_READ_ADD) @RequiresPermissions(PermissionConstants.SYSTEM_USER_READ_ADD)
public UserBatchCreateDTO addUser(@Validated({Created.class}) @RequestBody UserBatchCreateDTO userCreateDTO) { public UserBatchCreateDTO addUser(@Validated({Created.class}) @RequestBody UserBatchCreateDTO userCreateDTO) {
userCreateDTO.setCreateUserToList(SessionUtils.getSessionId()); userCreateDTO.setCreateUserToList(SessionUtils.getUserId());
return userService.addBatch(userCreateDTO); return userService.addBatch(userCreateDTO);
} }
@ -60,7 +60,7 @@ public class UserController {
@RequestLog(type = OperationLogType.UPDATE, module = OperationLogModule.SYSTEM_USER, @RequestLog(type = OperationLogType.UPDATE, module = OperationLogModule.SYSTEM_USER,
sourceId = "#request.id", details = "#request.name") sourceId = "#request.id", details = "#request.name")
public UserEditRequest updateUser(@Validated({Updated.class}) @RequestBody UserEditRequest request) { public UserEditRequest updateUser(@Validated({Updated.class}) @RequestBody UserEditRequest request) {
request.setUpdateUser(SessionUtils.getSessionId()); request.setUpdateUser(SessionUtils.getUserId());
return userService.updateUser(request); return userService.updateUser(request);
} }