From 5174d76bc10346d9885f05dc449ea5bd71916176 Mon Sep 17 00:00:00 2001 From: xxzuo <1293378490@qq.com> Date: Fri, 24 May 2024 01:12:00 +0800 Subject: [PATCH 1/2] [Fix][Server] fix Execution record interface data duplication --- .../src/main/resources/mapper/JobExecutionMapper.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/datavines-server/src/main/resources/mapper/JobExecutionMapper.xml b/datavines-server/src/main/resources/mapper/JobExecutionMapper.xml index 157bec1be..c14fbc03d 100644 --- a/datavines-server/src/main/resources/mapper/JobExecutionMapper.xml +++ b/datavines-server/src/main/resources/mapper/JobExecutionMapper.xml @@ -109,7 +109,11 @@ - select p.id, p.name, p.schema_name, p.table_name, p.column_name, p.metric_type, p.job_type, p.status, - r.state as checkState, p.start_time, p.end_time, p.update_time + select p.id, p.name, p.schema_name, p.table_name, p.column_name, p.metric_type, p.job_type, p.status, p.start_time, p.end_time, p.update_time from () p - left join (select job_execution_id, max(state) as state - from dv_job_execution_result group by job_execution_id) r on p.id = r.job_execution_id LOWER(p.`name`) LIKE CONCAT(CONCAT('%', LOWER(#{searchVal})), '%') diff --git a/datavines-server/src/main/resources/mapper/JobExecutionResultMapper.xml b/datavines-server/src/main/resources/mapper/JobExecutionResultMapper.xml new file mode 100644 index 000000000..6088cbab5 --- /dev/null +++ b/datavines-server/src/main/resources/mapper/JobExecutionResultMapper.xml @@ -0,0 +1,34 @@ + + + + + + + +