From 88b8130d377184f074aaac1abcc89bc2599e2c7b Mon Sep 17 00:00:00 2001
From: LXW <1264174498@qq.com>
Date: Thu, 12 Oct 2023 17:12:12 +0800
Subject: [PATCH] (improvment)(semantic) dimension and metric list support
alias and createdBy query (#199)
Co-authored-by: jolunoluo
---
.../main/resources/mapper/custom/DimensionDOCustomMapper.xml | 4 ++++
.../src/main/resources/mapper/custom/MetricDOCustomMapper.xml | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/semantic/model/src/main/resources/mapper/custom/DimensionDOCustomMapper.xml b/semantic/model/src/main/resources/mapper/custom/DimensionDOCustomMapper.xml
index 05cceb344..b2d4358e5 100644
--- a/semantic/model/src/main/resources/mapper/custom/DimensionDOCustomMapper.xml
+++ b/semantic/model/src/main/resources/mapper/custom/DimensionDOCustomMapper.xml
@@ -115,6 +115,7 @@
and ( id like CONCAT('%',#{key , jdbcType=VARCHAR},'%') or
name like CONCAT('%',#{key , jdbcType=VARCHAR},'%') or
biz_name like CONCAT('%',#{key , jdbcType=VARCHAR},'%') or
+ alias like CONCAT('%',#{key , jdbcType=VARCHAR},'%') or
description like CONCAT('%',#{key , jdbcType=VARCHAR},'%') )
@@ -136,6 +137,9 @@
#{model}
+
+ and created_by = #{createdBy}
+
diff --git a/semantic/model/src/main/resources/mapper/custom/MetricDOCustomMapper.xml b/semantic/model/src/main/resources/mapper/custom/MetricDOCustomMapper.xml
index 8546d856b..19e00624a 100644
--- a/semantic/model/src/main/resources/mapper/custom/MetricDOCustomMapper.xml
+++ b/semantic/model/src/main/resources/mapper/custom/MetricDOCustomMapper.xml
@@ -112,6 +112,7 @@
name like CONCAT('%',#{key , jdbcType=VARCHAR},'%') or
biz_name like CONCAT('%',#{key , jdbcType=VARCHAR},'%') or
description like CONCAT('%',#{key , jdbcType=VARCHAR},'%') or
+ alias like CONCAT('%',#{key , jdbcType=VARCHAR},'%') or
tags like CONCAT('%',#{key , jdbcType=VARCHAR},'%') )
@@ -133,6 +134,9 @@
#{model}
+
+ and created_by = #{createdBy}
+