| | |
| | | </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} |
| | |
| | | </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} |
| | |
| | | </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"> |
| | |
| | | where b.pubid = #{pubid}; |
| | | </select> |
| | | |
| | | <select id="selectRaster" resultType="com.moon.server.entity.data.PublishEntity"> |
| | | select c.cn_name "name", c.unit, a.* |
| | | from lf.sys_publish a inner join lf.sys_res b on a.id = b.pubid |
| | | inner join lf.sys_layer c on b.id = c.resid |
| | | where a.type in ('DOM', 'DEM') and a.status = 3 and c.status = 1; |
| | | </select> |
| | | |
| | | <select id="selectByLayerId" resultType="com.moon.server.entity.data.PublishEntity"> |
| | | select a.* |
| | | from lf.sys_publish a inner join lf.sys_res b on a.id = b.pubid |
| | | inner join lf.sys_layer c on b.id = c.resid |
| | | where c.id = #{layerId} |
| | | limit 1; |
| | | </select> |
| | | |
| | | <select id="selectCodesForDir" resultType="java.lang.String"> |
| | | select code |
| | | from lf.sys_dir |