This is an automated email from the ASF dual-hosted git repository.

dockerzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new 896bb54fe8 [INLONG-9752][Manager] Operation logs support querying 
based on successful or unsuccessful calls (#9754)
896bb54fe8 is described below

commit 896bb54fe861b9f4b324da6cabef155667298cd9
Author: fuweng11 <[email protected]>
AuthorDate: Thu Feb 29 18:39:53 2024 +0800

    [INLONG-9752][Manager] Operation logs support querying based on successful 
or unsuccessful calls (#9754)
---
 .../src/main/resources/mappers/OperationLogEntityMapper.xml         | 3 +++
 .../inlong/manager/pojo/operationLog/OperationLogRequest.java       | 3 +++
 .../org/apache/inlong/manager/web/controller/AuditController.java   | 6 ++++++
 3 files changed, 12 insertions(+)

diff --git 
a/inlong-manager/manager-dao/src/main/resources/mappers/OperationLogEntityMapper.xml
 
b/inlong-manager/manager-dao/src/main/resources/mappers/OperationLogEntityMapper.xml
index b601fb91a3..12d8506600 100644
--- 
a/inlong-manager/manager-dao/src/main/resources/mappers/OperationLogEntityMapper.xml
+++ 
b/inlong-manager/manager-dao/src/main/resources/mappers/OperationLogEntityMapper.xml
@@ -75,6 +75,9 @@
                 or inlong_stream_id like CONCAT('%', #{request.keyword}, '%')
                 )
             </if>
+            <if test="request.status != null">
+                and status = #{request.status,jdbcType=TINYINT}
+            </if>
             <if test="request.startDate != null and request.startDate != '' 
and request.endDate != null and request.endDate != ''">
                 and request_time &gt;= #{request.startDate, jdbcType=VARCHAR}
                 and request_time &lt; #{request.endDate, jdbcType=VARCHAR}
diff --git 
a/inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/operationLog/OperationLogRequest.java
 
b/inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/operationLog/OperationLogRequest.java
index 13d672c520..4c5b305913 100644
--- 
a/inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/operationLog/OperationLogRequest.java
+++ 
b/inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/operationLog/OperationLogRequest.java
@@ -47,6 +47,9 @@ public class OperationLogRequest extends PageRequest {
     @ApiModelProperty(value = "keyword")
     private String keyword;
 
+    @ApiModelProperty(value = "status")
+    private Boolean status;
+
     @ApiModelProperty(value = "query start date, format by 'yyyy-MM-dd'", 
required = false, example = "2022-01-01")
     private String startDate;
 
diff --git 
a/inlong-manager/manager-web/src/main/java/org/apache/inlong/manager/web/controller/AuditController.java
 
b/inlong-manager/manager-web/src/main/java/org/apache/inlong/manager/web/controller/AuditController.java
index 9c8beb0a4b..8bc0c103d8 100644
--- 
a/inlong-manager/manager-web/src/main/java/org/apache/inlong/manager/web/controller/AuditController.java
+++ 
b/inlong-manager/manager-web/src/main/java/org/apache/inlong/manager/web/controller/AuditController.java
@@ -58,6 +58,12 @@ public class AuditController {
         return Response.success(auditService.listByCondition(request));
     }
 
+    @PostMapping(value = "/audit/listAll")
+    @ApiOperation(value = "Query audit list all according to conditions")
+    public Response<List<AuditVO>> listAll(@Valid @RequestBody AuditRequest 
request) throws Exception {
+        return Response.success(auditService.listAll(request));
+    }
+
     @ApiOperation(value = "Refresh audit base item cache")
     @PostMapping("/audit/refreshCache")
     public Response<Boolean> refreshCache() {

Reply via email to