diff --git a/backend/framework/sdk/src/main/resources/i18n/commons.properties b/backend/framework/sdk/src/main/resources/i18n/commons.properties
index 521cce2210..8a00b031d6 100644
--- a/backend/framework/sdk/src/main/resources/i18n/commons.properties
+++ b/backend/framework/sdk/src/main/resources/i18n/commons.properties
@@ -427,6 +427,8 @@ http_result_not_found=%s不存在
enum_value_valid_message=枚举值不合法,必须为
+#system organization
+organization_member_log=组织成员
#system project
project_admin=项目管理员
project_member=项目成员
diff --git a/backend/framework/sdk/src/main/resources/i18n/commons_en_US.properties b/backend/framework/sdk/src/main/resources/i18n/commons_en_US.properties
index 7d01fe8e10..f3d27470dc 100644
--- a/backend/framework/sdk/src/main/resources/i18n/commons_en_US.properties
+++ b/backend/framework/sdk/src/main/resources/i18n/commons_en_US.properties
@@ -430,6 +430,8 @@ http_result_forbidden=permission authentication failure
enum_value_valid_message=The enumeration value is invalid, must be
+#system organization
+organization_member_log=organization member
#system project
project_admin=Project admin
project_member=Project member
diff --git a/backend/framework/sdk/src/main/resources/i18n/commons_zh_CN.properties b/backend/framework/sdk/src/main/resources/i18n/commons_zh_CN.properties
index b76a84475c..22f27bfe63 100644
--- a/backend/framework/sdk/src/main/resources/i18n/commons_zh_CN.properties
+++ b/backend/framework/sdk/src/main/resources/i18n/commons_zh_CN.properties
@@ -428,6 +428,8 @@ http_result_not_found=%s不存在
enum_value_valid_message=枚举值不合法,必须为
+#system organization
+organization_member_log=组织成员
#system project
project_admin=项目管理员
project_member=项目成员
diff --git a/backend/framework/sdk/src/main/resources/i18n/commons_zh_TW.properties b/backend/framework/sdk/src/main/resources/i18n/commons_zh_TW.properties
index 42e656974d..3a6aa67b3d 100644
--- a/backend/framework/sdk/src/main/resources/i18n/commons_zh_TW.properties
+++ b/backend/framework/sdk/src/main/resources/i18n/commons_zh_TW.properties
@@ -426,6 +426,8 @@ http_result_forbidden=權限認證失敗
enum_value_valid_message=枚舉值不合法,必須為
+#system organization
+organization_member_log=組織成員
#system project
project_admin=項目管理員
project_member=項目成員
diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/controller/OrganizationController.java b/backend/services/system-setting/src/main/java/io/metersphere/system/controller/OrganizationController.java
index 9a3690ad07..fe893f1509 100644
--- a/backend/services/system-setting/src/main/java/io/metersphere/system/controller/OrganizationController.java
+++ b/backend/services/system-setting/src/main/java/io/metersphere/system/controller/OrganizationController.java
@@ -3,6 +3,8 @@ package io.metersphere.system.controller;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import io.metersphere.sdk.constants.PermissionConstants;
+import io.metersphere.system.dto.OptionDisabledDTO;
+import io.metersphere.system.dto.OrgUserExtend;
import io.metersphere.system.dto.request.OrgMemberExtendProjectRequest;
import io.metersphere.system.dto.request.OrganizationMemberExtendRequest;
import io.metersphere.system.dto.request.OrganizationMemberUpdateRequest;
@@ -10,12 +12,10 @@ import io.metersphere.system.dto.request.OrganizationRequest;
import io.metersphere.system.dto.sdk.OptionDTO;
import io.metersphere.system.log.annotation.Log;
import io.metersphere.system.log.constants.OperationLogType;
+import io.metersphere.system.service.OrganizationService;
import io.metersphere.system.utils.PageUtils;
import io.metersphere.system.utils.Pager;
import io.metersphere.system.utils.SessionUtils;
-import io.metersphere.system.dto.OptionDisabledDTO;
-import io.metersphere.system.dto.OrgUserExtend;
-import io.metersphere.system.service.OrganizationService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
@@ -24,8 +24,6 @@ import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.apache.shiro.authz.annotation.Logical;
import org.apache.shiro.authz.annotation.RequiresPermissions;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
@@ -87,7 +85,7 @@ public class OrganizationController {
@RequiresPermissions(PermissionConstants.ORGANIZATION_MEMBER_DELETE)
@Log(type = OperationLogType.DELETE, expression = "#msClass.batchDelLog(#organizationId, #userId)", msClass = OrganizationService.class)
public void removeMember(@PathVariable String organizationId, @PathVariable String userId) {
- organizationService.removeMember(organizationId, userId);
+ organizationService.removeMember(organizationId, userId, SessionUtils.getUserId());
}
@GetMapping("/project/list/{organizationId}")
diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/controller/SystemOrganizationController.java b/backend/services/system-setting/src/main/java/io/metersphere/system/controller/SystemOrganizationController.java
index 3fa50458e1..20f4fec87d 100644
--- a/backend/services/system-setting/src/main/java/io/metersphere/system/controller/SystemOrganizationController.java
+++ b/backend/services/system-setting/src/main/java/io/metersphere/system/controller/SystemOrganizationController.java
@@ -3,20 +3,20 @@ package io.metersphere.system.controller;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import io.metersphere.sdk.constants.PermissionConstants;
-import io.metersphere.system.dto.sdk.OptionDTO;
-import io.metersphere.system.dto.user.UserExtendDTO;
import io.metersphere.sdk.util.BeanUtils;
-import io.metersphere.system.utils.PageUtils;
-import io.metersphere.system.utils.Pager;
import io.metersphere.system.dto.OrganizationDTO;
import io.metersphere.system.dto.ProjectDTO;
import io.metersphere.system.dto.request.OrganizationMemberRequest;
import io.metersphere.system.dto.request.OrganizationProjectRequest;
import io.metersphere.system.dto.request.OrganizationRequest;
import io.metersphere.system.dto.request.ProjectRequest;
+import io.metersphere.system.dto.sdk.OptionDTO;
+import io.metersphere.system.dto.user.UserExtendDTO;
import io.metersphere.system.service.OrganizationService;
import io.metersphere.system.service.SystemProjectService;
import io.metersphere.system.service.UserService;
+import io.metersphere.system.utils.PageUtils;
+import io.metersphere.system.utils.Pager;
import io.metersphere.system.utils.SessionUtils;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
@@ -86,7 +86,7 @@ public class SystemOrganizationController {
})
@RequiresPermissions(PermissionConstants.SYSTEM_ORGANIZATION_PROJECT_MEMBER_DELETE)
public void removeMember(@PathVariable String organizationId, @PathVariable String userId) {
- organizationService.removeMember(organizationId, userId);
+ organizationService.removeMember(organizationId, userId, SessionUtils.getUserId());
}
@GetMapping("/default")
diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/controller/SystemProjectController.java b/backend/services/system-setting/src/main/java/io/metersphere/system/controller/SystemProjectController.java
index 5fd0726238..094edd7d49 100644
--- a/backend/services/system-setting/src/main/java/io/metersphere/system/controller/SystemProjectController.java
+++ b/backend/services/system-setting/src/main/java/io/metersphere/system/controller/SystemProjectController.java
@@ -146,7 +146,6 @@ public class SystemProjectController {
@Parameter(name = "userId", description = "用户id", schema = @Schema(requiredMode = Schema.RequiredMode.REQUIRED))
@Parameter(name = "projectId", description = "项目id", schema = @Schema(requiredMode = Schema.RequiredMode.REQUIRED))
@RequiresPermissions(PermissionConstants.SYSTEM_ORGANIZATION_PROJECT_MEMBER_DELETE)
- @Log(type = OperationLogType.DELETE, expression = "#msClass.deleteLog(#projectId)", msClass = SystemProjectLogService.class)
@CheckOwner(resourceId = "#projectId", resourceType = "project")
public int removeProjectMember(@PathVariable String projectId, @PathVariable String userId) {
return systemProjectService.removeProjectMember(projectId, userId, SessionUtils.getUserId());
diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtOrganizationMapper.xml b/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtOrganizationMapper.xml
index e9953039be..51cc9f6e4a 100644
--- a/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtOrganizationMapper.xml
+++ b/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtOrganizationMapper.xml
@@ -78,9 +78,9 @@