fix(X-Pack): 同步管理,修复任务日志没有操作日志的问题

This commit is contained in:
jianneng-fit2cloud
2025-12-12 17:57:01 +08:00
parent 7b15665d75
commit f28a2f98fb
4 changed files with 12 additions and 3 deletions

View File

@@ -11,6 +11,8 @@ import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import io.swagger.v3.oas.annotations.Hidden;
import java.util.Map;
import static io.dataease.constant.AuthResourceEnum.TASK;
/**
@@ -44,4 +46,10 @@ public interface TaskLogApi {
@PostMapping("terminationTask/{logId}")
void terminationTask(@PathVariable("logId") String logId);
@GetMapping("/getLogResourceId")
Long getLogResourceId(@PathVariable("params") Map<String, String> params);
@GetMapping("/query2Root")
String query2Root(@PathVariable("params") Map<String, String> params);
}

View File

@@ -31,7 +31,7 @@ public enum LogOT {
SYNC_TASK_DISENABLE(24, "OPERATE_TYPE_SYNC_TASK_DISENABLE"),
SYNC_TASK_RUN_IMMEDIATELY(25, "OPERATE_TYPE_SYNC_TASK_RUN_IMMEDIATELY"),
SYNC_TASK_RUN_TERMINATION(26, "OPERATE_TYPE_SYNC_TASK_RUN_TERMINATION"),
SYNC_DATASOURCE_SYNC(27, "OPERATE_TYPE_SYNC_DATASOURCE_SYNC");
CLEAR(27, "CLEAR");
private Integer value;
private String name;

View File

@@ -22,7 +22,8 @@ public enum LogST {
DATA(15, "SOURCE_TYPE_DATA"),
REPORT_TASK(20, "SOURCE_TYPE_REPORT_TASK"),
SYNC_DATASOURCE(21, "SOURCE_TYPE_SYNC_DATASOURCE"),
SYNC_TASK(22, "SOURCE_TYPE_SYNC_TASK");
SYNC_TASK(22, "SOURCE_TYPE_SYNC_TASK"),
SYNC_TASK_LOG(23, "SOURCE_TYPE_SYNC_TASK_LOG");
private Integer value;
private String name;