月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-06-02 c31e03f0e51214a524d3fc34d30f3459698ff625
src/main/resources/mapper/data/LayerMapper.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.LayerMapper">
<mapper namespace="com.moon.server.mapper.data.LayerMapper">
    <select id="selectCount" resultType="java.lang.Integer">
        select count(*) from lf.sys_layer
        <where>
@@ -10,7 +10,7 @@
        </where>
    </select>
    <select id="selectByPage" resultType="com.lf.server.entity.data.LayerEntity">
    <select id="selectByPage" resultType="com.moon.server.entity.data.LayerEntity">
        select * from lf.sys_layer
        <where>
            <if test="cnName != null">
@@ -21,17 +21,17 @@
        limit #{limit} offset #{offset}
    </select>
    <select id="selectAll" resultType="com.lf.server.entity.data.LayerEntity">
    <select id="selectAll" resultType="com.moon.server.entity.data.LayerEntity">
        select (select ns from lf.sys_dict b where b.field = 'gid' and b.tab = a.en_name) "ns", a.*
        from lf.sys_layer a
        order by id;
    </select>
    <select id="selectById" resultType="com.lf.server.entity.data.LayerEntity">
    <select id="selectById" resultType="com.moon.server.entity.data.LayerEntity">
        select * from lf.sys_layer where id = #{id}
    </select>
    <insert id="insert" parameterType="com.lf.server.entity.data.LayerEntity">
    <insert id="insert" parameterType="com.moon.server.entity.data.LayerEntity">
        insert into lf.sys_layer
        (pid,cn_name,en_name,url,test_url,type,icon,level,order_num,is_show,create_user,create_time,bak,serve_type,data_type,elev,is_project)
        values