From befdcdd0e9c89bc9be3a69fc3033c3cf7afd2ee2 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 07 九月 2023 16:15:56 +0800 Subject: [PATCH] 修改图层获取接口、数据发布接口 --- src/main/resources/mapper/data/PublishMapper.xml | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/resources/mapper/data/PublishMapper.xml b/src/main/resources/mapper/data/PublishMapper.xml index 7bca2ca..c7371af 100644 --- a/src/main/resources/mapper/data/PublishMapper.xml +++ b/src/main/resources/mapper/data/PublishMapper.xml @@ -46,14 +46,14 @@ </select> <select id="selectCount" resultType="java.lang.Integer"> - select count(*) from lf.sys_publish + select count(*) from lf.sys_publish a <where> 1 = 1 <if test="name != null"> - and upper(name) like #{name} + and upper(a.name) like #{name} </if> <if test="dircode != null"> - and dirid like #{dircode} + and a.dirid like #{dircode} </if> <if test="type != null"> and ${type} @@ -62,15 +62,15 @@ </select> <select id="selectByPage" resultType="com.moon.server.entity.data.PublishEntity"> - 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 + select ST_AsText(a.geom) "geom", a.*, fn_get_fullname(a.depid, 1) depName, fn_get_fullname(a.dirid, 2) dirName, fn_uname(a.create_user) createName, fn_uname(a.update_user) updateName, b.proxy + from lf.sys_publish a left join lf.sys_res b on a.id = b.pubid <where> 1 = 1 <if test="name != null"> - and upper(name) like #{name} + and upper(a.name) like #{name} </if> <if test="dircode != null"> - and dirid like #{dircode} + and a.dirid like #{dircode} </if> <if test="type != null"> and ${type} @@ -85,9 +85,9 @@ </select> <select id="selectById" resultType="com.moon.server.entity.data.PublishEntity"> - 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 id = #{id} + select ST_AsText(a.geom) "geom", a.*, fn_get_fullname(a.depid, 1) depName, fn_get_fullname(a.dirid, 2) dirName, fn_uname(a.create_user) createName, fn_uname(a.update_user) updateName, b.proxy + from lf.sys_publish a left join lf.sys_res b on a.id = b.pubid + where a.id = #{id} </select> <select id="selectByIds" resultType="com.moon.server.entity.data.PublishEntity"> -- Gitblit v1.9.3