月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-06-02 c31e03f0e51214a524d3fc34d30f3459698ff625
src/main/resources/mapper/show/PublishMapper.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.lf.server.mapper.data.PublishMapper">
<mapper namespace="com.moon.server.mapper.data.PublishMapper">
    <select id="selectMetasByCount" resultType="java.lang.Integer">
        select count(*) from lf.sys_meta
        <where>
@@ -20,7 +20,7 @@
        </where>
    </select>
    <select id="selectMetasByPage" resultType="com.lf.server.entity.data.MetaEntity">
    <select id="selectMetasByPage" resultType="com.moon.server.entity.data.MetaEntity">
        select
            (select c.url from lf.sys_meta_pub b inner join lf.sys_publish c on b.pubid = c.id where b.metaid = a.id limit 1) "url",
            (select ST_AsText(c.geom) from lf.sys_meta_pub b inner join lf.sys_publish c on b.pubid = c.id where b.metaid = a.id limit 1) "geom",
@@ -54,7 +54,7 @@
        </where>
    </select>
    <select id="selectByPage" resultType="com.lf.server.entity.data.PublishEntity">
    <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
        <where>
@@ -66,21 +66,21 @@
        limit #{limit} offset #{offset}
    </select>
    <select id="selectAll" resultType="com.lf.server.entity.data.PublishEntity">
    <select id="selectAll" resultType="com.moon.server.entity.data.PublishEntity">
        select * from lf.sys_publish order by id desc;
    </select>
    <select id="selectById" resultType="com.lf.server.entity.data.PublishEntity">
    <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>
    <select id="selectByIds" resultType="com.lf.server.entity.data.PublishEntity">
    <select id="selectByIds" resultType="com.moon.server.entity.data.PublishEntity">
        select * from lf.sys_publish where id in (${ids}) order by id desc;
    </select>
    <insert id="insert" parameterType="com.lf.server.entity.data.PublishEntity">
    <insert id="insert" parameterType="com.moon.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)
        values