From b672d835f9314c10a8fd949e309816ee766df22b Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 27 七月 2023 10:49:50 +0800 Subject: [PATCH] 修改发布清单的分页查询接口,添加数据目录、数据类别参数 --- src/main/resources/mapper/data/PublishMapper.xml | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/data/PublishMapper.xml b/src/main/resources/mapper/data/PublishMapper.xml index 17ce303..2b0d68a 100644 --- a/src/main/resources/mapper/data/PublishMapper.xml +++ b/src/main/resources/mapper/data/PublishMapper.xml @@ -48,8 +48,15 @@ <select id="selectCount" resultType="java.lang.Integer"> select count(*) from lf.sys_publish <where> + 1 = 1 <if test="name != null"> - upper(name) like #{name} + and upper(name) like #{name} + </if> + <if test="dircode != null"> + and dirid like #{dircode} + </if> + <if test="type != null"> + and ${type} </if> </where> </select> @@ -58,8 +65,15 @@ select ST_AsText(geom) "geom", a.*, fn_get_fullname(a.depid, 1) depName, fn_get_fullname(a.dirid, 2) dirName, fn_uname(create_user) createName, fn_uname(update_user) updateName from lf.sys_publish a <where> + 1 = 1 <if test="name != null"> - upper(name) like #{name} + and upper(name) like #{name} + </if> + <if test="dircode != null"> + and dirid like #{dircode} + </if> + <if test="type != null"> + and ${type} </if> </where> order by id desc -- Gitblit v1.9.3