From a4e74d2684146cb5e3790fddc6d077e52e71205e Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期三, 28 六月 2023 18:31:47 +0800 Subject: [PATCH] 发布管理的查询元数据信息时添加DOM和DEM的目录过滤功能 --- src/main/resources/mapper/data/PublishMapper.xml | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/show/PublishMapper.xml b/src/main/resources/mapper/data/PublishMapper.xml similarity index 90% rename from src/main/resources/mapper/show/PublishMapper.xml rename to src/main/resources/mapper/data/PublishMapper.xml index 70e49d6..17ce303 100644 --- a/src/main/resources/mapper/show/PublishMapper.xml +++ b/src/main/resources/mapper/data/PublishMapper.xml @@ -80,6 +80,25 @@ select * from lf.sys_publish where id in (${ids}) order by id desc; </select> + <select id="selectCodesForDir" resultType="java.lang.String"> + select code + from lf.sys_dir + <where> + <choose> + <when test="isDom > 0"> + name in ('DOM', '鏁板瓧姝e皠褰卞儚鍥�') + </when> + <otherwise> + name in ('DEM', '鏁板瓧楂樼▼妯″瀷') + </otherwise> + </choose> + <if test="dircode != null"> + and code like #{dircode} + </if> + </where> + order by code; + </select> + <insert id="insert" parameterType="com.lf.server.entity.data.PublishEntity"> insert into lf.sys_publish (regid,name,url,path,type,status,dirid,depid,min,max,json,create_user,create_time,bak) -- Gitblit v1.9.3