fix(系统设置): 更改获取当前操作人的方式
This commit is contained in:
parent
88250f7797
commit
c65beb3dff
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue