月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-06-02 c31e03f0e51214a524d3fc34d30f3459698ff625
src/main/resources/mapper/all/BaseQueryMapper.xml
@@ -1,7 +1,7 @@
<?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.all.BaseQueryMapper">
    <select id="selectUserFuzzy" resultType="com.lf.server.entity.ctrl.IdNameEntity">
<mapper namespace="com.moon.server.mapper.all.BaseQueryMapper">
    <select id="selectUserFuzzy" resultType="com.moon.server.entity.ctrl.IdNameEntity">
        select id,uname "name" from lf.sys_user
        <where>
            <if test="name != null">
@@ -11,7 +11,7 @@
        order by uname limit 10
    </select>
    <select id="selectDepFuzzy" resultType="com.lf.server.entity.ctrl.IdNameEntity">
    <select id="selectDepFuzzy" resultType="com.moon.server.entity.ctrl.IdNameEntity">
        select id,name from lf.sys_dep
        <where>
            <if test="name != null">
@@ -31,7 +31,7 @@
        </where>
    </select>
    <select id="selectTabsByPage" resultType="com.lf.server.entity.ctrl.TabEntity">
    <select id="selectTabsByPage" resultType="com.moon.server.entity.ctrl.TabEntity">
        select ns, tab, tab_desc, fn_get_entity(tab) entity, tableType, bak, fn_tab_count(a.ns, a.tab, #{filters}) "rows"
        from lf.sys_dict a
        <where>
@@ -44,11 +44,11 @@
        limit #{limit} offset #{offset};
    </select>
    <select id="selectFields" resultType="com.lf.server.entity.data.DictEntity">
    <select id="selectFields" resultType="com.moon.server.entity.data.DictEntity">
      select * from lf.sys_dict where ns = #{ns} and tab = #{tab} order by order_num
    </select>
    <select id="selectDomains" resultType="com.lf.server.entity.data.DomainEntity">
    <select id="selectDomains" resultType="com.moon.server.entity.data.DomainEntity">
      select a.* from lf.sys_domain a inner join lf.sys_dict b on a.dom_name = b.domain_na
      where b.ns = #{ns} and b.tab = #{tab} and b.domain_na is not null
    </select>
@@ -57,7 +57,7 @@
        select ST_astext(ST_Union(geom)) as route from pgr_fromAtoB('lrdl'::text, #{x1}, #{y1}, #{x2}, #{y2});
    </select>
    <select id="selectLocation" resultType="com.lf.server.entity.ctrl.KeyValueEntity">
    <select id="selectLocation" resultType="com.moon.server.entity.ctrl.KeyValueEntity">
        select '国' "key", cname "value" from bs.th_globe_country where ST_Intersects(ST_PointFromText(#{wkt}, 4490), geom)
        union all
        select '省' "key", cname "value" from bs.th_province_area where ST_Intersects(ST_PointFromText(#{wkt}, 4490), geom)
@@ -67,7 +67,7 @@
        select '县' "key", cname "value" from bs.th_county_area where ST_Intersects(ST_PointFromText(#{wkt}, 4490), geom);
    </select>
    <select id="selectDirTypes" resultType="com.lf.server.entity.ctrl.KeyValueEntity">
    <select id="selectDirTypes" resultType="com.moon.server.entity.ctrl.KeyValueEntity">
        select (select string_agg(code, ',') from lf.sys_dir where name = a.name) "key", name "value"
        from lf.sys_dir a
        <where>
@@ -80,7 +80,7 @@
        order by key
    </select>
    <select id="selectAnnexByTab" resultType="com.lf.server.entity.sys.AttachEntity">
    <select id="selectAnnexByTab" resultType="com.moon.server.entity.sys.AttachEntity">
        select a.* from lf.sys_attach a
        <where>
            tab = #{tab}