(improvment)(semantic) dimension and metric list support alias and createdBy query (#199)

Co-authored-by: jolunoluo
This commit is contained in:
LXW
2023-10-12 17:12:12 +08:00
committed by GitHub
parent e7b8c68dba
commit 88b8130d37
2 changed files with 8 additions and 0 deletions

View File

@@ -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},'%') )
</if>
<if test="id != null">
@@ -136,6 +137,9 @@
#{model}
</foreach>
</if>
<if test="createdBy != null">
and created_by = #{createdBy}
</if>
</select>

View File

@@ -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},'%') )
</if>
<if test="id != null">
@@ -133,6 +134,9 @@
#{model}
</foreach>
</if>
<if test="createdBy != null">
and created_by = #{createdBy}
</if>
</select>
</mapper>