13693261870
2025-07-02 7c7cb1855b7f18802f55a70fa14ed70cbdb11bab
se-system/src/main/resources/mapper/data/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.terra.system.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.terra.system.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",
@@ -61,7 +61,7 @@
        </where>
    </select>
    <select id="selectByPage" resultType="com.lf.server.entity.data.PublishEntity">
    <select id="selectByPage" resultType="com.terra.system.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>
@@ -80,17 +80,17 @@
        limit #{limit} offset #{offset}
    </select>
    <select id="selectAll" resultType="com.lf.server.entity.data.PublishEntity">
    <select id="selectAll" resultType="com.terra.system.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.terra.system.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.terra.system.entity.data.PublishEntity">
        select * from lf.sys_publish where id in (${ids}) order by id desc;
    </select>
@@ -113,7 +113,7 @@
        order by code;
    </select>
    <insert id="insert" parameterType="com.lf.server.entity.data.PublishEntity">
    <insert id="insert" parameterType="com.terra.system.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