diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/mapper/BaseOperationLogMapper.xml b/backend/framework/sdk/src/main/java/io/metersphere/sdk/mapper/BaseOperationLogMapper.xml
index 7605af25ec..4d9a144cba 100644
--- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/mapper/BaseOperationLogMapper.xml
+++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/mapper/BaseOperationLogMapper.xml
@@ -8,6 +8,7 @@
t.organization_id,
t.create_time,
t.create_user,
+ t.source_id,
t.module,
t.type,
t.content
@@ -42,10 +43,12 @@
AND t.type = #{request.type}
- AND t.module = #{request.module}
+
+ AND t.module like #{module}
- AND t.content like CONCAT('%', #{request.content},'%')
+
+ AND t.content like #{content}
ORDER BY t.create_time DESC
diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/controller/OperationLogController.java b/backend/services/system-setting/src/main/java/io/metersphere/system/controller/OperationLogController.java
index 74d2c46669..48df5c0cfd 100644
--- a/backend/services/system-setting/src/main/java/io/metersphere/system/controller/OperationLogController.java
+++ b/backend/services/system-setting/src/main/java/io/metersphere/system/controller/OperationLogController.java
@@ -51,7 +51,7 @@ public class OperationLogController {
//获取全部组织
List organizationList = organizationService.getOrganizationOptions();
//获取全部项目
- List projectList = systemProjectService.getProjectOptions();
+ List projectList = systemProjectService.getProjectOptions(null);
OrganizationProjectOptionsResponse optionsResponse = new OrganizationProjectOptionsResponse();
optionsResponse.setOrganizationList(organizationList);
diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/controller/OrganizationLogController.java b/backend/services/system-setting/src/main/java/io/metersphere/system/controller/OrganizationLogController.java
new file mode 100644
index 0000000000..1927761532
--- /dev/null
+++ b/backend/services/system-setting/src/main/java/io/metersphere/system/controller/OrganizationLogController.java
@@ -0,0 +1,76 @@
+package io.metersphere.system.controller;
+
+
+import com.github.pagehelper.Page;
+import com.github.pagehelper.PageHelper;
+import io.metersphere.sdk.constants.PermissionConstants;
+import io.metersphere.sdk.log.service.OperationLogService;
+import io.metersphere.sdk.log.vo.OperationLogRequest;
+import io.metersphere.sdk.log.vo.OperationLogResponse;
+import io.metersphere.sdk.util.PageUtils;
+import io.metersphere.sdk.util.Pager;
+import io.metersphere.system.domain.User;
+import io.metersphere.system.dto.OrganizationProjectOptionsDTO;
+import io.metersphere.system.dto.response.OrganizationProjectOptionsResponse;
+import io.metersphere.system.service.SystemProjectService;
+import io.metersphere.system.service.UserService;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import jakarta.annotation.Resource;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+
+/**
+ * @author wx
+ */
+@Tag(name = "组织日志")
+@RestController
+@RequestMapping("/organization/log")
+public class OrganizationLogController {
+
+ @Resource
+ private SystemProjectService systemProjectService;
+
+ @Resource
+ private OperationLogService operationLogService;
+
+ @Resource
+ private UserService userService;
+
+
+ @GetMapping("/get/options/{organizationId}")
+ @Operation(summary = "组织日志-获取项目级联下拉框选项")
+ @RequiresPermissions(PermissionConstants.ORGANIZATION_OPERATING_LOG_READ)
+ public OrganizationProjectOptionsResponse getOrganizationOptions(@PathVariable(value = "organizationId") String organizationId) {
+ //获取全部项目
+ List projectList = systemProjectService.getProjectOptions(organizationId);
+ OrganizationProjectOptionsResponse optionsResponse = new OrganizationProjectOptionsResponse();
+ optionsResponse.setProjectList(projectList);
+
+ return optionsResponse;
+ }
+
+
+ @GetMapping("/user/list/{organizationId}")
+ @Operation(summary = "组织日志-获取用户列表")
+ @RequiresPermissions(PermissionConstants.ORGANIZATION_OPERATING_LOG_READ)
+ public List getLogUserList(@PathVariable(value = "organizationId") String organizationId) {
+ return userService.getUserListByOrgId(organizationId);
+ }
+
+
+ @PostMapping("/list")
+ @Operation(summary = "组织菜单下操作日志列表查询")
+ @RequiresPermissions(PermissionConstants.ORGANIZATION_OPERATING_LOG_READ)
+ public Pager> organizationLogList(@Validated @RequestBody OperationLogRequest request) {
+ Page