职位->岗位

This commit is contained in:
Chuck1sn
2025-06-04 16:11:03 +08:00
parent d5801b3b50
commit 690228cb42

View File

@@ -120,13 +120,13 @@ public class UserRolePermissionOperatorTool {
new PositionBindDto(user.getId(), positions.stream().map(Position::getId).toList()));
}
@Tool(value = "给用户解绑/撤销")
@Tool(value = "给用户解绑/撤销")
void unbindPositionToUser(
@P(value = "用户名") String username, @P(value = "位名称列表") List<String> positionNames) {
@P(value = "用户名") String username, @P(value = "位名称列表") List<String> positionNames) {
User user = checkUserExistBy(username);
List<Position> positions = positionRepository.fetchByName(positionNames.toArray(String[]::new));
if (positions.isEmpty()) {
throw new BusinessException("指定位不存在");
throw new BusinessException("指定位不存在");
}
identityAccessService.unBindPositionBy(
new PositionBindDto(user.getId(), positions.stream().map(Position::getId).toList()));