From 1a94cba1e248953613aea99496fae4222cafaaae Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 22 十二月 2022 13:34:01 +0800 Subject: [PATCH] 1 --- src/main/resources/mapper/data/MetaMapper.xml | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/data/MetaMapper.xml b/src/main/resources/mapper/data/MetaMapper.xml index f3a0d8f..8b70eaf 100644 --- a/src/main/resources/mapper/data/MetaMapper.xml +++ b/src/main/resources/mapper/data/MetaMapper.xml @@ -5,8 +5,11 @@ select count(*) from lf.sys_meta <where> 1 = 1 + <if test="depid != null"> + and depid = ANY(fn_rec_array(#{depid}, 'dep')) + </if> <if test="dirid != null"> - and dirid = #{dirid} + and dirid = ANY(fn_rec_array(#{dirid}, 'dir')) </if> <if test="name != null"> and name like #{name} @@ -19,8 +22,11 @@ from lf.sys_meta a <where> 1 = 1 + <if test="depid != null"> + and depid = ANY(fn_rec_array(#{depid},'dep')) + </if> <if test="dirid != null"> - and dirid = #{dirid} + and dirid = ANY(fn_rec_array(#{dirid},'dir')) </if> <if test="name != null"> and name like #{name} -- Gitblit v1.9.3